Adds a Lightning Web Component to create Google Place Listings (currently hardcoded to type "church") as a Salesforce object (currently hardcoded to a custom object named Church_School_Partnership__c).
3
stars
1
forks
source link
[Bug] Surface all errors to Button Message Error on LWC #88
Recently, LH reached out and let us know that there are some instances where clicking the button produced no results and error messages. It's been identified that this is caused by a standard Salesforce error being thrown (process builder process, field filter, validation rule, etc.) but is only viewable in logs and not button. As an admin, it is important to know when an error occurs so they can take steps to prevent it or work around it.
In tab with debug debug console log shows error in status: Insert failed. First exception on row 8; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “CSP Updates” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id: 0031N00001GSDyo. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 563121415-928619 (-636854535): []
No message is shown next to button
Expected Results:
In tab with debug debug console log shows error in status: Insert failed. First exception on row 8; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “CSP Updates” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id: 0031N00001GSDyo. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 563121415-928619 (-636854535): []
Above error is shown next to button
ACs
Given a process exists that would cause an error when creating Account/CSP records (example "CSP Update")
When I click the "Find Closest Churches" button
Then appropriate Salesforce error message displays next to button
Given a validation rule exists that would cause an error when creating Account/CSP records
When I click the "Find Closest Churches" button
Then appropriate Salesforce error message displays next to button
Given a lookup field filter exists that would cause an error when creating Account/CSP records
When I click the "Find Closest Churches" button
Then appropriate Salesforce error message displays next to button
Given a required field setting exists that would cause an error when creating Account/CSP records
When I click the "Find Closest Churches" button
Then appropriate Salesforce error message displays next to button
Recently, LH reached out and let us know that there are some instances where clicking the button produced no results and error messages. It's been identified that this is caused by a standard Salesforce error being thrown (process builder process, field filter, validation rule, etc.) but is only viewable in logs and not button. As an admin, it is important to know when an error occurs so they can take steps to prevent it or work around it.
Steps to Reproduce:
Results:
Insert failed. First exception on row 8; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “CSP Updates” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id: 0031N00001GSDyo. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 563121415-928619 (-636854535): []
Expected Results:
Insert failed. First exception on row 8; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “CSP Updates” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id: 0031N00001GSDyo. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 563121415-928619 (-636854535): []
ACs Given a process exists that would cause an error when creating Account/CSP records (example "CSP Update") When I click the "Find Closest Churches" button Then appropriate Salesforce error message displays next to button
Given a validation rule exists that would cause an error when creating Account/CSP records When I click the "Find Closest Churches" button Then appropriate Salesforce error message displays next to button
Given a lookup field filter exists that would cause an error when creating Account/CSP records When I click the "Find Closest Churches" button Then appropriate Salesforce error message displays next to button
Given a required field setting exists that would cause an error when creating Account/CSP records When I click the "Find Closest Churches" button Then appropriate Salesforce error message displays next to button