Home
> CRM > Plugin Registration Tool (PRT) | ‘Invalid plug-in registration stage’ error while unregistering Assembly
Plugin Registration Tool (PRT) | ‘Invalid plug-in registration stage’ error while unregistering Assembly
While unregistering one of my custom plug-in assemblies from the Plugin Registration Tool (PRT), I got the following error:
Invalid plug-in registration stage. Steps can only be modified in stages BeforeMainOperationOutsideTransaction, BeforeMainOperationInsideTransaction, AfterMainOperationInsideTransaction and AfterMainOperationOutsideTransaction.
Reason:
- Plug-in Assembly (CAT.APIs), I was trying to unregister has a Custom API plug-in (CAT.APIs.ExecuteOnBoardCustomerAPI). Refer my previous article on how to create and register Custom API).
- Which means, a Dataverse Custom API record already, mapped with the Plug-in CAT.APIs.ExecuteOnBoardCustomerAPI in the background. Refer ‘Plugin Type’ column below.
- Hence we can’t unregister the CAT.APIs Assembly without un-mapping the CAT.APIs.ExecuteOnBoardCustomerAPI from the Dataverse Custom API record.
Fix:
- Either un-map (i.e., Clear the ‘Plugin Type’ column) the CAT.APIs.ExecuteOnBoardCustomerAPI from the Dataverse Custom API record as below.
- Or delete the Dataverse Custom API record.
- Proceed with unregistering the Plug-in Assembly from Plugin Registration Tool and it should unregister now.
If you are looking for downloading and launching Plugin Registration Tool, please refer article here.
🙂
Categories: CRM
Comments (0)
Trackbacks (0)
Leave a comment
Trackback