Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production Deployment Failure #2

Open
AndreaBeth11 opened this issue Jan 5, 2021 · 2 comments
Open

Production Deployment Failure #2

AndreaBeth11 opened this issue Jan 5, 2021 · 2 comments

Comments

@AndreaBeth11
Copy link

I got everything running as expected in Sandbox. When I go to install all the components in Prod, I get this error:

Deployment CompleteTest failure, method: CaseCommProcessorTest.test -- System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception (Guest users cannot be record owners.): [] stack Class.CaseCommProcessorTest.setup: line 11, column 1

Which is sort of funny because I'm using the ReCaptcha in a Flow in our Community to prevent a Guest user from owning a case.

@clifford-fra
Copy link
Owner

clifford-fra commented Jan 8, 2021

Hi Andrea,

this seems like a community flow error. Recently, guest user can't be record owners.

This might be of help:
https://help.salesforce.com/articleView?id=networks_assign_guest_records.htm&type=5

see also:
https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_forcecom_flow_fbuilder_system_mode.htm

@AndreaBeth11
Copy link
Author

Yeah, the guest user issue is the reason the Global Action I had stopped working and why I'm using a Flow and need the Recaptcha. My default is already set & I can't set the Flow context because I can't changeset the Flow from Sandbox without Recaptcha components being installed. I think I've found that space between a rock and a hard place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants