Problem in excel file format while import in dataport

hemantOne
Member Posts: 98
Hi,
I create a dataport to import data in with properties-
File Format-variable
Fieldstart and End Delimiter--<">
FieldSeparator--<,>
RecordSeparator--<<newline>>
when i import the data from excelsheet(csv format) only first field value is imported.
Please experts tell me what may be the problem...I also tried with CSV(Ms-Dos) but same result.
Thanks.
I create a dataport to import data in with properties-
File Format-variable
Fieldstart and End Delimiter--<">
FieldSeparator--<,>
RecordSeparator--<<newline>>
when i import the data from excelsheet(csv format) only first field value is imported.
Please experts tell me what may be the problem...I also tried with CSV(Ms-Dos) but same result.
Thanks.
Regards,
Hemant
They can conquer who believe they can.
Hemant
They can conquer who believe they can.
0
Comments
-
Could u please post here the first 3 lines of your csv file?
Normally, csv is separated by ";" and not by "," and looks like this:75193;11000008956;17.12.2009 75194;11000008956;17.12.2009 75195;11000008956;17.12.2009
so, try this:
Fieldstart and End Delimiter -- > <NONE>
FieldSeparator--> ;
RegardsDo you make it right, it works too!0 -
Thanks garak,
Let me try this..Regards,
Hemant
They can conquer who believe they can.0 -
hi,so, try this:
Fieldstart and End Delimiter -- > <NONE>
FieldSeparator--> ;
Still the result is same only first value is imported.Regards,
Hemant
They can conquer who believe they can.0 -
so, how looks you file. Post here please the first 4 lines or attach the file (if it is not to big)Do you make it right, it works too!0
-
[url][/url]
Hi garak,
Thanks for your reply.
Actuallly csv file is not allowed to be attached here.Regards,
Hemant
They can conquer who believe they can.0 -
Dear Garak,
The first row of my csv file looks---
50000,,test,learning,EACH,BUILDING,BUILDING,BENDER VA,0,25,100,DES0047,2,4/14/2010
After some modification i find that--
I took 14 columns in excel,and when import data from dataport the error-
The text
50000,,test,learning,EACH,BUILDING,BUILDING,BENDER VA,0,25,100,DES0047,2,4/14/2010
is too long.
Thanks in advance.Regards,
Hemant
They can conquer who believe they can.0 -
ok, your field separator is "," and not ";" like i think.
Is there in a field also a "," so that there are more then 13 "," (14 columns, separated with "," -> 13x ",") :?:
Here an example with your File:
(1).50000,,test,learning,EACH,BUILDING,BUILDING,BENDER VA,0,25,100,DES0047,2,4/14/2010 50001,,test,learning,EACH,BUILDING,BUILDING,Tender VA,0,25,100,DES0047,2,4/14/2010 50002,,test,learning,EACH,BUILDING,BUILDING,Rende VA,0,25,100,DES0047,2,4/14/2010 50003,,test,learning,EACH,BUILDING,BUILDING,GENDER VA,0,25,100,DES0047,2,4/14/2010 50004,,test,learning,EACH,BUILDING,BUILDING,WENDER VA,0,25,100,DES0047,2,4/14/2010 50005,,test,learning,EACH,BUILDING,BUILDING,UENDER VA,0,25,100,DES0047,2,4/14/2010 50006,,test,learning,EACH,BUILDING,BUILDING,PENDER VA,0,25,100,DES0047,2,4/14/2010
Here a example table where the datas should store (ok, all code fields)
(2).OBJECT Table 50000 test { OBJECT-PROPERTIES { Date=15.04.10; Time=11:45:12; Modified=Yes; Version List=; } PROPERTIES { } FIELDS { { 1 ; ;Code1 ;Code20 } { 2 ; ;Code2 ;Code20 } { 3 ; ;Code3 ;Code20 } { 4 ; ;Code4 ;Code20 } { 5 ; ;Code5 ;Code20 } { 6 ; ;Code6 ;Code20 } { 7 ; ;Code7 ;Code20 } { 8 ; ;Code8 ;Code20 } { 9 ; ;Code9 ;Code20 } { 10 ; ;Code10 ;Code20 } { 11 ; ;Code11 ;Code20 } { 12 ; ;Code12 ;Code20 } { 13 ; ;Code13 ;Code20 } { 14 ; ;Code14 ;Code20 } } KEYS { { ;Code1 ;Clustered=Yes } } FIELDGROUPS { } CODE { BEGIN END. } }
and here the example Dataport
(3).OBJECT Dataport 50000 test { OBJECT-PROPERTIES { Date=15.04.10; Time=11:46:20; Modified=Yes; Version List=; } PROPERTIES { FieldStartDelimiter=<None>; FieldEndDelimiter=<None>; FieldSeparator=,; } DATAITEMS { { PROPERTIES { DataItemTable=Table50000; DataItemTableView=SORTING(Code1); } FIELDS { { ; ;Code1 } { ; ;Code2 } { ; ;Code3 } { ; ;Code4 } { ; ;Code5 } { ; ;Code6 } { ; ;Code7 } { ; ;Code8 } { ; ;Code9 } { ; ;Code10 } { ; ;Code11 } { ; ;Code12 } { ; ;Code13 } { ; ;Code14 } } } } REQUESTFORM { PROPERTIES { Width=9020; Height=3410; } CONTROLS { } } CODE { BEGIN END. } }
So, when i run the Dataport (not from design mode), the textfile (1) will be imported in table (2).
So, there must be something other wrong in your dataport or textfile.
RegardsDo you make it right, it works too!0 -
Thanks garak for your continuous support.
When i save my csv file as text(tabseparated) it works fine.I found in mibuso that sometimes in csv files that type of problem comes while importing data..
Again very very thanks.Regards,
Hemant
They can conquer who believe they can.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