cancel
Showing results for 
Search instead for 
Did you mean: 

Response was unexpected text/html Content type error in CPI

0 Kudos

Hi All,

I am facing the issue while posting IDOC through cloud connector.

I go through many blogs and not successful yet and need to know exact solution for this.

Flow HTTP--> CPI --> CC --> S4HANA

Thanks,

Bijaya

Accepted Solutions (0)

Answers (1)

Answers (1)

CarlosRoggan
Advisor
Advisor
0 Kudos

Hello,

my apologies, I'm not expert in iFlows, and the scenario is not clear to me, but maybe the following hint helps:

If whoever partner of iFlow requires a specific content-type, then you can set it in the iFlow:

Create a Content Modifier step
Create a header
Name of header content-type
Value of header: application/json or whatever is required instead of text/html

Kind Regards,
Carlos

bdBais
Explorer
0 Kudos

you must to enter the "managed" header to connection too. In this example I've added x-csrf-token header on HTTP Adapter on Request Headers params.

0 Kudos

Hi Carlos,

Thanks for update. I am using IDOC receiver and still getting same error, even passing Header Content-Type as text/plain or application/xml. This error happening , when we are sending IDoc to S4HANA through Cloud connector and getting response as text/html.

Thanks,

Bijaya