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 / SQL error while deleti...
Power Apps
Answered

SQL error while deleting solution

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I got strange SQL error after I tried to delete solution. In logs I found that it is because it can't find column, which have type File. I checked this field and it working absolutely correct in app. Also I looked for sql error code and couldn't find any information about it in current context. Screens with error below. In log I found error message with text: Invalid column name 'new_Fail'. Also there are no error code only '-'. And 'newFail' is existing field, with type file.

 

Screenshot 2020-07-02 at 13.45.20.png

 

I'm lost as to how I can solve this. 
Does anyone have any suggestions?

Thanks in advance

Screenshot 2020-07-02 at 13.45.20.png
Categories:
I have the same question (0)
  • Verified answer
    Rohit Sharma354 Profile Picture
    Microsoft Employee on at

    Hello,

     

    This can happen due to stale cascade-delete SQL statements, which are stored as dynamic commands in the database. Apparently, when an entity schema is modified from one solution version to another, not all SQL scripts are getting properly re-generated. Here are these steps in detail:

     

    1. In the Customize section find the [Account] entity (use the entity that is being affected)

    2. Add a 1:N relationship from Account to Account (I named it new_account_account_test)

    3. "Save and Close"

    4. "Publish All Customizations"

    5. Delete the newly added relationship (new_account_account_test)

    6. "Publish All Customizations"

     

    If above steps does not help, please consider opening a Support Ticket with Microsoft Support to check this further.

     

    Hope this helps !

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard