Skip to main content
Answer

Business Event Notification Errors; System Monitoring shows Errors

  • February 20, 2025
  • 8 replies
  • 109 views

Forum|alt.badge.img

Good day,

I have a business event that is throwing system errors.  (i have the same event working for another notification for PO Pending Approval emailing workgroups members) The purpose of this one is to send the workgroup members an email when a Quote is pending approval.  I set it up the same; the GI works fine.  I have attached the Business Event and GI.  Below is the system errors.  Any ideas and the issues?  Also, it seems to fire on it own.

Thank you for your assistance in advance.

Evan

CustomMessage = Too many events of this kind (EventID).
EventID = BPEventNotifications_SendingFailedEventId
SourceContext = BusinessEvents

BPEventName = NXT-Workgroup Notification-Quote
ContextScreenId = SM502030
ContextUserIdentity = admin
CurrentCompany = Critical Infrastructure Holdings
EventID = BPEventNotifications_SendingFailedEventId
SourceContext = BusinessEvents

Exception =
System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at PX.BusinessProcess.Subscribers.ActionHandlers.EmailAction.RenderReport(PXGraph graph, NotificationReport reportData, IDictionary`2 eventRow)
   at PX.BusinessProcess.Subscribers.ActionHandlers.EmailAction.GetAttachments(List`1 newRows, ValueTuple`2 definition)
   at PX.BusinessProcess.Subscribers.ActionHandlers.EmailAction.Process(MatchedRow[] eventRows, CancellationToken cancellation)
   at PX.BusinessProcess.EventQueueDispatcher.ProcessSubscriber(Event event, String finalMessageId, Subscriber subscriber, EventWorkflowInstance workflowInstance, ILogger logger, CancellationToken cancellationToken)

 

 

Best answer by travislawson

I haven’t tested this, but when using GI as a business event source - with record inserted - it almost never worked for me.  By default I’ve changed to using old field value → new field value instead.

I always have an old value and a new value.  See if this works first.  If not, try to change the old field value to “is empty” and see if that works.  

 

 

8 replies

Forum|alt.badge.img+1
  • Answer
  • February 20, 2025

I haven’t tested this, but when using GI as a business event source - with record inserted - it almost never worked for me.  By default I’ve changed to using old field value → new field value instead.

I always have an old value and a new value.  See if this works first.  If not, try to change the old field value to “is empty” and see if that works.  

 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 20, 2025

@travislawson   Thank you.  Is Or Or And?    I will give it a try.


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 20, 2025

@travislawson   Clarification.  I mean it the statement Old Value and NewValue.  Or is the statement Old Value AND NewValue?  Brackets?


Forum|alt.badge.img+1

@travislawson   Clarification.  I mean it the statement Old Value and NewValue.  Or is the statement Old Value AND NewValue?  Brackets?

 

Exactly as you see it there and I use the default when you add them:  OR.


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 20, 2025

Thank you.  I will update ​@travislawson  you shortly to see if it worked


Forum|alt.badge.img+1

Thank you.  I will update ​@travislawson  you shortly to see if it worked

Any updates?


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • February 21, 2025

@travislawson  Thank you.  I finally got it working this morning.  The error was not related to the Business Event.  It was an issue with trying to attached Quote PDF.  When I removed the PDF it worked.  I am not sure why the PDF didn’t work.  Step one is done; at least the managers are getting notified to approve quotes which makes the Sales reps happy.


Forum|alt.badge.img+1

Excellent!  Good to know!