My Products
Help
Anonymous
Not applicable

Error of LocationID

by Anonymous (Updated ‎10-09-2021 08:26 ( )
I get this error message when I try to create a invoice (customerinvoice) in Visma Net
 
Error Message:
IntegrationErrorException: {"message":"Error: Inserting 'Sales invoice/note' record raised at least one error. Please review the errors.\r\nError: 'Location' is not found.\r\n"}
 
The company I run this for has locationID "main" and "MAIN" but I still get the error message
 
I have run the same code at for a test company before and it worked without any problems
 
Code: 
customerInvoice.LocationId = new LocationId5() { Value = "MAIN" }
 
 
Someone who has an idea what it could be ?
2 REPLIES 2
Anonymous
Not applicable

by Anonymous

Thank you 

Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

Could you please try to create the same invoice in the UI?
This should allow you to see what is triggering the error.
We have cases in the backlog to improve the error handling. 

Thank you.