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

Highlighted
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.
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.

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog