My Products
Help
kashyap
PARTNER

One or more lines contain unassigned location and/or lot/serial number.

by kashyap

We are getting below error while saving sales order:

Response:

{"message":"Error: Inserting 'Sales order line' record raised at least one error. Please review the errors.\r\nOne or more lines contain unassigned location and\/or lot\/serial number.\r\n","code":100010,"status":false}

Request:

{"orderType":{"value":"IN"},"customer":{"value":"30023"},"orderNumber":{"value":"1002"},"customerRefNo":{"value":"TESTTEST"},"note":{"value":"571545-1-1002"},"date":{"value":"2022-09-19T12:36:03"},"hold":{"value":false},"branchNumber":{"value":"1 "},"lines":[{"operation":"Insert","inventoryNumber":{"value":"505030"},"description":{"value":"Bilkostnader"},"quantity":{"value":1},"unitPrice":{"value":"400.00"},"accountNumber":{"value":"3010"},"vatCodeId":{"value":"3"}}]}

3 REPLIES 3

by Magnus Johnsen

HI,

Could you please enter the same inventoryItem in the UI and try to save? It should give you an indication to what field you need to specify.

It might be that the item has a lot/serial class that requires it to be specified when used.

Send us a screenshot of the error message and we can help you find the cause.

Thank you. 

by Magnus Johnsen

Please try to enter it manually via the UI, most likely you need to include the warehouse on the line:

"warehouse": {
        "value": "string"
      },

 

kashyap
PARTNER

by kashyap

Do you mean, I have to add empty warehouse field in the request body?  Is there any default warehouse available which is default applied to all product?