My Products
Help
adrianm
PARTNER

Can't create order in one company, some kind of branch problem

by adrianm

When I try to create a sales order I get error message

> Error: Inserting  'Sales order' record raised at least one error. Please review the errors. Error: Branch '1    ' cannot be found in the system.

{"lines":[{"operation":"Insert","inventoryNumber":{"value":"01001"},"quantity":{"value":1.0}}],"orderType":{"value":"SO"},"customer":{"value":"10001"}}

When I try to create a purchase order I get error message

> Error creating purchaseOrder. Error: An error in processing of field Location value 192867 Error: BranchID' not found in the system. Check whether you have access rights to this object.

{"orderType":{"value":"RegularOrder"},"supplier":{"value":"50009"},"lines":[{"operation":"Insert","inventory":{"value":"01001"},"orderQty":{"value":1.0}}],"changeDatesOnLines":false}

 

There are no branches in the company but via API I get

[{"branchId":19,"number":"1    ","name":"<hidden>","organizationId":2,"isMainBranch":true,"isActive":true,"lastModifiedDateTime":"2022-12-14T15:01:45.163Z","corporateId":"<hidden>","vatRegistrationId":"SE<hidden>"}]

 

If I add branch "19" to the purchase order the error message changes to

>Error: 'BranchID' is not found.

For sales order the error message changes to

> Branch' not found in the system. Check whether you have access rights to this object.

TenantId is "bb504cc1-6034-11ed-98d8-06a0b4eada6b"

1 REPLY 1
Accepted solution
adrianm
PARTNER

by adrianm

Never mind. Today the same requests work fine