XML file not created using xml port running by NAS

smnehal
Member Posts: 14
Hi ,
I am creating XML file when Order is Posted , It works fine When I post sales Order manually.
But when Sales Order Post by NAS , it post the sales order but the XML file is not created .
I am Using NAV 2009 R2
The Code is :
XMLFile.CREATEOUTSTREAM(XMLOutStream);
XMLPortDealer.SETTABLEVIEW(SalesInvHeader);
XMLPortDealer.SETDESTINATION(XMLOutStream);
XMLPortDealer.GetInvoiceNo(SalesInvHeader."No.");
XMLPortDealer.EXPORT;
XMLFile.CLOSE;
I also set the property "Encoding" from the XMLPort to UTF-8 , but it not creating XML file using Navision Application Server (NAS).
Can you please help ](*,)
Thanks
SMN
Syed
I am creating XML file when Order is Posted , It works fine When I post sales Order manually.
But when Sales Order Post by NAS , it post the sales order but the XML file is not created .
I am Using NAV 2009 R2
The Code is :
XMLFile.CREATEOUTSTREAM(XMLOutStream);
XMLPortDealer.SETTABLEVIEW(SalesInvHeader);
XMLPortDealer.SETDESTINATION(XMLOutStream);
XMLPortDealer.GetInvoiceNo(SalesInvHeader."No.");
XMLPortDealer.EXPORT;
XMLFile.CLOSE;
I also set the property "Encoding" from the XMLPort to UTF-8 , but it not creating XML file using Navision Application Server (NAS).
Can you please help ](*,)
Thanks
SMN
Syed
0
Answers
-
Hi,
- Is it something to do with the user that the NAS service runs under? Try logging in to the NAV client as the same user that the NAS service runs under and post an Order manually to see if its a problem with the user setup?
- Are there any windows popping up from the XMLPort when you run it manually, if so these should be handled by GUIALLOWED for the NAS to run it?
- You could put the NAS in Debug mode to see where it is falling over?
G'd luck!
P0 -
Check event log for more info. In your code there is not clear how the target file is created and where it is placed.
And if you are talking about standard NAS, this post should not be in NAV Three Tier, because it is still classic stack.0 -
Hi
@ polonious :
I post the order manually under same account as NAS , its working fine . The xml file is created.
But by NAS its not creating xml file after posting order.
@ kine :
Target file is Create :\XMLFILe\InvoiceNo.xml
Can any one have solution to create xml file by NAS .?
Thanks0 -
Hi, as per Kine's suggestion have you checked the Event Viewer after the NAS job has run to see if there are any events created. Any errors from the NAS job will be in here.
Since you've ruled out a user setup problem, if the Event Viewer doesn't show up anything, i would run the NAS in debug mode to find out where its stopping!?0 -
[Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi ,
I run the NAS in debug mode , its invoice the sales order and but not creating the XML file.
No error message on event viewer.
The issued resolved by file path was not correct.
Thanks0 -
Than question is, if it really go into the part for exporting the XMLFile (like condition "if GUIALLOWED then")... could you debuig the process? Or you can add some messages to track the process (the messages will be written to Event Log).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