I'm still getting this error when deploying a custom role into production, but i'm not getting this error when I deploy into either of my sandbox accounts.
Copy code
An error occurred during custom object validation. (customrole_XXXXXXXXXXXXXX)
Details: There cannot be a restrict field on a non custom record type permkey