2

We want to enable users to self register to the community but this error is displayed upon clicking the Sign Up button:

Your request cannot be processed at this time. The site administrator has been alerted.

I have double checked that:

  • The community is published.
  • The Account Owner have a User Role assigned.
  • The site guest user does have Create and Read permissions on the Account and Contact objects.
  • Self-registration is enabled for the community.

The error received in the email is:

There was an error in registering a user in site [Community Name]. The error message is: DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): User, original object: Contact.

All of this is out of the box functionality. Apex and Visualforce Pages are also not modified. We are using the Community Builder Page > Register - not the Default Page for Self-Register.

Any help will be appreciated!

3
  • The error means you are updating setup and non setup object in the same transaction so you get this error. Weird thing is you are just hitting the sign up button and you get this error. Can you increase logs for site guest user and see whats wrong in logs?
    – RedDevil
    Commented Mar 23, 2018 at 4:37
  • I tried using debug logs but nothing will be logged since external users are the ones who are trying to sign up. Do you have other ideas on why this is happening? Thanks
    – Max
    Commented Mar 23, 2018 at 13:15
  • During the Self regestration, which objects you are saving? have you written custom handler ? Do you insert user and account and contact in same transaction?
    – Sudarshan
    Commented Mar 20, 2020 at 18:16

0

You must log in to answer this question.

Browse other questions tagged .