cancel
Showing results for 
Search instead for 
Did you mean: 

Error when adding new service invoice with DI Server, error -1114

Former Member
0 Kudos
119

<b>Hi everybody.

I'm trying to add an serviceinvoice (DocType = 'Service Transaction') with DI Server AddObject method.

The xml-request document looks like this:</b>

<?xml version='1.0' encoding='UTF-16' ?>

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>

<env:Header>

<SessionID>........</SessionID>

</env:Header>

<env:Body>

<dis:AddObject xmlns:dis='http://www.sap.com/SBO/DIS'>

<BOM>

<BO>

<AdmInfo>

<Object>oInvoices</Object>

</AdmInfo>

<Documents>

<row>

<DocNum>1241</DocNum>

<HandWritten>1</HandWritten>

<DocDate>10/08/2005</DocDate>

<DocDueDate>10/08/2005</DocDueDate>

<CardCode>V1010</CardCode>

<DocType>S</DocType>

</row>

</Documents>

<Document_Lines>

<row>

<Currency>USD</Currency>

<LineTotal>7500,00</LineTotal>

<AccountCode>_SYS00000000001</AccountCode>

<TaxCode>LA</TaxCode>

</row>

<row>

<Currency>USD</Currency>

<LineTotal>-7500,00</LineTotal>

<TaxCode>LA</TaxCode>

</row>

</Document_Lines>

</BO>

</BOM>

</dis:AddObject>

</env:Body>

</env:Envelope>

<b>...But I get error eveytime I try to do it, the response document as follows:</b>

<?xml version="1.0"?>

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

<env:Body>

<env:Fault>

<env:Code>

<env:Value>env:Receiver</env:Value>

<env:Subcode>

<env:Value>-1114</env:Value>

</env:Subcode>

</env:Code>

<env:Reason>

<env:Text xml:lang="en">Schema Validation Failed</env:Text>

</env:Reason>

<env:Detail>

<ErrorList>

<Error>System Id = 193271344, Line Number = 1, Column Number = 359, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error><Error>System Id = 193271344, Line Number = 1, Column Number = 488, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error>

</ErrorList>

<Object>13</Object>

<ObjectIndex>1</ObjectIndex>

<Command>AddObject</Command>

<SessionID>............</SessionID>

</env:Detail>

</env:Fault>

</env:Body>

</env:Envelope>

<b>Why? Which fields are missing or which field values of those I'm sending might be wrong?</b>

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
Active Contributor
0 Kudos

Did you try to set the AccountCode also for the 2nd line?

HTH,

Frank

Answers (0)