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:

  • 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.

🙂

Advertisement
Categories: CRM
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: