You need to sign in to do that
Don't have an account?

first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: UserRoleId (dpua portal user cannot change user role): [UserRoleId]"
While working with customer portal am getting this error--first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: UserRoleId (dpua portal user cannot change user role): [UserRoleId]" If anyone plz resolve this issue

Please make sure that you do all DML operations after API call. There is reason why we should do this after dangerous operations.