Web service erroring out on Sales Header table

dghosh
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/">
- <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>
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>
0
Comments
-
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.0 -
I didnt find a function by that name but your reasoning was correct. It is fixed and thanks a million0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions