Support Forum [ All Topics | New Topic ]

Thread: CSV file issue

Hi,
I am trying to read your CSV file and getting some issue while inserting in the database.
CSV file data-
Seller Name,RapNet Account ID,Name Code,etc... (Column Names)
Goodfine Diamond Int'l Corp.,2099655,GOODF,etc... (Column values)
when I split the above values it is working fine and inserting properly in the databse as below-
Goodfine Diamond Int'l Corp.
2099655
GOODF
But some times when i split these values whenever comma comes in between the Seller name for eg. (Ninacci, Inc.) the value before the comma get inserted in the first coloumn and the value after the comma get inerted in the second column.
which is not proper.
CSV file data-
Seller Name,RapNet Account ID,Name Code,etc... (Column Names)
Ninacci, Inc.,2099655,GOODF,etc... (Column values)
when i split with comma the above values it is not getting inserted in the relevant columns as below-
Ninacci
Inc.
2099655
GOODF
Can you please suggest what could be the solution to this problem.
Thanks,
Shobhit Parasher


>> add a comment
Shobhit
08/13/2015 09:41


4 Replies:

Hi
When there is comma in the  value we wrap it with "" 
For example  :     "Ninacci, Inc.",46913,


>> add a comment
Reuven
8/13/2015 10:20:00 AM
What  if there is any value without  ""  for Example - Ninacci, Inc. 


Thanks,
Shobhit Parasher





>> add a comment
Shobhit
8/13/2015 11:07:00 AM
Hi,

 there are two columns which is showing comma and when i split with comma the following values it is not getting inserted in the relevant columns as below-

1. Image url  (Column Name)
 http://s3-ap-southeast-1.amazonaws.com/hkfauna/viewer.html?d=150195-204&sm=1&sd=50&sv=0,1,2,3,4&z=1&v=2 (Column value )

2. Seller Name (Column Name)
     Ninacci, Inc. (Column value)


if there is any value without ""


Can you please suggest what could be the solution to this problem.


Thanks,
Shobhit Parasher






>> add a comment
shobhit
8/13/2015 11:47:00 AM
Hi
I downloaded your file , and  Ninacci, Inc. and the Image Url are wrapping with "".
if you will open your file with notepad you can see it.


>> add a comment
Reuven
8/16/2015 2:34:00 AM