You need to sign in to do that
Don't have an account?
ankush
System.DmlException: Insert failed. First exception on row 0; first error: OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []
I have a scenario where I am trying to run a method as a portal user and that method inturn creates a new account but when I try to do the same I am getting the below error can some one please help me.
System.DmlException: Insert failed. First exception on row 0; first error: OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []
System.DmlException: Insert failed. First exception on row 0; first error: OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []
Please check the Create Permission for that User for Account Object.
Thanks!
Check out whether the user has read write access to account object?
Thanks,
Vetri
Hi Ankush,
I got your issue.
If you have read and write access to Account then check if you have ownerID assigned to account while creating it.
OwnerId - It should have a user id and that user should have a role assigned.