cancel
Showing results for 
Search instead for 
Did you mean: 

Content Conversion - File Structure Validation

aayushaggarwal
Participant
0 Kudos

Dear Experts,

My scenario is that I am using a Sender File Adapter for picking up a comma separated .csv file from a location and using content conversion in my communication channel and given below parameters:

but the .csv file is coming like this

Here you can see in the first line, wrong data is coming and due to that, file is getting wrongly interpreted by the system, means something like this:

Therefore, I need some parameters with the help of which the wrong file can be identified or the communication channel should go in error (in Adapter Engine) and file will not get processed.

Waiting for your responses.

Regards,
Aayush Aggarwal

Accepted Solutions (0)

Answers (1)

Answers (1)

sahithi_moparthi
Contributor
0 Kudos

Hi,

Mention 1 in Document Offset

Document Offset : specify the number of lines that are to be ignored at the beginning of the document. This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.

So when you type Document Offset = 1, the first line of your input file will be ignored by the file adapter during FCC processing.


aayushaggarwal
Participant
0 Kudos

Hi Sahithi,

Thanks for your response, but the Document Offset is already there...

And this first lines doesn't comes on a regular basis, this comes when the user make change in the .csv file through excel (which should be done through notepad).

So we can't always ignore the first line.

Can you please suggest something else??

Regards,

Aayush

sahithi_moparthi
Contributor
0 Kudos

Hi Aayush,

Try using the Row.processFields= FromConfiguration

aayushaggarwal
Participant
0 Kudos

Thanks Sahithi,

Can you please tell me, what does this do exactly ??

Regards,
Aayush

sahithi_moparthi
Contributor
0 Kudos

If no header information exists in the file to be converted, but it will be delivered by the present configuration.

aayushaggarwal
Participant
0 Kudos

Thanks Sahithi,

I'll try and use this one and will let you know if it works or not.

Regards,

Aayush Aggarwal

aayushaggarwal
Participant
0 Kudos

Hi Sahithi,

No unfortunately it didn't work.

The file conversion is working in the same manner as it was working before...

Regards,

Aayush