XML Import

akaserer
Member Posts: 6
I created an XMLport and exported some data which is fine.
After that i tried to import this XML file via the same XMLport back into Navision.
I get the following error message:
___________
The XML Parser return the following fatal error:
A document must contain exactly one root element.
Line Number = 1 Column Number = 0
___________
I imported the same file which was exported before with the same XMLport.
How to fix this problem?
Thanks for your help
After that i tried to import this XML file via the same XMLport back into Navision.
I get the following error message:
___________
The XML Parser return the following fatal error:
A document must contain exactly one root element.
Line Number = 1 Column Number = 0
___________
I imported the same file which was exported before with the same XMLport.
How to fix this problem?
Thanks for your help
0
Comments
-
May be that in your XMLPort you defined the root as something, which is repeated (table)... you need to have only one root, not for example 10 items...0
-
I use the standard Navision 4.0 Cronus US database and in here i use the pre-defined dataport
ID 10 - IC G/L Account Import/Export
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<GLAccounts>
<ICGLAccount No="10000" Name="ASSETS" AccountType="Begin-Total" IncomeBalance="Balance Sheet" Blocked="No" Indentation="0"/>
.... (there are more elements like this)
</GLAccounts>
So you see: there is only 1 GLAccounts root node.
The export works, but i got the problem with the import.
I use this one just for testing but i need to import other XML docs to Navision.
Thanks0 -
maybe somewhere is an element / attribute which is named like the root element ? try using a namespace if possible.0
-
Hello.
This is a known issue and here is the KB article
https://mbs.microsoft.com/knowledgebase ... -us;9464450
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