cancel
Showing results for 
Search instead for 
Did you mean: 

FixedLengthTooShortHandling--Not working

Former Member
0 Kudos

Hi Group,

I need to prevent one node writting into output file which is coming from Target structure.

I have used

FNAME.fieldFixedLengths 0

FNAME.FixedLengthTooShortHandling Cut

in my Content Conversion.

But its not working.Its giving error in adapter level,saying that field length is greated then 0.

Can any body suggest.

Accepted Solutions (0)

Answers (4)

Answers (4)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Can you able to ignore the 15th field using mapping through some UDF or java mapping?

Former Member
0 Kudos

Hi Baskar,

I can't ignore the ampping.

when we have single filed in the node then we can use the below conversion parameters:

FileName.fieldFixedLengths: 0

FileName.fixedLengthTooShortHandling: Cut

But is there any option in my case?

Former Member
0 Kudos

Thanks...Issue is resolved.

kenny_scott
Contributor
0 Kudos

try adding the parameter :-

FNAME.lastFieldsOptional Yes

Former Member
0 Kudos

Hi,

If you dont want at all then the best thing is in Message Mapping on the field Right Click and then Disable the field itself. Then you will not get in the output. Also when you do this dont give the field length in Communication channel.

Hope this helps....

---Satish

Former Member
0 Kudos

Hi Santish,

I need that Node in the Message Mapping (for File Name purpose),but I dont need to write this node in the output file.

moorthy
Active Contributor
0 Kudos

Hi,

Did you check Cut parameter in the File Receiver Communication channel.

This blog may help u-

Regards,

Moorthy

Former Member
0 Kudos

HI Moorthy,

I tried giving this ,its not working

moorthy
Active Contributor
0 Kudos

Hi,

If it is not working , then try it- exactly like this-

<b>FNAME.fieldFixedLengths 0

FNAME.fixedLengthTooShortHandling Cut</b>

probably the error may be because of case sensitive

Regards,

moorthy

Former Member
0 Kudos

Hello All,

but in my case, have 15 fields and my 15th field is filename.

Now I want to supress the 15th field(Filename), i need the first fourteen fields in .csv file.

How could I achieve this with out creating new node for my 15th field(Filename).

Thanks in advance...

Nani

Edited by: nani chandu on Jan 1, 2012 12:58 PM

Edited by: nani chandu on Jan 1, 2012 1:00 PM

Former Member
0 Kudos

Hi swabap,

try to add also this command:

FNAME.endSeparator '0'

Hope this help

Regards

Francesco

Former Member
0 Kudos

Hi Francesco,

I tried ]

FNAME.endSeparator '0'

with this also,but its not working