cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong Content-Type Salesforce Integration

01-28-2021 2:47 PM
Mirko_Longhi Explorer
462 views 0 comments
SAP Managed Tags
Subscribe

Hi everyone,

I'm developing an integration flow to integrate an outbound idoc from SAP ECC to create an Update case in Salesforce.

The input idoc is a custom, there is a csv row in each segment.

Since there are few steps to do with Salesforce I created some local integration flows.

Salesforce documentation is here Upload Job Salesforce

The "Upload Job Data" is a call where I need to call Salesforce service, sending the csv needed with a PUT.

Documentation state: "Content-Type: text/csv" as header and I correctly set it with the content modifier show above, but the call is made with "text/csv; charset=UTF-8".


This makes fail the call, with return message:

[
 {
 "errorCode": "BULK_API_ERROR",
 "message": "Wrong content-type for batch (text/csv; charset=UTF-8), job is of type: text/csv"
 }
]

I already tried to:

- delete CamelHttpCharacterEncoding, CamelCharsetName

- setting the Content-Type with Groovy Script

- creating an IFlow and calling it instead of using a local integration process

Any suggestion?

Accepted Solutions (0)

Answers (0)