1

I'm trying to validate a Changeset which has 3 new permission sets and they all fail giving this error - invalid parameter value.

The permission sets includes read, edit, create permissions to few custom objects (No Modify All permissions given). And have included some VF Pages and Apex classes.

I'm just clueless about how to fix this. Appreciate any hints on this.

7
  • Can you please post the Apex? I'm willing to bet it's because you're referencing IDs or labels explicitly in your code. Mar 31, 2015 at 16:34
  • Do you mean referencing Permission sets in the Apex code? I do with a query
    – Tasnim
    Mar 31, 2015 at 16:43
  • Do you use IDs in that query, e.g. WHERE id = 'xxxxxxxxxxxxxxx? Just so you know, IDs do not carry over from sandboxes, so if you programmatically explicitly reference them, it won't work Mar 31, 2015 at 16:50
  • No, i don't reference IDs. Its just the name that I'm referencing. I removed the 3 PS and it gets validated. So trying to figure out whats wrong in the Permission sets
    – Tasnim
    Mar 31, 2015 at 16:53
  • Are you including any profiles? Mar 31, 2015 at 16:58

2 Answers 2

0

I had custom permissions included into the Permission Sets which threw an error. I excluded the custom permissions from Permission Sets but have them in the Changeset. It deployed the changeset successfully.

0

The problem we have seen is that there is a reference to a field (and most likely this would count for other config too) that is in your originating org and not in the destination org you get this error.

When you use Eclipse this can even mean that the list of permissions being passed includes everything showing true/false to be allowed by the Permission Set - so just the fact of adding a field in the destination org for an object that is being included (but not adding the field to the permission set) will mean you get this error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .