Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with batch processing in CPI

Former Member
0 Likes
1,231

Hello everyone, I encountered a problem with batch request in CPI.

I am configurating integration between IOS app and CRM back-end.

I used the OData metadata that generated the integration process, in my case this is “product creation”

Also, I configured OData adapter address and credential:

And configured for Batch processing (for single batch creation it is work correctly):

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:
Configuration:

Body:

POST /CD3_Internet/$batch HTTP/1.1

Host:.hana.ondemand.com

X-SMP-SDK-VERSION: SAPCPSDKFORIOS-3.0.300-3.0.300

X-SMP-DEVICEID: F6AD3CDF-ADFC-4BB9-9288-2E1132A00531

Accept: */*

X-SMP-APPID: com.ecenta.fsapp

MaxDataServiceVersion: 2.0

Accept-Language: en-us

Accept-Encoding: br, gzip, deflate

Content-Type: multipart/mixed; boundary=B_96c97641f1574c188a0f2a14ab4712ef

Content-Length: 1196

User-Agent: FSEApp/4 CFNetwork/975.0.3 Darwin/18.6.0

Connection: keep-alive

X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h

DataServiceVersion: 2.0

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=

--B_96c97641f1574c188a0f2a14ab4712ef

Content-Type: multipart/mixed; boundary=C_1a7742be0d934b729fcc7be8b82654d9

--C_1a7742be0d934b729fcc7be8b82654d9

Content-Type: application/http

Content-Transfer-Encoding: binary

Content-ID: 1

POST ProductSet HTTP/1.1

DataServiceVersion: 2.0

MaxDataServiceVersion: 2.0

X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h

Accept: application/json

Prefer: return-content

Content-Type: application/json

{"Name":"Single Rack Electic Oven","OrderedProd":"B-5001","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}

--C_1a7742be0d934b729fcc7be8b82654d9

Content-Type: application/http

Content-Transfer-Encoding: binary

Content-ID: 2

POST ProductSet HTTP/1.1

DataServiceVersion: 2.0

MaxDataServiceVersion: 2.0

X-CSRF-Token: iCqXTU-Av9GtB-1otofoUqaSK3JNPa9h

Accept: application/json

Prefer: return-content

Content-Type: application/json

{"Name":"Double Rack Electic Oven","OrderedProd":"B-5002","Quantity":"1","SerialId":"","SoGuid":"00155d03-5967-1ed9-9bf9-2cb0ddc97fc3","Status":null,"Type":"TOOL"}

--C_1a7742be0d934b729fcc7be8b82654d9--

--B_96c97641f1574c188a0f2a14ab4712ef—

Response:

--batch_c1563284-8596-4722-bda2-29ce7fbdd866

Content-Type: application/http

Content-Transfer-Encoding: binary

HTTP/1.1 500 Internal Server Error

DataServiceVersion: 1.0

Content-Type: application/json

Content-Length: 135

{"error":{"code":"INTERNAL_SERVER_ERROR","message":{"lang":"*","value":"null: Transaction ID :42d4cbc4-d6df-4fc2-931f-39ac8adab466"}}}}

--batch_c1563284-8596-4722-bda2-29ce7fbdd866--

Do you have any ideas why I get this error?

0 REPLIES 0