Symptom

When attempting to delete a solution in Dynamics 365, you encounter the following error:

"The record could not be deleted because of an association

The record cannot be deleted because it is associated with another record."

Cause

This error can occur if you are trying to delete a solution which contains a component that is still used by another component. 

Example: If the solution includes an image web resource and that image is used by a Theme, you would encounter this error when trying to delete that solution.

Resolution

Before attempting to delete the solution, remove any references from the included components to components in other solutions.

In the example from the Cause section, you would need to follow these steps:

  1. Access the Dynamics 365 web application as a user with the System Administrator or System Customizer security role.

  2. Navigate to Settings, Customizations, and Themes.

  3. Open the theme that uses the image web resource as the logo.

  4. Use the Logo lookup field to remove the reference to the image web resource that is part of the solution you are trying to delete and save the changes.

  5. Try to delete the solution again.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×