@rmehta Good morning, I hit the next issue with the Stock Reconciliation Document API. I’m not sure if this is a general restriction and if this can be changed, but it looks like the maximum array rows in the ‘Items’ area is about 20 only. When I try to create a Stock Reconciliation Document with more about 30 Items, I’m getting the following return Error Message:
"
Bad Request
Bad Request
Request Line is too large (4367 > 4094)
"
When I try it with 20 Items, everything is working fine and the Document was created.
I then tried the same with a Sales Order, until now I was always testing with just a few lines. When trying to send a Sales Order with about 25 lines, I’m getting the same error:
"returnData
Bad Request
Bad Request
Request Line is too large (5344 > 4094)
returnData"
Could you advise of any setting which can change that restriction? We will have common documents with more than 25 lines.
Thanks, David
Here still the original Request call:
{“transaction_date”:“20151108”,“delivery_date”:“20151108”,“customer”:“Test David 99”,“po_no”:“”,“discount_amount”:1131.400000,“sap_sync_setting”:“Updates synced”,“sap_sync_message”:“Successfully synced from SAP, DocNum:409”,“sap_last_sync_time”:“2015-11-10-04:42:20”,“sap_id”:“409”,“items”:[{“item_code”:“140-005”,“qty”:10.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:12.000000,“discount_percentage”:5.000000},{“item_code”:“S10000”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:1840.000000,“discount_percentage”:0.000000},{“item_code”:“NewItem111”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“David123”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“A00001”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:400.000000,“discount_percentage”:0.000000},{“item_code”:“140-005”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“S10000”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:1840.000000,“discount_percentage”:0.000000},{“item_code”:“NewItem111”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“David123”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“A00001”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:400.000000,“discount_percentage”:0.000000},{“item_code”:“140-005”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“S10000”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:1840.000000,“discount_percentage”:0.000000},{“item_code”:“NewItem111”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“David123”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“A00001”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:400.000000,“discount_percentage”:0.000000},{“item_code”:“140-005”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“140-005”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“A00001”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:400.000000,“discount_percentage”:0.000000},{“item_code”:“David123”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“NewItem111”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“S10000”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:1840.000000,“discount_percentage”:0.000000},{“item_code”:“S10000”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:1840.000000,“discount_percentage”:0.000000},{“item_code”:“NewItem111”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“David123”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000},{“item_code”:“A00001”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:400.000000,“discount_percentage”:0.000000},{“item_code”:“140-005”,“qty”:1.000000,“warehouse”:“Finished Goods - OP365”,“price_list_rate”:0.000000,“discount_percentage”:0.000000}]}