<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: CPI HTTP Receiver always returns 400 “Syntax Error” a... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14504902#M4950233</link>
    <description>Thanks, that’s exactly what I was looking for. It works perfectly! For reference, I configured it in the Content Modifier as follows: 1. Message Header -&amp;gt; Action: Delete, Name: SAP-PASSPORT 2. Exchange Property -&amp;gt; Action: Create, Name: SAP_DisablePassportTransmission, Source Value: true</description>
    <pubDate>Thu, 15 Oct 2026 20:49:50 GMT</pubDate>
    <dc:creator>danmllr</dc:creator>
    <dc:date>2026-10-15T20:49:50Z</dc:date>
    <item>
      <title>CPI HTTP Receiver always returns 400 “Syntax Error” although same JSON works in Postman</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaq-p/14277406</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;We are trying to call a BZSt REST endpoint from SAP Cloud Integration (CPI) using the HTTP Receiver adapter. The goal is to send a small JSON request from our SAP backend to the German EVATR service and receive a validation response.&lt;/P&gt;&lt;P&gt;The same request (same URL, same JSON body, same token/parameters) works perfectly in Postman. In CPI, however, we consistently receive an HTTP 400 error from the target system.&lt;/P&gt;&lt;P&gt;The error message in the CPI log is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;org.apache.camel.component.ahc.AhcOperationFailedException:
HTTP operation failed invoking https://api.evatr.vies.bzst.de/app/v1/abfrage with statusCode: 400&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The response body from the server is an HTML error page:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;base href="/error_path/"&amp;gt;
&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Bad Request&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;The server detected a syntax error in your request.&amp;lt;br&amp;gt;
Check your request and all parameters.&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;Your request ID was: aSW1_biQek9iXbaem_MTxwAABZY&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In the meantime, we have tested quite a lot of variations. We tried many different header combinations, including explicitly setting headers like Content-Type, Accept, Host, and Content-Length, and we experimented with the “Allowed / Request Headers” setting of the HTTP Receiver adapter (including using *). None of these attempts changed the behavior – CPI still only seems to forward a very small set of headers, and additional headers set via a Content Modifier often do not appear in the actual outbound call (according to the HTTP_Receiver_Adapter_Request_Headers attachment).&lt;/P&gt;&lt;P&gt;We also experimented with the payload itself: different JSON formats, slightly modified test payloads, sending the exact same body as Postman, and even building a minimal iFlow where the JSON body is hard-coded in a Content Modifier and sent directly to the HTTP receiver. The result is always the same 400 response from the BZSt service, so it does not appear to be a simple syntax issue in the JSON itself.&lt;/P&gt;&lt;P&gt;What could be the reason for this behavior, and does anyone know how to resolve it or what else we should check?&lt;/P&gt;&lt;P&gt;Here is how the iFlow is built and the error messages:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Content_Modifer_Header.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345103i8C209A460EDBF0E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Content_Modifer_Header.png" alt="Content_Modifer_Header.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Content_Modifier_Body.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345102i106DD7D462475B6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Content_Modifier_Body.png" alt="Content_Modifier_Body.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTTP_Receiver_Adapter_Request_Headers.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345105i4E08DA13E655E620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HTTP_Receiver_Adapter_Request_Headers.png" alt="HTTP_Receiver_Adapter_Request_Headers.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTTP_Reciever_Adapter.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345104i1162C6D1758DB5B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HTTP_Reciever_Adapter.png" alt="HTTP_Reciever_Adapter.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IFlow.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345106iB33857719FBF599F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IFlow.png" alt="IFlow.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Isolated_Test_IFlow.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345107i05F4ACA57A83F241/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Isolated_Test_IFlow.png" alt="Isolated_Test_IFlow.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trace_Payload.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/345108i2D7C78CD3C110990/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trace_Payload.png" alt="Trace_Payload.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 15:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaq-p/14277406</guid>
      <dc:creator>Johannes_Zillmann</dc:creator>
      <dc:date>2025-11-25T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: CPI HTTP Receiver always returns 400 “Syntax Error” a...</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14279999#M4932671</link>
      <description>&lt;P&gt;Hi, we have had the same issue. SAP mentioned after we opened a ticket to try the following thing: Remove the&amp;nbsp;SAP-PASSPORT header&lt;/P&gt;&lt;P&gt;We achieved this by doing the following steps:&lt;/P&gt;&lt;P&gt;In order to remove the SAP-PASSPORT, add a * modifier right before the step making the call to the target system and:&lt;/P&gt;&lt;P&gt;1) set property "SAP_DisablePassportTransmission" to "true"&lt;BR /&gt;2) remove header "SAP-PASSPORT"&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 14:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14279999#M4932671</guid>
      <dc:creator>davidschievers</dc:creator>
      <dc:date>2025-11-28T14:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: CPI HTTP Receiver always returns 400 “Syntax Error” a...</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14424539#M4944512</link>
      <description>Hi Johannes,Were you able to fix this ? Would you help how to implement this and some steps?</description>
      <pubDate>Mon, 22 Jun 2026 11:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14424539#M4944512</guid>
      <dc:creator>gajjarb</dc:creator>
      <dc:date>2026-06-22T11:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: CPI HTTP Receiver always returns 400 “Syntax Error” a...</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14425394#M4944580</link>
      <description>We solved it using a Groovy script in CPI and handled the web service call programmatically instead of using the approach discussed here.</description>
      <pubDate>Tue, 23 Jun 2026 09:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14425394#M4944580</guid>
      <dc:creator>Johannes_Zillmann</dc:creator>
      <dc:date>2026-06-23T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: CPI HTTP Receiver always returns 400 “Syntax Error” a...</title>
      <link>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14504902#M4950233</link>
      <description>Thanks, that’s exactly what I was looking for. It works perfectly! For reference, I configured it in the Content Modifier as follows: 1. Message Header -&amp;gt; Action: Delete, Name: SAP-PASSPORT 2. Exchange Property -&amp;gt; Action: Create, Name: SAP_DisablePassportTransmission, Source Value: true</description>
      <pubDate>Thu, 15 Oct 2026 20:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cpi-http-receiver-always-returns-400-syntax-error-although-same-json-works/qaa-p/14504902#M4950233</guid>
      <dc:creator>danmllr</dc:creator>
      <dc:date>2026-10-15T20:49:50Z</dc:date>
    </item>
  </channel>
</rss>

