mshanemc / roundRobinProcessBuilder

27 stars 10 forks source link

If you have anything other than a user in the Public Group "System.DmlException: Update failed. First exception on row 0 with id 00Q2h000000ycnrEAA; first error: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id: [] #3

Closed Bexxy55 closed 5 years ago

Bexxy55 commented 5 years ago

I was testing this out by running a single record through an entire round robin group, as well as tried additional records, to make sure distribution was even. It looks like once you go through all of your users in the Round Robin once, I received the following error: "System.DmlException: Update failed. First exception on row 0 with id 00Q2h000000ycnrEAA; first error: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id: [] " and I could not trigger the criteria to round robin again due to this error. Any idea why that is?

Bexxy55 commented 5 years ago

This actually is caused when there's anything other an a user in the Public Group. Was using a test group and forgot I had a role in the group. Removed the Role so that only users were left, and it works great.