i have been trying to import some data with dataports but it is not workin and i tried to export as well it didn't work. i am wondering if they actually work.has anyone really used dataports to import a comma-separated text data file into a table before? if yes how did you do it.i really need your help to save my head ](*,) :-k
0
Comments
Have you defined any dataport fields?
Try to have a look at the properties to see if there is something strange in this.
What table are you trying to populate/export?
glt_pno,glt_bno,glt_desc,glt_tcode,glt_pm,glt_amt,glt_loc,glt_trackid,
glt_date,glt_time,glt_uname
these fields in the table reflects the number of comma-separted fields in a record in the data file.the file has one 173,000 records.
Are you sure glt_xxx are no global variables?
Is the key of the table also included in the import file? Or have you written some code for making the key?
Do you have any code in the dataport?
am dead sure glt_xxx are no global variables.the key being No. is not included in the import file and i haven't written any code to make the key and furthermore,there is no code in the dataport.if i have to write some code in the dataport or to make the key, help me out because am desperate.
The records in the database need to be unique, so you have to define some sort of key.
What are the key fields of the table?
1) Update the AutoReplace attribute to say "Yes"
2) In the dataitem.OnAfterImportRecord trigger, put in an INSERT; command.
Microsoft Dynamics NAV Developer
RIS Plus, LLC