Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

BigDecimal - precision Non-matches

I am getting precision Non-matches error when trying to convert String to BigDecimal or writing BigDecimal column to Same data type

 

Here is job Design

tFileInput --> tMap  --> tSchemaComplianceCheck --> Oracle Output

 

Lets take an example - Column1 is number column with (30,5) in Table and when I import the  schema in Talend -- it is imported as BigDecimal (30,5) ...now I am converting source String column to BigDecimal in tMap ...if precision column has value then it is failing ...when I make precision column blank then it is working fine...could you please help me in understanding why making precision column blank is working?

Labels (2)
1 Reply
Sid3
Contributor III
Contributor III

Hi Goyal,

 

How are you converting the string to BigDecimal?

 

Let's say I have a field AMOUNT field from source as string.

 

I should convert as below in tMap.

 

new BigDecimal(row1.AMOUNT)

 

Can you please post some sample data from source here to help you better way