Skip to main content
Solved

Business event firing twice for one vendor but not the other — duplicate approval email

  • May 21, 2026
  • 5 replies
  • 69 views

Hi everyone, hoping someone can help me track down a strange issue with a business event sending duplicate emails for one vendor but not the other.

Setup

We have a business event called PO Approved set to Trigger by Record ChangeFor Each Record, on the created Purchase Order Generic Inquiry (no grouping) screen. It has one subscriber - an email notification that sends the approved PO to the document owner.

The trigger conditions filter by:

New Field Value – Status = Pending Printing Or Pending Email Or Open
And
Old Field Value – Vendor ID = Vendor 1 Or Vendor 2

Fields to Track includes both Status and Vendor (vendorID).

The problem

When a PO is approved for Vendor 1, the recipient receives two identical emails at the exact same time. This has happened consistently across multiple POs on different dates. When the same business event fires for Vendor 2, only one email is sent as expected.

What I've ruled out

— Only one subscriber on the business event
— Only one business event linked to the email notification (Send By Events tab)
— No duplicate vendor records for Vendor 1
— Only one vendor location and one contact on Vendor 1
— Business Event History confirms the event is being raised twice for every Vendor 1 PO, same timestamp.

Best answer by Zia

Hi @everyone, thanks for all your help! This issue has been resolved. I updated the Business Event trigger conditions to include Old Value of POOrder.Status so the event fires only on transition from Pending Approval to Open, Pending Printing, or Pending Email. And changed the Raise Event setting from For Each Record to For Group of Records. Set the Group Records By field on the business event to POOrder.OrderNbr.

5 replies

Forum|alt.badge.img
  • Varsity I
  • May 26, 2026

Try adding the NoteIDs for the POOrder, Vendor, and BAccountR DACs to the email template. If the duplicate emails sent contain the exact same NoteIDs, that tells me there are PO duplicates in the GI for the Business Event. If you’re sure the GI isn’t listing the same PO multiple times, you may need to file a support case.

 

If the NoteIDs are different (e.g. Email 1 BAccountR.NoteID != Email 2 BAccountR.NoteID), then you have duplicate records for the same entity.  


Forum|alt.badge.img+2
  • Captain I
  • May 26, 2026

Hi ​@Zia can you attach your business event and GI xml here? Or provide screenshots of your BE and GI setup?  I’m interested in playing around with the setup in my system and see if I find anything. Thanks!


Forum|alt.badge.img+2
  • Jr Varsity III
  • June 15, 2026

@Zia ,
  In my case I use   PX.Objects.EP.EPApprova alies ApprovalEarlier. table and in condition tab use ApprovalEarlier.ApprovalID condition is Empty.


Forum|alt.badge.img+1
  • Semi-Pro II
  • June 15, 2026

Hi everyone, hoping someone can help me track down a strange issue with a business event sending duplicate emails for one vendor but not the other.

Setup

We have a business event called PO Approved set to Trigger by Record ChangeFor Each Record, on the created Purchase Order Generic Inquiry (no grouping) screen. It has one subscriber - an email notification that sends the approved PO to the document owner.

The trigger conditions filter by:

New Field Value – Status = Pending Printing Or Pending Email Or Open
And
Old Field Value – Vendor ID = Vendor 1 Or Vendor 2

Fields to Track includes both Status and Vendor (vendorID).

The problem

When a PO is approved for Vendor 1, the recipient receives two identical emails at the exact same time. This has happened consistently across multiple POs on different dates. When the same business event fires for Vendor 2, only one email is sent as expected.

What I've ruled out

— Only one subscriber on the business event
— Only one business event linked to the email notification (Send By Events tab)
— No duplicate vendor records for Vendor 1
— Only one vendor location and one contact on Vendor 1
— Business Event History confirms the event is being raised twice for every Vendor 1 PO, same timestamp.

Duplicate notifications are usually caused by duplicate lines per PO. If you could show the GI underlying here that would be helpful.

I would otherwise, just set the Business Event to be triggered for a group of records and use the Purchase Order Nbr as the Field to group these.
That way it will always just fire once unless the condition is met again.


  • Author
  • Answer
  • June 15, 2026

Hi @everyone, thanks for all your help! This issue has been resolved. I updated the Business Event trigger conditions to include Old Value of POOrder.Status so the event fires only on transition from Pending Approval to Open, Pending Printing, or Pending Email. And changed the Raise Event setting from For Each Record to For Group of Records. Set the Group Records By field on the business event to POOrder.OrderNbr.