Importing XML file Issues

Chowdary
Member Posts: 148
Hi NAVExperts
I'm having dificulty understanding the error, please help me out
XML Structure
<Root>
<Header>
<Element1>data</Element1>
<Element2>data</Element2>
<Element3>data</Element3>
etc.,
</Header>
<Header2>
<Element1>data</Element1>
<Element2>data</Element2>
<Element3>data</Element3>
<addr loop/> {somany elements}
<datetime loop/> {somany elements}
<reference loop/> {somany elements}
<transport loop/> {somany elements}
<Item loop/> {somany elements}
</Header2>
</Root>
Like this many indentation inside elements on the XML file. I'm trying to import the data into one table. I guess that is what I'm doing wrong
Is it possible to import files like this with XMLPorts?
Please see the attachemnet of sample XML file
any ideas highly appreciated :thumbsup:
Thank You
Chowdary
I'm having dificulty understanding the error, please help me out
XML Structure
<Root>
<Header>
<Element1>data</Element1>
<Element2>data</Element2>
<Element3>data</Element3>
etc.,
</Header>
<Header2>
<Element1>data</Element1>
<Element2>data</Element2>
<Element3>data</Element3>
<addr loop/> {somany elements}
<datetime loop/> {somany elements}
<reference loop/> {somany elements}
<transport loop/> {somany elements}
<Item loop/> {somany elements}
</Header2>
</Root>
Like this many indentation inside elements on the XML file. I'm trying to import the data into one table. I guess that is what I'm doing wrong
Is it possible to import files like this with XMLPorts?
Please see the attachemnet of sample XML file
any ideas highly appreciated :thumbsup:
Thank You
Chowdary
Pleasure in the job puts perfection in the work
0
Comments
-
What is the error you are getting?0
-
If you see on the file attached, if I want to use the same table after a text Element I'm getting the following error while compiling
Error: You must specify a Table DataSource before you can select a Field DataSource.
Thank You
ChowdaryPleasure in the job puts perfection in the work0 -
XMLport needs to know when to insert the record.
You cannot use staging 1 fields and then staging 2 fields and then go back to staging 1 fields.
Create staging 3 table/fields of type temporary and store fields that way. Then write code on postxmlport to populate your actual record.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