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.

  • Data Quality
2 REPLIES
Nine 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.