I am currently utilising NAV web services using SOAP for Sales Orders / Invoices if I want to insert a G/L line after an item it fails saying product cant be found yet if I insert a G/L Account on the 1st line I can then process all my items.
It only affects G/L Accounts blank is fine for comment lines
Anyone else come across this before??
Hey Lee,
What i understood is you have written a NAV Code where you are updating Line Items, First you are trying to enter Type - Item Line and then G/L Account Line. You have exposed this Method as Web service and are trying to execute from other Platforms Right??
If this is what you are processing and unable to do then there might be some Code Issue in NAV which you are trying to execute.
Thanks
Blog - https://rockwithnav.wordpress.com/
Not quite, i’m not updating the lines
Scenario is use web service to create invoice
Put G/L line 1st then the items, invoice creates fine
Put Items 1st then the G/L Account and invoice fails with item not found
To test whether it was my message or not I created an invoice using NAV Client, putting Items then G/L Account and read the invoice, i then put the xml message back through the Create process and it failed with the same error showing me its a bug
Hey Lee,
I believe in that case again the issue is on the code sequencing because as far as standard NAV is concerned NAV will never stop and give error like this. The issue might be on the Code sequence as when its executing its holding the G/L account information but while item type it gets cleared or blank as error is very clear - “Item Not found” means system is unable to find that item even exists in the Item Master.
Check the code some times very silly mistake comes up like local variable instead of global, variable getting cleared or blank before assigning or something like that.
Thanks
Blog - https://rockwithnav.wordpress.com/