SDF Implementation – During the deployment of Roles

When deploying Custom Roles from one account to the other, it may cause an error like ‘Invalid permlevel2 reference key 3 for permkey2 REPO_RECONCILE.’ 

This is because the targeted account does not contain such a ‘permlevel’ for the corresponding ‘permkey’. In the above image, the <permkey>REPO_RECONCILE</permkey> has the ‘premlevel’ as ‘EDIT’ in the source account. But in the case of the targeted account, while we are trying to create a new role, there is no such EDIT level. This is the cause of the error.  

In this image, we can see that the ‘Reconcile reporting’ has only ‘VIEW’ level in the targeted account. So, change the level of such permissions. 

Ie,  

<permkey>REPO_RECONCILE</permkey> 

<permlevel>EDIT</ permlevel> 

Changes to 

<permkey>REPO_RECONCILE</permkey> 

<permlevel>VIEW</ permlevel> 

Then deploy again. 

Leave a comment

Your email address will not be published. Required fields are marked *