• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Truncation of string field

#1 2011-11-18 12:05:46

mpa
Member
Company: Thinking Solutions
Registered: 2010-12-17
Posts: 257
Website

[resolved] Truncation of string field

Hello,

I'm having a question. It's not really a problem but i'm wondering if anyone knows if it's possible.

Now when talends gets a value that's too long for a string field, the records doesn't get inserted and Talend says column x is too long.

Right now I have always added a Reject flow to an excel file and this file is mailed to indicate the records.

Now for another customer he says that it isn't ok that the record isn't inserted several time until it gets resolved. So we have a scheduled run everyday, which means the record isn't inserted that day.

Is it possible to insert the record but take a left or something if it's too long, so all characters that's in the limit of the length of the string should be inserted.

Is this possible in Talend or would I have to do a left function on every string field for this?

Anyone have other ideas/solutions for this?

Regards,
Mario De Pauw

Offline

#2 2011-11-18 12:15:42

rogierlommers
Member
Registered: 2010-11-18
Posts: 35

Re: [resolved] Truncation of string field

Yes, by default it's possible by using the tSchemaComplianceCheck

http://dl.dropbox.com/u/1757832/tSchema … nCheck.jpg

Offline

#3 2011-11-18 13:59:28

mpa
Member
Company: Thinking Solutions
Registered: 2010-12-17
Posts: 257
Website

Re: [resolved] Truncation of string field

rogierlommers,

Thanks for your reply. I had no idea there was such an option in the tSchemaComplianceCheck component. I knew it could indicate wrong data types and wrong lengths but thought it would also result in a reject flow.

I will try this solution.

Thanks for your help,
Mario De Pauw

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Truncation of string field

Board footer

Powered by FluxBB