Dataport imports only 1 record

gazpacho
Member Posts: 48
Hi
I have to import a bunch of records from a TAB-seperated file (generated via 'save as' in Excel). However, the dataport only imports the first line of the file. There's no error message, it just cycles through the lines of the importfile without importing.
I think it has to do with the recordseparator. At the moment it is <newline>, but maybe this is not correct for an excel-txtfile ?
Thanks
Best regards
Josh
I have to import a bunch of records from a TAB-seperated file (generated via 'save as' in Excel). However, the dataport only imports the first line of the file. There's no error message, it just cycles through the lines of the importfile without importing.
I think it has to do with the recordseparator. At the moment it is <newline>, but maybe this is not correct for an excel-txtfile ?
Thanks
Best regards
Josh
0
Comments
-
Acutally the <newline>-entry is okay!
What other properties did you set?! Did you choose the right seperator property? It must be <TAB>!
Do you use the dataport fields to write directly in the table or do you use globals?
Is the key field updated through the dataport? Otherwise it will be overwritten of not changing the standard properties.
I'll be back to you when I have some more informations. :-)
Greetz
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
Make sure that you do not use anything as the field end and start delimiter. For some reasons that I don't know, Excel sometimes uses a double quote, but sometimes it does not, and Navision gets all confused too. It should be enough to just use a TAB as the field separator, and the new line as the record separator. I always use save as text and that seems to work.0
-
One add to DenStar:
use the property <NONE> to declare that you don't want to use any field separator. Otherwise we sometimes had problems with it...ProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
Thanks everyone. I solved it: the primary key was not filled properly.0
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