cancel
Showing results for 
Search instead for 
Did you mean: 

SAP DI Server - Failed to create Business Service

rahuljain257
Participant
0 Kudos

Hello Folks,

I need help on DI - Server, I am trying to add StockTransfer Draft Document - StockTransferDraftService

but getting the following error - Failed to create Business Service.

Any help will be appreciated,

Now the weird part - Its working on Test Database but getting failed on the production server.

Please find the request and response sample for your reference -

Request

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MsgHeader xmlns="http://www.sap.com/SBO/DIS">
<SessionID>29051362-EB01-4BD7-970A-34D8945E45A2</SessionID>
<ServiceName>DraftsService</ServiceName>
</MsgHeader>
</soap:Header>
<soap:Body>
<Add xmlns="DraftsService"><Document xmlns="http://www.sap.com/SBO/DIS">
<CardCode>60003126</CardCode>
<NumAtCard>Service Call No. 2122669781</NumAtCard>
<Comments>t</Comments>
<PaymentGroupCode>84</PaymentGroupCode>
<ContactPersonCode>4775</ContactPersonCode>
<Series>1214</Series>
<DocObjectCode>23</DocObjectCode>
<ShipToCode>V V Marine Products</ShipToCode>
<DocumentsOwner>111</DocumentsOwner>
<PayToCode>V V Marine Products</PayToCode>
<U_Region>South Region</U_Region>
<U_SerRepNo>2122669781</U_SerRepNo>
<U_Srrep_date>2022-01-01</U_Srrep_date>
<DocumentLines>
<DocumentLine>
<LineNum>0</LineNum>
<ItemCode>51730050</ItemCode>
<Quantity>1</Quantity>
<DiscountPercent>5</DiscountPercent>
<WarehouseCode>1001</WarehouseCode>
</DocumentLine>
</DocumentLines>
</Document>
</Add>
</soap:Body>
</soap:Envelope>

Response

<?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:Sender</env:Value><env:Subcode><env:Value>-1</env:Value>
</env:Subcode></env:Code><env:Reason><env:Text xml:lang="en">Failed to create Business Service</env:Text></env:Reason><env:Detail>
<Service>DraftsService</Service>
<Command>Add</Command><SessionID>EDBED807-F7DB-496D-89BD-D2D6D32C0DE3</SessionID></env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
24/01/2022 14:30:07 Response (Fault)

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Dear rahul.jain257,

Make sure that the values that you are setting via DI Server Request, are exactly the same.

For example: ComboBoxes with default valid values. You need to make sure that the values in request, are not different from these default values.

To troubleshoot the issue, kindly test the issue removing UDFs from the request. If that works, include UDFs one by one in the request. This will enable you to find the problematic field in the request.

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

rahuljain257
Participant
0 Kudos

Ok Done, Let me check and will respond back in sometime.

rahuljain257
Participant
0 Kudos

Thank You again ankit.chauhan1, Updated answer on the following link - https://answers.sap.com/questions/13574278/sap-di-server-generating-wsdl-for-draftservice-usi.html

Answers (0)