<?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>topic Problem with batch processing in CPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-processing-in-cpi/m-p/11957774#M1967021</link>
    <description>&lt;P&gt;Hello everyone, I encountered a problem with batch request in CPI.&lt;/P&gt;
  &lt;P&gt;I am configurating integration between IOS app and CRM back-end.&lt;/P&gt;
  &lt;P&gt;I used the OData metadata that generated the integration process, in my case this is “product creation” &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697685-problem1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Also, I configured OData adapter address and credential:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697686-prob2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And configured for Batch processing (for single batch creation it is work correctly):&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697687-prob3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;After all that, when I try to get a POST request with a few products, I get nothing in CPI Monitor Message Processing, but on application side I get Error 500 (Internal Server Error) I attached request configurations in app and request body:&lt;BR /&gt;&lt;STRONG&gt;Configuration:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697688-problem.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;POST /CD3_Internet/$batch HTTP/1.1&lt;/P&gt;
  &lt;P&gt;Host:.hana.ondemand.com&lt;/P&gt;
  &lt;P&gt;X-SMP-SDK-VERSION: SAPCPSDKFORIOS-3.0.300-3.0.300&lt;/P&gt;
  &lt;P&gt;X-SMP-DEVICEID: F6AD3CDF-ADFC-4BB9-9288-2E1132A00531&lt;/P&gt;
  &lt;P&gt;Accept: */*&lt;/P&gt;
  &lt;P&gt;X-SMP-APPID: com.ecenta.fsapp&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;Accept-Language: en-us&lt;/P&gt;
  &lt;P&gt;Accept-Encoding: br, gzip, deflate&lt;/P&gt;
  &lt;P&gt;Content-Type: multipart/mixed; boundary=B_96c97641f1574c188a0f2a14ab4712ef&lt;/P&gt;
  &lt;P&gt;Content-Length: 1196&lt;/P&gt;
  &lt;P&gt;User-Agent: FSEApp/4 CFNetwork/975.0.3 Darwin/18.6.0&lt;/P&gt;
  &lt;P&gt;Connection: keep-alive&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;Cookie: JTENANTSESSIONID_ac9d77f9a=nyZgStv%2BtIzpeGYBRVqGdFSkNFrNSR7Y5EQc4%2FWvvbA%3D; X-SMP-SESSID=0151A46D6C819F0A1C22F72903DAE32EE182DFE97D61309BDDD4092C8813A06A; SMP_COOKIE_STORE_f88f67611d7431436ef5d0af6e5df33c_0=H4sIAAAAAAAAALXQ0VKCQBQG4GdpZ7zKcFcQ1BkvRECxogwsq2maBRZBgcVl0cGmd2-txvGuppnuzs35_--c5zeQ44yAPtDtcVK4hG0JI1BV5CRKM1zgLY6DhEgRDjhldVUiKahKTrOQZjjJQRNscVod9s9m-sK6hNh1WvvLB81rcZi0mJ1Dft5VZ8TT19fUrtM4Ve5rE3pP3Q0Zs_mG8VVON75aP2Z2dhdM6HDZLvzxbDAQ2QVhZVJyknPQj3Bakib47u2DT-TFl1ISxtLn0oEX4xxLNA9JhvNQCmh2yME8FistMZYkqJjwclaJtO2hgIo4-N48fmLqmq5r3zi2cXKe1jFl1BuquqZpyNIUuYdMC5kKHCFtZHTQP2iXu196PdMZOt5R_eqrKkIqQeGJ36KTyZyl1a4iI2Pvra7gnDba1nTdM53bRlsXs7deRono3iwqbsGGbPxw018__fIBKeFYtnUCAAA; BIGipServermobile.hana.ondemand.com=!UDSssxw44C3fNXVdTv76aO/nKgWQ+KqBprTHzqjwVfTIBuaAGXIXZdiX8vt9ctDnxJunw/KElkhfgbY=&lt;/P&gt;
  &lt;P&gt;--B_96c97641f1574c188a0f2a14ab4712ef&lt;/P&gt;
  &lt;P&gt;Content-Type: multipart/mixed; boundary=C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;Content-ID: 1&lt;/P&gt;
  &lt;P&gt;POST ProductSet HTTP/1.1&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;Accept: application/json&lt;/P&gt;
  &lt;P&gt;Prefer: return-content&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;{"Name":"Single Rack Electic Oven","OrderedProd":"B-5001","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;Content-ID: 2&lt;/P&gt;
  &lt;P&gt;POST ProductSet HTTP/1.1&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;Accept: application/json&lt;/P&gt;
  &lt;P&gt;Prefer: return-content&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;{"Name":"Double Rack Electic Oven","OrderedProd":"B-5002","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9--&lt;/P&gt;
  &lt;P&gt;--B_96c97641f1574c188a0f2a14ab4712ef—&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;--batch_c1563284-8596-4722-bda2-29ce7fbdd866&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;HTTP/1.1 500 Internal Server Error&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 1.0&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;Content-Length: 135&lt;/P&gt;
  &lt;P&gt;{"error":{"code":"INTERNAL_SERVER_ERROR","message":{"lang":"*","value":"null: Transaction ID :42d4cbc4-d6df-4fc2-931f-39ac8adab466"}}}}&lt;/P&gt;
  &lt;P&gt;--batch_c1563284-8596-4722-bda2-29ce7fbdd866--&lt;BR /&gt;&lt;BR /&gt;Do you have any ideas why I get this error?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 12:54:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-06-26T12:54:51Z</dc:date>
    <item>
      <title>Problem with batch processing in CPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-processing-in-cpi/m-p/11957774#M1967021</link>
      <description>&lt;P&gt;Hello everyone, I encountered a problem with batch request in CPI.&lt;/P&gt;
  &lt;P&gt;I am configurating integration between IOS app and CRM back-end.&lt;/P&gt;
  &lt;P&gt;I used the OData metadata that generated the integration process, in my case this is “product creation” &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697685-problem1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Also, I configured OData adapter address and credential:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697686-prob2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And configured for Batch processing (for single batch creation it is work correctly):&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697687-prob3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;After all that, when I try to get a POST request with a few products, I get nothing in CPI Monitor Message Processing, but on application side I get Error 500 (Internal Server Error) I attached request configurations in app and request body:&lt;BR /&gt;&lt;STRONG&gt;Configuration:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1697688-problem.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;POST /CD3_Internet/$batch HTTP/1.1&lt;/P&gt;
  &lt;P&gt;Host:.hana.ondemand.com&lt;/P&gt;
  &lt;P&gt;X-SMP-SDK-VERSION: SAPCPSDKFORIOS-3.0.300-3.0.300&lt;/P&gt;
  &lt;P&gt;X-SMP-DEVICEID: F6AD3CDF-ADFC-4BB9-9288-2E1132A00531&lt;/P&gt;
  &lt;P&gt;Accept: */*&lt;/P&gt;
  &lt;P&gt;X-SMP-APPID: com.ecenta.fsapp&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;Accept-Language: en-us&lt;/P&gt;
  &lt;P&gt;Accept-Encoding: br, gzip, deflate&lt;/P&gt;
  &lt;P&gt;Content-Type: multipart/mixed; boundary=B_96c97641f1574c188a0f2a14ab4712ef&lt;/P&gt;
  &lt;P&gt;Content-Length: 1196&lt;/P&gt;
  &lt;P&gt;User-Agent: FSEApp/4 CFNetwork/975.0.3 Darwin/18.6.0&lt;/P&gt;
  &lt;P&gt;Connection: keep-alive&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;Cookie: JTENANTSESSIONID_ac9d77f9a=nyZgStv%2BtIzpeGYBRVqGdFSkNFrNSR7Y5EQc4%2FWvvbA%3D; X-SMP-SESSID=0151A46D6C819F0A1C22F72903DAE32EE182DFE97D61309BDDD4092C8813A06A; SMP_COOKIE_STORE_f88f67611d7431436ef5d0af6e5df33c_0=H4sIAAAAAAAAALXQ0VKCQBQG4GdpZ7zKcFcQ1BkvRECxogwsq2maBRZBgcVl0cGmd2-txvGuppnuzs35_--c5zeQ44yAPtDtcVK4hG0JI1BV5CRKM1zgLY6DhEgRDjhldVUiKahKTrOQZjjJQRNscVod9s9m-sK6hNh1WvvLB81rcZi0mJ1Dft5VZ8TT19fUrtM4Ve5rE3pP3Q0Zs_mG8VVON75aP2Z2dhdM6HDZLvzxbDAQ2QVhZVJyknPQj3Bakib47u2DT-TFl1ISxtLn0oEX4xxLNA9JhvNQCmh2yME8FistMZYkqJjwclaJtO2hgIo4-N48fmLqmq5r3zi2cXKe1jFl1BuquqZpyNIUuYdMC5kKHCFtZHTQP2iXu196PdMZOt5R_eqrKkIqQeGJ36KTyZyl1a4iI2Pvra7gnDba1nTdM53bRlsXs7deRono3iwqbsGGbPxw018__fIBKeFYtnUCAAA; BIGipServermobile.hana.ondemand.com=!UDSssxw44C3fNXVdTv76aO/nKgWQ+KqBprTHzqjwVfTIBuaAGXIXZdiX8vt9ctDnxJunw/KElkhfgbY=&lt;/P&gt;
  &lt;P&gt;--B_96c97641f1574c188a0f2a14ab4712ef&lt;/P&gt;
  &lt;P&gt;Content-Type: multipart/mixed; boundary=C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;Content-ID: 1&lt;/P&gt;
  &lt;P&gt;POST ProductSet HTTP/1.1&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;Accept: application/json&lt;/P&gt;
  &lt;P&gt;Prefer: return-content&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;{"Name":"Single Rack Electic Oven","OrderedProd":"B-5001","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;Content-ID: 2&lt;/P&gt;
  &lt;P&gt;POST ProductSet HTTP/1.1&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;MaxDataServiceVersion: 2.0&lt;/P&gt;
  &lt;P&gt;X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h&lt;/P&gt;
  &lt;P&gt;Accept: application/json&lt;/P&gt;
  &lt;P&gt;Prefer: return-content&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;{"Name":"Double Rack Electic Oven","OrderedProd":"B-5002","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}&lt;/P&gt;
  &lt;P&gt;--C_1a7742be0d934b729fcc7be8b82654d9--&lt;/P&gt;
  &lt;P&gt;--B_96c97641f1574c188a0f2a14ab4712ef—&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;--batch_c1563284-8596-4722-bda2-29ce7fbdd866&lt;/P&gt;
  &lt;P&gt;Content-Type: application/http&lt;/P&gt;
  &lt;P&gt;Content-Transfer-Encoding: binary&lt;/P&gt;
  &lt;P&gt;HTTP/1.1 500 Internal Server Error&lt;/P&gt;
  &lt;P&gt;DataServiceVersion: 1.0&lt;/P&gt;
  &lt;P&gt;Content-Type: application/json&lt;/P&gt;
  &lt;P&gt;Content-Length: 135&lt;/P&gt;
  &lt;P&gt;{"error":{"code":"INTERNAL_SERVER_ERROR","message":{"lang":"*","value":"null: Transaction ID :42d4cbc4-d6df-4fc2-931f-39ac8adab466"}}}}&lt;/P&gt;
  &lt;P&gt;--batch_c1563284-8596-4722-bda2-29ce7fbdd866--&lt;BR /&gt;&lt;BR /&gt;Do you have any ideas why I get this error?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-processing-in-cpi/m-p/11957774#M1967021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-06-26T12:54:51Z</dc:date>
    </item>
  </channel>
</rss>

