When trying to expose the Sales Header table through web services, I am getting the following error.
I am using NAV 5.0 SP1 and NAV 2009 SP1 Client.
Any ideas??
- <s:Envelope xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLMetadataCompileErrorException</faultcode>
<faultstring xml:lang="en-US">Compilation of assembly 'C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\assembly\Record36.dll' failed. This can be caused by differences between binaries in your installation or your database. Ensure that all installation components are consistent and up to date. Error details: c:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\source\Record\Record36.cs(4989,24) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.ALSystemDate.ALCalcDate(Microsoft.Dynamics.Nav.Runtime.NavDateFormula, Microsoft.Dynamics.Nav.Runtime.NavDate)' has some invalid arguments c:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\source\Record\Record36.cs(4989,48) : error CS1503: Argument '1': cannot convert from 'int' to 'Microsoft.Dynamics.Nav.Runtime.NavDateFormula'</faultstring>
- <detail>
<string xmlns="
http://schemas.microsoft.com/2003/10/Serialization/">Compilation of assembly 'C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\assembly\Record36.dll' failed. This can be caused by differences between binaries in your installation or your database. Ensure that all installation components are consistent and up to date. Error details: c:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\source\Record\Record36.cs(4989,24) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.ALSystemDate.ALCalcDate(Microsoft.Dynamics.Nav.Runtime.NavDateFormula, Microsoft.Dynamics.Nav.Runtime.NavDate)' has some invalid arguments c:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$NAV3\source\Record\Record36.cs(4989,48) : error CS1503: Argument '1': cannot convert from 'int' to 'Microsoft.Dynamics.Nav.Runtime.NavDateFormula'</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Comments
However you're passing in an integer:
Maybe change your function to accept a string or an integer, and then convert it to a date formula.