Question

Getting "java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 " error when sending email

Hi,
We are migrating our application from Pega 7.1 to Pega 7.4 version
After migration we are getting below error while sending email in 7.4 version
ERROR - Conversion failed
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0

We use the below settings to send email. Screenshot attached for reference
1. Set email addresses in .pyEmail1 property in WorkParty Data Transform (WorkParty screenshot)
2. Call CorrNew OOTB activity with required params (CallCorrNew screenshot)

Error log attached. I see error throws from SendCorr Agent in "Data-Corr-Email Send" activity when traced.

The above setting works fine in Pega 7.1 version.

Please advice if you have any solution for this.

Correct Answer
November 7, 2019 - 11:36pm

Hi, I have identified the issue is with the TO email string, there were additional coma when email is sent to multiple users. This worked fine in 7.1 but failed in 7.4. After fixing the coma issue, it worked fine.

Thanks

Comments

Keep up to date on this post and subscribe to comments

October 31, 2019 - 3:19am

Error Log attached

October 31, 2019 - 6:38pm

In logs it is failing while calling  below function com.pega.pegarules.integration.engine.internal.util.PRServiceUtilsPriv.convertCorrEmailForSend(PRServiceUtilsPriv.java:3082) ~[printegrint.jar:?]

check with support team you need replace any jar files in server post upgrade. you can also try clean  restart.

November 7, 2019 - 11:36pm

Hi, I have identified the issue is with the TO email string, there were additional coma when email is sent to multiple users. This worked fine in 7.1 but failed in 7.4. After fixing the coma issue, it worked fine.

Thanks

Mod
November 8, 2019 - 12:44am
Response to JanardhanK0965

Thank you for sharing what worked! We will mark this post as Answered.

Lochana | Community Moderator | Pegasystems Inc.