<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode xmlns:q0="urn:microsoft-dynamics-schemas/error">q0:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideException</faultcode> <faultstring xml:lang="en-US">'13-11-2014' is not a valid date.</faultstring> <detail> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">'13-11-2014' is not a valid date.</string> </detail> </soap:Fault> </soap:Body> </soap:Envelope>
Comments
I'm not passing a date as argument but a text.
I have a simple codeunit
with a method ConvertToDate
I exposed the codeunit as a webservice called ConvertDate. When i call the method in a .Net application then i get the error when i post the date "13-11-2014".
The fun is when you submit a date "11-1-2009" then the above code is toggling the date. The outcome is DatumBox (which is a TextBox) contains "1-11-2009".
I run the NAV Server Tier under my own account, so regional settings are dutch. It seems the service tier does not take the regional settings of the user who runs the service.
Anymore ideas?
Make an entry in Tabel User Personalization (2000000073) for the user that runs the NAV Server.
Set there the language to the desired language. The EVALUATE is then working fine too with the proper date format.
So, it is not considering the Regional Settings.
but I have another Problem:
My webservice only add an item comment and must send the NAV default error message to the outstanding application.
If the item does not exist, the user must get the error message in his language.
Now I use the tipp of mboon75 and the caption of the field "Item No." is translated (German: "Artikel Nr."). But the rest of the default error message is still english?!
has someone a rease for this? or better a solution?
What is the NAV code that is executed?
The text constant is translated?
this is an internal error message, not an programmed error('');
sorry for cross posting but i didn't find this error before.
Obviously, i've already checked all the language pack folders.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
The 9 argument tells the EVALUATE function to look for xml-standard formats. It's a good way to keep things like dates and times language-independent.
Peter Conijn
-The Learning Network-