web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot Apply Upgrade f...
Power Apps
Unanswered

Cannot Apply Upgrade for a solution

(0) ShareShare
ReportReport
Posted on by 18

Hello Community,

 

I encountered an issue during the upgrade of a solution in multiple environments. Initially, I customized the system table for email templates by adding a field named "Category" (cr884_category). The upgrade process involved creating this new field in the target environments. Subsequently, I removed the email templates from the solution and deleted the "Category" field since it was no longer required.

However, when attempting to import an upgrade in these target environments using the modified solution (without the email templates table), I encountered the following error:

 

Solution "" failed to import: Solution Upgrade action failed after import as holding. InnerException is: Invalid column name 'cr884_Category'...

 

It's worth noting that I'm unable to delete the column from the default solution in the target environment.

To troubleshoot, I attempted to import a new solution that only included the email template table without the "Category" field. Although the solution was imported successfully, the undesired column persisted and was not removed.

My primary objective is to delete the "Category" field from the target environments to facilitate the successful application of the upgrade.

 

I only need to delete the category field from the target environments to apply the upgrade. 

Is there any way to force delete the column from the target environment through a web API since the solution is managed or is there another alternative?

 

Thank you.

I have the same question (0)
  • Jonathan Manrique Profile Picture
    2,695 on at

    Hi @Mhmdbaba 

     

    If the solution installed within the environments is a managed solution, you must first create a new solution to be able to include the table and the field, then you must remove the managed layer and later you can delete the field.

     

    What is happening to you is a classic ALM error that happens sometimes, the issue is that in your target environments that column is necessary, and when you are doing an upgrade it requires that field in its components.

     

    Another option is if the solution is managed is to delete the solution and import the new one that does not have the field.

     

    If the solution is unmanaged, you must delete the field manually in each of the environments

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution

  • MBaba Profile Picture
    18 on at

    Hello @Jmanriquerios ,

     

    I tried the approach of importing an unmanaged solution containing the email template table, but nothing changed.

    There is a layer on the field from the original solution which is blocking the deleting of the field. Is there a way to remove that layer and force delete the field?

     

    Thank you,

  • Jonathan Manrique Profile Picture
    2,695 on at

    Hi @Mhmdbaba 

     

    The solution is not to import from the DEV environment, but rather you must create a solution in the environment where the field is and from there remove the managed layer and delete the field. You can't do it through solutions

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution

  • MBaba Profile Picture
    18 on at

    Hello @Jmanriquerios ,

     

    I tried to create a solution on the target environment, but I could not remove the layer related to the original solution.

     

     

  • Jonathan Manrique Profile Picture
    2,695 on at

    @Mhmdbaba 

     

    Can you show me the solution

     

    Remove managed layer you can use Solution Layers Explorer using XRM ToolBox

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard