Problem with convertToString

Hi,

I am facing one problem when trying to convert a document to string using pub.flatFile:convertToString. The document is converted to string, and first three characters of the first field are missing in the result string,

I am using the same flatfile schema defined for convertToValues. convertToValues is working fine. When i tried the result DT of convertToValues to String first three characters of the first field are missing.

Ex: i need result in this way

FH,ORFGH5,333,RBA,26000
TR,Alexts,flexfair,1000

result i am getting is

FHFGH5,333,RBA,26000
TRexts,flexfair,1000

please help me.

Regards,
Jags

I believe your schema is csv defined right??
In your FFSchema (nth field definition) the first field is set to 1?? when the same schema working in convertToValues it should work convertToString also…In the converttostring service did you set the input “noEmptyTrailingFields” to false??

HTH,
RMG

Hi RMG,
Yes, my schema is csv defined.

[SIZE=2]In the converttostring service i have set the input “noEmptyTrailingFields” to false.

but there is no change in the result.

Thanks,
Jags
[/size]

Can u plz send the sample document which u r using so that we can try to solve that?