cancel
Showing results for 
Search instead for 
Did you mean: 

Batch request for CUAN_BUSINESS_PARTNER_IMPORT_SRV service

former_member549511
Participant
0 Kudos

Dear SAP experts,

we are facing several problems trying to use the service CUAN_BUSINESS_PARTNER_IMPORT_SRV from Postman:

  1. Using the POST method I receive the following error in response:
    The server is refusing to process the request because the entity has an unsupported format
    The payload used as body of the request is the JSON attached body-json.txt.

  2. The same error is raised when I try to use an XML as body of the request.
    The XML is the one attached body-xml.txt.
  3. Using the PATCH method (available for this API as specified in the SAP Marketing Cloud documentation) I receive the following error in response:
    The specified HTTP method is not allowed for the resource identified by the Data Service Request URI
    I'm using the same body of the previous test

Can you kindly help me?

Thanks.

Regards.

Andrea

    Accepted Solutions (1)

    Accepted Solutions (1)

    former_member226
    Employee
    Employee

    Hi,

    I checked the payload provided by you and I see that payload is not correctly formatted for batch processing. Please note that odata BATCH operations are always "format" sensitive i.e. even a missing or additional line break can really cause a lot of trouble and system mark them as malformed requests. In you payload i see that you removed the line breaks from payload and this is really causing the issue,

    It will be also good to check batch payload standard here: https://www.odata.org/documentation/odata-version-2-0/batch-processing/.

    Based on this ,I simulated the attached payload(payload.txt) in our system and I was able to process it successfully. Can you please try this?

    Thanks

    Saurabh

    2019-11-14-22-46-15.png

    former_member549511
    Participant
    0 Kudos

    Hi Saurabh,

    thanks for your help.

    Following your suggestion it works fine.

    Thanks again for your help.

    Regards.

    Andrea

    Answers (0)