How can i make dataports work for me?

magnifique
Member Posts: 43
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
-
They work. Trust me.
Have you defined any dataport fields?0 -
yes i did define some dataport fields0
-
Ok, than it is a bit strange because if you just create a new dataport, put some fields in it it should work emidiately.
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?0 -
these are the fields in the table are: No. ,glt_accno,glt_ptype,glt_oaccno,
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.0 -
Are these the field names in the table? How do you do this? Do you have readable captions? :?
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?0 -
yeah these field names are in the table.am trying to import the data in the csv file into the table.readable captions where?
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.0 -
Ok.
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?0 -
I have had instances where it seem the AutoSave attribute didn't work as I'd expected it to. Try two things:
1) Update the AutoReplace attribute to say "Yes"
2) In the dataitem.OnAfterImportRecord trigger, put in an INSERT; command.Kristopher Webb
Microsoft Dynamics NAV Developer0 -
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