Big Decimal Error in TFileInputDelimited

One Star

Big Decimal Error in TFileInputDelimited

Dear i try to laod a txt file with bigdecimal value like "-11368683772161603e-29".
I receive an error like this The constructor BigDecimal(BigDecimal) is undefined.
I try to load as string and convert to BigDecimal but same error.
regards
Marc
Six Stars

Re: Big Decimal Error in TFileInputDelimited

Which version of talend are you using?
Check your code and see whether the big decimal class is imported. Check for Code : "import java.math.BigDecimal;"
Seventeen Stars

Re: Big Decimal Error in TFileInputDelimited

hi,
as the error said :
constructor BigDecimal(BigDecimal) is undefined.

you cannot a new BigDecimal 'object' with a bigDecimal as parameter ...
you already has a bigDecimal in entry.
regards
laurent
Seventeen Stars

Re: Big Decimal Error in TFileInputDelimited

Where do you try to convert to a BigDecimal. It looks like the tFileInputDelimited component did that already for you.

2019 GARTNER 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

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