XMLPort

ataris
Member Posts: 109
I created a simple XMLPort to export data from the Customer table. I'm receiving a Microsoft error when I try and call the XMLPort. The error is the standard Microsoft message "Would you like to report this to Microsoft, Send, Don't Send" and then kicks me out of Navision. My code is as follows:
IF EXISTS('c:\xml_customer.xml') THEN
ERASE('c:\xml_customer.xml');
TestFile.CREATE('c:\xml_customer.xml');
TestFile.CREATEOUTSTREAM(TestStream);
XMLPORT.EXPORT(90000,TestStream);
TestFile.CLOSE;
MESSAGE('XML Customer Export Complete.');
It's errors on the CREATEOUTSTREAM function when I debug it. I thought possible it could be my version of XML port but chnaging the versions and encoding doesn't make a difference.
Anyone had this problem before?
IF EXISTS('c:\xml_customer.xml') THEN
ERASE('c:\xml_customer.xml');
TestFile.CREATE('c:\xml_customer.xml');
TestFile.CREATEOUTSTREAM(TestStream);
XMLPORT.EXPORT(90000,TestStream);
TestFile.CLOSE;
MESSAGE('XML Customer Export Complete.');
It's errors on the CREATEOUTSTREAM function when I debug it. I thought possible it could be my version of XML port but chnaging the versions and encoding doesn't make a difference.
Anyone had this problem before?
0
Comments
-
I ran your code in SP1 version it works fine. No crashing. I used a diff xml port
XMLPORT.EXPORT(8002,TestStream)
0 -
Mine is still crashing and I'm using SP1.
What are your properties for the XML set at?
Mine are Format/Evaluate - XML Format/Evaluate
Encoding - UTF-16
XML Version - 1.0
I'm on XP. Not to sure whats happenning now that you have it working.0 -
I have solved this.
I think the reason why this never worked is because I had never installed Navision on my computer from the cd but rather dragged the files across. So it must need a file in order for it to stream the data.
Once I re-installed it from the cd it worked ok. \:D/0 -
I have exactly same problem too, it worked in my development server, but the user cannot run this XMLPort after import to their environment.
The user's copy of Navision is confirmed installed from CD, not copied from some other places. So reinstall probably does not help.
Anybody has any other suggestion?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