NumberFormatException Issue in Mapping

Four Stars

NumberFormatException Issue in Mapping

 I am using:

new new BigDecimal(row1.BalanceDueCurr) 

This is converting a string from the source file.

I am getting the following error when processing a file through mapping.

Exception in component tMap_1 (ASG)
java.lang.NumberFormatException
	at java.math.BigDecimal.<init>(BigDecimal.java:494)
	at java.math.BigDecimal.<init>(BigDecimal.java:383)
	at java.math.BigDecimal.<init>(BigDecimal.java:806)
	at asg_integration.asg_0_1.ASG.tFileList_1Process(ASG.java:3641)
	at asg_integration.asg_0_1.ASG.tFTPGet_1Process(ASG.java:4891)
	at asg_integration.asg_0_1.ASG.tFTPConnection_1Process(ASG.java:4535)
	at asg_integration.asg_0_1.ASG.runJobInTOS(ASG.java:8023)
	at asg_integration.asg_0_1.ASG.main(ASG.java:7806)
[statistics] disconnected

 The odd behavior is that it processes all of the records in the text file without issue. Out of 272 readable records, 272 are being updated or inserted into Salesforce correctly. I do not understand what is causing this error.

Highlighted
Forteen Stars

Re: NumberFormatException Issue in Mapping

do You set - skip empty rows? it could be at the end of file

-----------
Four Stars

Re: NumberFormatException Issue in Mapping

Skip empty rows is checked.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Enabling Data Governance

Learn how to enable Data Governance

Watch Now

The Definitive Guide to Government Data Quality

Take a peek at the definitive guide to Government Data Quality

Read