The user role created below is not 'High volume Portal User' but, still production deployment validation fails with error "FIELD_INTEGRITY_EXCEPTION, High Volume Portal Users cannot have a user role". Can someone help with this please?
Above issue got resolved by commenting out userRoleId assignment.
You should not define role for community users. Communities users get their roles automatically from their account. Try removing the UserRoleId field from User instantiation statement.