NAV RTC - IMPORT CSV ISSUES

Ravi_ThakkarRavi_Thakkar Member Posts: 392
edited 2013-01-15 in NAV Three Tier
Dear All,

I have created an XMLPORT which is used to IMPORT the records in Production BOM Line Table.
Having some issues/doubts for the same.

1) After importing data successfully, and running the same XMLPORT again then system is showing me an error "An I/O exception occurred during the operation.. I found that EXCEL.EXE process of OS remains in running status. What can be the solution?

2) I want to read the data by skipping some columns from CSV file. How can it be done?

3) I want to skip the first row from reading the data, since it's a title of all columns. How can it be done?

Please, suggest.
Ravi_Thakkar
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com

Comments

  • kinekine Member Posts: 12,562
    Hw the XMLPort import is connected to the Excel process?? It is not using it somehow, if you are not using excelbuffer for reading Excel files..
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Ravi_ThakkarRavi_Thakkar Member Posts: 392
    I am importing CSV file through Xmlport in RTC.
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • SogSog Member Posts: 1,023
    1) After importing data successfully, and running the same XMLPORT again then system is showing me an error "An I/O exception occurred during the operation.. I found that EXCEL.EXE process of OS remains in running status. What can be the solution?
    Remove all automation variables for Excel if you didn't start the xmlport from scratch.
    Close excel before importing?
    Don't open your CSV in excel?

    2) I want to read the data by skipping some columns from CSV file. How can it be done?
    Evaluate the columns you want to skip in a variable that will be never used afterwards

    3) I want to skip the first row from reading the data, since it's a title of all columns. How can it be done?
    create a boolean firsttime, oninit = true, when you start importing and begin at the first line, check firsttime, set firsttime on false and skip the record,
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • bob_upbob_up Member Posts: 155
    I came to this thread because I also had the message "An I/O exception occurred during this operation" when running via the RTC. When I ran the same process in the classic client I got a more helpful message. The error was caused, in my case, because I was trying to read the file from the wrong folder. In other words, the message really meant "file not found".
Sign In or Register to comment.