Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

System SavedQuery deleted, solution cannot be upgraded anymore

(0) ShareShare
ReportReport
Posted on by

Hello,

I've created and distributed a solution (v1) with custom entities. I did remove all the default auto generated SavedQueries (Active ENTITY_NAME, Inactive ENTITY_NAME...) from my solution, which in hindsight proved to be a big mistake.

Now that I have a new update for my solution (v1.1), I've got 100% of upgrade failures when trying to update it through appsource or using the Package Deployer:

======================================================================================================================
Inner Exception Level 1    :
==OrganizationServiceFault Info=======================================================================================
Error    : SavedQuery Active ENTITY_NAME for otc 10217 cannot be deleted.
Time    : 25/04/2018 09:00:08
ErrorCode    : -2147220945
Date    : 25/04/2018
Time    : 10:00:08
Trace    : Not Provided
======================================================================================================================

What I realised was that Dynamics automatically added the default saved queries to my v1 solution, and even if I try to add those SavedQueries to my v1.1 solution, the same error occurs.

Any suggestions on how I can fix this for everyone that has my v1 solution installed?

Notes:

I can manually import my managed solution when using the solution importer under Settings -> Solutions -> Import Solution as long as I don't mark "Stage for upgrade".

Thanks in advance,

Rodrigo

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans