cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Service Layer: error code - 206 (Bad Patch content)

Jeerick
Explorer
916

Hello Experts,

 

May I ask how to fix this error? I encountered a 206 error code in the SAP B1 service layer, but my JSON seems correct. Additionally, when I run my query and get the JSON code to run in the POSTMAN API, it works and the changes reflect in SAP B1.

 



JSON:

 

{"DocumentEntry":23277,
"DocumentNumber":10023269,
"Remarks":"TEST 2",
"InventoryCountingLines":[
    {
         "LineNumber": 6,
        "ItemCode":"HB008434",
    "WarehouseCode":"W00001",
    "BinEntry":3222
},

    {
         "LineNumber": 7,
        "ItemCode":"HB008822",
    "WarehouseCode":"W00001",
    "BinEntry":3222
    } 
]
}
 
 
 
Thank you in Advance

Accepted Solutions (1)

Accepted Solutions (1)

Jeerick
Explorer
0 Kudos

you can check the SQL query that handle the Postman body. make sure you have that through sending request and make sure the data type nvarchar(max).

Answers (1)

Answers (1)

sebastien_drean
Explorer
0 Kudos

Hi all,

We had exactely the same error when posting a big file in Attachment2.

We solved this by adding the Expect: header