Can anyone explain how to import/export csv files in the RTC?
Well, first of all I am just trying with a very simple exsample for exercise.
I have created XMLport based on "Post Code" table, and I need I to work both ways(import/export).
The XMLport should export/import data as csv file.
I have changed the Format property to "Variable Text" and when I run the XMLport data is exported in XML format.
I don't know how to make the XMLport to act as dataport.
Do I have to change some other properties or add some code to XMLport?
I was searching the web for an example or an explanation on this, but could find anything.
Would you be kind enough to explain me what I am doing wrong or maybe give an example.
*This post is locked for comments
I'd have to debug that process and see for myself what is going on. Like I said I've never seen an XMLPort just automatically wipe out the content of a file. Did you ask your NAV partner?
When I look at the file after the error occurs it's empty. It's 0kb, and when I open it in notepad there is no lines in it. To begin with it had about 50 lines of data.
The reason that the error is occuring is that the XMLPort is expecting an element that is not there. I've never seen an XMLPort delete anything from a file, if it indeed does that, there should be code in there, it does not just wipe out the content of a file.
How did you determine that it deletes data?
[quote user="Daniel Rimmelzwaan [MVP]"]
That message means that your XMLPort has an element called <Resource> defined, and the MinOccurs property is set to 'Once'. This means that the design of your XMLPort specifies that this element MUST at least have one occurrance. If that element doesn't have to be there, you can set the property to 'Zero'.
[/quote]That message means that your XMLPort has an element called <Resource> defined, and the MinOccurs property is set to 'Once'. This means that the design of your XMLPort specifies that this element MUST at least have one occurrance. If that element doesn't have to be there, you can set the property to 'Zero'.
Hi fella's,
I've an issue with this also. I can export to a .csv file no problem with an XMLPort through the RTC. However, when I try to import the same file, using the same XMLPort, it doesn't work. I get the following message:
The Element <Resource> is expected by Min Occurs value:Once. Element received: <>.
It also clears all of the data out of the .csv file, which is why the above error is occuring I believe?
Any idea's?
For those of you following this topic, Maris has found a solution in another forum: http://dynamicsuser.net/forums/t/27479.aspx
It works from RTC.
I don't know why in the world I tested xmlport from CC.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156