Error is - "Data too long for column 'FIELD1' at row 1"

One Star

Error is - "Data too long for column 'FIELD1' at row 1"

I am using TOS 4.01
In my xml file seems
<A100>
<A111>XX</A111>
<A111>AA BBB CCC DDD EEE FFFF GGG HHH</A111>
</A100>
Issue in xml file.
My table looks like
FIELD1 should be XX
FIELD2 should be AA BBB CCC DDD EEE FFFF GGG HHH
I am getting
FIELD1 XX
FIELD2 XX
What is the way to get appropriate data insert into the fields.
Highlighted
One Star

Re: Error is - "Data too long for column 'FIELD1' at row 1"

There is no deviation with database structure.
Moderator

Re: Error is - "Data too long for column 'FIELD1' at row 1"

Hi,
How about setting the XPath query as follows:
see pics
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch