RE: SDF Error for Role XML: There Cannot be a restrict field on a non custom record type permkey

Team,

Wondering if any SDF users have ran into this error with ROLE XML definitions:

An error occurred during custom object validation. (customrole1058)
Details: There cannot be a restrict field on a non custom record type permkey
Details: There cannot be a restrict field on a non custom record type permkey
File: ~/Objects/customrole1058.xml

Trying to move roles from Sandbox to Production and getting this error when deploying to production. interestingly enough, I do NOT get this error when validating against the Sandbox account.

 

Any thoughts how to debug this? I always can just bundle the roles, but wanted to know if this was a known issue

Add Comment
1 Answers

Hi,

I also encountered this error, I did the following to fix it:

  1. Removed the empty <restriction></restriction> tag.
  2. Ensure that the role XML definitions do not contain any <restrict> tags for non-custom record types.

Try above and let me know if the issue is resolved.

Rookie Answered on July 25, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.