Hello, I've got a weird error. A user signs up for our challenge. He doesn't have a membership. SFDC records a membership post transaction (courtesy of our "CreateMembership" trigger). BUT the transaction shows as "Declined Credit Card" and we get the below error, which seems to indicate that a membership wasn't created...note, there is no overlapping membership. This was the first membership for this contact/account/household.
** THE EMAIL ERROR MESSAGE **
Sorry, but we have encountered an error while posting the data to your Salesforce account.
Additional information:
"Upsert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CreateMembership: execution of AfterInsert
caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Cannot insert/update membership because membership period would completely overlap (or be overlapped by) another membership - a0Vi000000QJUAQEA5: []
Trigger.CreateMembership: line 130, column 1: []"
** THE EMAIL ERROR MESSAGE **
Sorry, but we have encountered an error while posting the data to your Salesforce account.
Additional information:
- Order number: 1508251654044971972
- Contact name: XXX XXXXXX
- Transaction Result: Authorized
- C&P Data ID: 4091
- Organization ID: 00Di0000000iLgx
- Organization Name: Bicycle Transportation Alliance
- Applications : Application Name: -Version Number :
Installed Packages: 2.6000-8.7012-2.2000
"Upsert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CreateMembership: execution of AfterInsert
caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Cannot insert/update membership because membership period would completely overlap (or be overlapped by) another membership - a0Vi000000QJUAQEA5: []
Trigger.CreateMembership: line 130, column 1: []"
Comment