PO XML Port

olwin
Member Posts: 22
Hi there,
I want to Export and Import Purchase Order Data using XML Port. But I found a problem when I want to export-import (exim) for more than one PO Data. The problem is when I see the XML file on IE
("The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'file:///C:/PO_XML_OK1.xml'. Line 271,...")
And when I tried to import this XML, an error message occurs from NAV 4.0 SP3 (The XML Parser return the following fatal error: A document must contain exactly one root element. Line number = 271 Column number =13)
Does anybody knows how to correct this error? (This Error didn't occur if I only export 1 PO file, in this scenario I want to export 2 PO files)
Thanks b4......
I want to Export and Import Purchase Order Data using XML Port. But I found a problem when I want to export-import (exim) for more than one PO Data. The problem is when I see the XML file on IE
("The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'file:///C:/PO_XML_OK1.xml'. Line 271,...")
And when I tried to import this XML, an error message occurs from NAV 4.0 SP3 (The XML Parser return the following fatal error: A document must contain exactly one root element. Line number = 271 Column number =13)
Does anybody knows how to correct this error? (This Error didn't occur if I only export 1 PO file, in this scenario I want to export 2 PO files)
Thanks b4......
0
Comments
-
Hello. A Valid XML file can have only one root.
My guess you xml file looks like this<No> Table Purchase Header <Buy-from Vendor No.> field PurchaseHeader::Buy-from Vendor No.
You need to change the xml port to something like this.<PurchaseOrders> text PurchaseOrders <No> Table Purchase Header <Buy-from Vendor No.> field PurchaseHeader::Buy-from Vendor No.
Basically create a new node on top and indent everything else below it.0 -
Hi...
I've tried your suggestion and it works....Thank you so much.... I still have one problem with the Imported Data. I found that value on Order Date and Document Date field wasn't copied from the original data. Value on these 2 fields were populated with the current imported company work date. Can you kindly help me to solve this issue?
Ilustration:
Export Company: Import Company:
WorkDate: 01/25/01
Work Date: 01/28/01
Posting Date: 10/10/01
Posting Date: 10/10/01
Order Date: 10/10/01
Order Date: 01/28/01
Document Date: 10/10/01
Document Date: 01/28/01
Thanks....0 -
One thing is to check the validation order of the date fields. I don't know how you've built your Import Export routine but you may want to simply assign the values to the document fields instead of validating them.0
-
hi everyone
even m too having the same error wen i am trying to run the xml file i get the following error:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Missing equals sign between attribute and attribute value. Error processing resource 'file:///C:/Users/rajani.nair/Desktop/...
<Res. Ledger Entry/Chq Printing>
^
wat do i do plzzz help0
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