Skip to main content
Solved

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


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 

View original
Did this topic help you find an answer to your question?

3 replies

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

Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • 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
  • 2640 replies
  • May 23, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings