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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Sync-NAVApp : An unexpected error occurred after a database command was cancelled.

(1) ShareShare
ReportReport
Posted on by 67
While Sync the Application we are facing the below issue:
 
/The index 'IX_RRR_Inc$Sales_Invoice_Line' is dependent on column 'EE DD AA_'.
ALTER TABLE DROP COLUMN EDI Item Cross Ref_ failed because one or more objects access this column./
 
Kindly Provide a way to resolve this error.
I have the same question (0)
  • Suggested answer
    Dustin Wolf Profile Picture
    30 on at
    Sync-NAVApp : An unexpected error occurred after a database command was cancelled.
    You need to remove all of the constraints before you can drop the column.

    alter
    table [
    IX_RRR_Inc$Sales_Invoice_Line] drop constraint [EE DD AA_]; alter table [IX_RRR_Inc$Sales_Invoice_Line] drop column [EDI Item Cross Ref_];
     
     
     
    Dustin Wolf, MS
    Senior Developer
    Accent Software, Inc.
  • Gerardo Rentería García Profile Picture
    24,227 Most Valuable Professional on at
    Sync-NAVApp : An unexpected error occurred after a database command was cancelled.
    Hi 
    ¿By chance they have made some updates directly through SQL?
    Best regards
    Gerardo
  • SD-06051333-0 Profile Picture
    67 on at
    Sync-NAVApp : An unexpected error occurred after a database command was cancelled.
    Dustin Wolf - Only need to drop constraints and Column or need to drop Index also

    FYI : "IX_RRR_Inc$Sales_Invoice_Line" - This is Index name not a table name

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,915

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,011 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,989 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans