Hi,
Can anybody explain me how can i import Fixed File in XMLPort ? I tried to build but i got error like "The XML Parser return the following fatal error: Incorrect document syntax : Line Number = 1 Column Number = 1. Also i have set the Property "Format" to "Fixed Text" and set the Width property of Field as well.
Belwo is an example of the file which i have to take into Gen. Journal Line.
04100325 1613 08253 0000000287000-0000000
04100325 1613 11131 0000000005000-0000000
I have solution with Dataport but as you konw it doesn't work with RTC and my client need that in RTC.
Please suggest what can be done to solve this issue.
//Shashin
0
Comments
Microsoft haven't bothered to write the code for non-XML XMLPorts in Classic, or even have it throw an error.
TVision Technology Ltd
Anyone out there who can help with this issue?
Thanks,
Hanen TALBI
I have created a XMLPort Import and used Codeunit to run the XMLPort Import.
I create a Link in RTC Menu to call the Codeunit and manage to run XMLPort Import with no error when I click on the link in RTC.
When i used NAS to run the codeunit I have this error in the Event Viewer.
'The XML Parser return the following fatal error: Incorrect document syntax. Line Number = 1 Column Number = 1 '
I have make sure the Codeunit is SingleInstance=Yes and Codeunit 1 configure to call the parameter correctly.
I m using Microsoft Dynamic Navision 2009 SP2
Is anyone have the solution could you share over here?
Thank you
I'm interesting how to run the codeunit with the NAS.
Do you have any code elements to tell me ?
How to properly configure the NAS?
Thanks in advance.
You cannot use C/AL variables of type DATAPORT when running the Application Server for Microsoft Dynamics NAV Classic.
So I try with XML port, I can't execute it in classic client so I try to run it with NAS, then I get this error:
The XML Parser return the following fatal error: Incorrect document syntax. Line Number = 1 Column Number = 1
So what should I do to schedule an import of a text file? ](*,)
That way it's also possible to have multiple web service connections open, at the same time, from one NAS too.
Other possibility is to use some other scheduler to call the Nav web services.
If you can do either of those you're reduced to writing you import/export using a codeunit and FILE variables, rather painful.
TVision Technology Ltd
It's just annoying that you don't get any proper error message so you end up searching through the code for hours before you start suspecting the application itself.
Amen!!! Just lost a whole morning before this dawned on me. I'd better stop before I really say what I think.
:thumbsdown: