You need to sign in to do that
Don't have an account?
I am getting Error: First exception on row 0; first error: UNKNOWN_EXCEPTION, portal account owner must have a role
Hi All,
I am getting below error while creating the Community User
Error: First exception on row 0; first error: UNKNOWN_EXCEPTION, portal account owner must have a role.
I verified the Account owner Role. It was selected the role also.
Later i found that Account Owner is inactive.
In this senario how to create community user. Is i need to change Account Owner? Please confirm or any best solution.
I am getting below error while creating the Community User
Error: First exception on row 0; first error: UNKNOWN_EXCEPTION, portal account owner must have a role.
I verified the Account owner Role. It was selected the role also.
Later i found that Account Owner is inactive.
In this senario how to create community user. Is i need to change Account Owner? Please confirm or any best solution.
--
Thanks,
Prahsant
All Answers
How are you creating the user?
if you’re trying to create a Non-Role user, which includes part of creating Portal / Community User test data, the following error will be occured, that is because the portal account’s owner does not have a role to be assigned.
The following sample code demonstrates how to avoid this error: You can run the below code in develoepr console and you will see the user is getting created with specific profile.
--
Thanks,
Prashant
Thanks for responding.
I Have existing Account and Contacts in the system
Recently we enabled the community portal. So our team is creating the users by clicking the Manage external user Button in contact.
Earlier I faced same error, so i updated the Role for Account owner. But yesterday I received same error message, when i cross verified Account owner has role but Owner is deactivated.
--
Thanks,
Prashant
Owner is having role, But User is in Active. Is this will cause the Issue?
--
Thanks,
Prashant
Thanks,
Raghu
--
Thanks,
Prashant
--
Thanks,
Prahsant