Web service erroring out on Sales Header table

dghoshdghosh Member Posts: 3
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/"&gt;
- <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

  • ReinhardReinhard Member Posts: 249
    It looks like you're calling a function ALCalcDate which takes a dateformula, and a date as parameters.
    However you're passing in an integer:
    Argument '1': cannot convert from 'int' to 'Microsoft.Dynamics.Nav.Runtime.NavDateFormula'
    

    Maybe change your function to accept a string or an integer, and then convert it to a date formula.
  • dghoshdghosh Member Posts: 3
    I didnt find a function by that name but your reasoning was correct. It is fixed and thanks a million
Sign In or Register to comment.