NAV2013 R2
rakeshr
Member Posts: 15
Hi Team,
We have Version 7.10.37563 installed for NAV2013 R2. But we are having issues with date format
Documents that come through the webservices from a third-party application are coming through with US Dates or blank (as there are no month 29/06/2015). We've checked the regional settings in both test and production and they are identical. I've also check with NAVSupport, and he assures that there are no date settings done under the NAV Service running the Webservices and anywhere else in NAV.
We have Version 7.10.37563 installed for NAV2013 R2. But we are having issues with date format
Documents that come through the webservices from a third-party application are coming through with US Dates or blank (as there are no month 29/06/2015). We've checked the regional settings in both test and production and they are identical. I've also check with NAVSupport, and he assures that there are no date settings done under the NAV Service running the Webservices and anywhere else in NAV.
0
Comments
-
Are you sure it's supposed to work when using localized formats in the webservices? What will happen when another third party from a different region needs to use the webservices as well? I suggest you use an unambiguous format, like 2015-06-29.0
-
We have done testing with no date issues in our Development environment and our current Production server have the same set up as development. Is there anywhere else within NAV that have date settings?0
-
I think it is very strange that NAV returns an invalid date when the date is blank. What date does it choose? A date at random?
Have you tried looking at the service languages?0 -
Hi,
Please take a look at the following KnowledgeBase article. https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb$EN-US$2575205
Microsoft did not deem it fit to tell, how they fixed that problem, but what they did is to use en-US as the locale within webservice Sessions. And although you may switch the language, the date format is not affected. (http://blogs.msdn.com/b/nav/archive/2011/10/03/en-us-as-web-services-default-language.aspx)
I also recommend the following blog post: Culture Settings on NAV Web Services
As for the Services Language setting as JonasA pointed out, this is a new setting in NAV 2015, and I do not have any experience with that.
I have never worked with Page based web services, but with Codeunit based ones I recommend to use XML format for dates. With XMLport parameters use the corresponding property in the XMLport, with regular parameters use a text variable and use FORMAT(Date,0,9) and EVALUATE(DateString,9) for in and out going dates, and a fully specified format string if ever you need to format or evaluate a date anywhere else.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
