How to import DateTime using XMLPort

robertderoos
Member Posts: 10
I have created a xmlport which import an order from a xml file. There is however a datetime field from which i want to extract the date for use as the orderdate, but when i try to import it in a datetime field i get an error "invalid date 2006-11-01T12:13:14".
How can i create a datetime?
Best regards,
Robert
How can i create a datetime?
Best regards,
Robert
0
Comments
-
change the node to a text and in trigger Import::OnAfterAssignVariable for the text do string manipulation.0
-
See also the XMLport "Format/Evaluate" property.
From the C/SIDE Reference Guide:If the XML document that you want to import contains data that corresponds to the standard C/SIDE data types, you should select C/SIDE Format/Evaluate (default value). The data will then be evaluated before being inserted into the database.
On the other hand, if the XML document that you want to import contains data that uses the standard XML data types, you must use the XML Format/Evaluate setting. This will ensure that the data is evaluated and converted to the C/SIDE data types before being inserted into the database.
However, if the data that you want to import does not follow either the Standard C/SIDE formats or the XML formats, you must import the data into a temporary table in text format. You can then use C/AL code to convert the data before inserting it into the database.0
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