NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CSV with comma in string

Hi,

 

I am using CSV file generated by TestStand 4.5 import/export function that has one of the string variable with comma in it ("This is comma, Test."). But the property loader can't load this file and errors out. Is there a way to solve this problem? I do not want to use the tab txt file as csv is more readable.

 

Thank you,

Hiren

Hiren Patel
0 Kudos
Message 1 of 4
(3,269 Views)

Hey Hiren,

 

Thanks for posting! When you say the property loader errors out, do you see an error window or associated error code? If so, could you provide a screenshot?

 

0 Kudos
Message 2 of 4
(3,250 Views)

Hi Courtney,

 

Thanks for the reply. The error screen shot.

 

CSVError.jpg

 

The CSV file looks like:

START

<Step Name>

 

<Locals>,Variable Value

 

<FileGlobals>,Variable Value

testString,"This is comma(,) test."

 

<StationGlobals>,Variable Value

END

 

Thanks,

Hiren

Hiren Patel
0 Kudos
Message 3 of 4
(3,233 Views)

Sorry, but there's no way to discrimate a comma being a delimiter and a comma as part of a value.  I think in this instance, you are going to have to go to the tab delimiter.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,230 Views)