Import Long text from XML nodes into NAV

DRB
Member Posts: 105
Hi,
I want to import an xml, which has Node data size more than 1024 characters. If I use a variable of type Text (BigText) in the XMLPort and then use CREATEOUTSTREAM to assign this text value to a BLOB field in NAV table, then the format (white space, next line etc.) of then line gets distorted.
And instead of using Text/Bigtext, if I use the BLOB field in the XMLPort then it gives error
"The length of the text string exceedst the size of the string buffer."
I am using NAV2009 R2.
What are other possibilities? Please help.
I want to import an xml, which has Node data size more than 1024 characters. If I use a variable of type Text (BigText) in the XMLPort and then use CREATEOUTSTREAM to assign this text value to a BLOB field in NAV table, then the format (white space, next line etc.) of then line gets distorted.
And instead of using Text/Bigtext, if I use the BLOB field in the XMLPort then it gives error
"The length of the text string exceedst the size of the string buffer."
I am using NAV2009 R2.
What are other possibilities? Please help.
-Dhan Raj Bansal
Linkedin Profile: http://in.linkedin.com/in/dhanrajbansal
Linkedin Profile: http://in.linkedin.com/in/dhanrajbansal
0
Comments
-
Does anyone have any idea on this issue?-Dhan Raj Bansal
Linkedin Profile: http://in.linkedin.com/in/dhanrajbansal0 -
I had the same problem (NAV 2013 RTC).
Solved it by setting XML-port-property "PreserveWhiteSpace" to Yes.
Microsoft Dynamics NAV supports the XML standard by normalizing white space in attribute names and values that are imported through an XMLport. Unfortunately it also deletes CR/LF from the actual data ](*,)
Hope this helps,
Regards,
Erik 8)0 -
Erik Laarman wrote:Unfortunately it also deletes CR/LF from the actual data ](*,)
The XML standard defines everything that is not markup as "character data", all white space included. (http://www.w3.org/TR/2006/REC-xml11-20060816/#syntax)
NAV's approach makes some assumptions that might hold true frequently, provided your files contain data that could be stored with simple field types in a database table.0 -
XML Text Node object ('Microsoft XML, v3.0'.IXMLDOMText) has SubstringData method, you can use it for reading large texts.
Also, look at this viewtopic.php?f=23&t=44086 topic.Looking for part-time work.
Nav, T-SQL.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