Skip to main content
Answer

Business event is giving error :- Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index

  • May 22, 2024
  • 3 replies
  • 120 views

Forum|alt.badge.img

Hi,

 

I have created a new business event in the system, which is set to trigger when the PO receipt line date matches today's date. The event is correctly triggering based on this condition, but it is returning the following error:

Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index

Could someone please help me with this?

 

 

I’ve attached business event for your reference. 

Best answer by psoni1585

Hi @manikantad18,

 

Thanks for your reply on my post.

 

This issue has now been resolved by adding the 'from' and 'to' email addresses to the email notification template generated through this business event. However, it's odd that the earlier error message didn't clearly specify that the 'from' and 'to' email addresses were missing. Instead, it gave an "index out of range" error.

 

Thanks 

3 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

Hi @psoni1585 

Any customisation on the PO Screen? Did the Business event trigger without any customization package,

Can you check a similar case

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • Answer
  • May 23, 2024

Hi @manikantad18,

 

Thanks for your reply on my post.

 

This issue has now been resolved by adding the 'from' and 'to' email addresses to the email notification template generated through this business event. However, it's odd that the earlier error message didn't clearly specify that the 'from' and 'to' email addresses were missing. Instead, it gave an "index out of range" error.

 

Thanks 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • May 23, 2024

Thank you for sharing your solution with the community @psoni1585!