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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Dropped table on the SQL database

(1) ShareShare
ReportReport
Posted on by 3,542

I work with an on-premises D365 box. (Don't know the correct terminology.)

With the PU12 7.3 (or something) update, there were changes on the CustInvoiceTrans  table which resulted in a build fail due to a unique index violation.

I was instructed by a senior to drop the table on the SQL database. (Apparently in AX2012 this worked fine: drop the table implicitly deletes all data and then on next build the table is created again and you can move forward on a clean slate.)

Now the table is gone and I can't get it back. Building CustInvoiceTrans results in an error. Building Foundation results in an error. Full Build results in an error. Paraphrasing: "The table CustInvoiceTrans could not be found or does not exist". (I can build CustInvoiceTrans without synchronise - no errors, but that isn't really helpful to say the least.)

This wasn't a problem until now as I wasn't working with the table. But now I do...........

Any solutions?

Thanks for reading

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Pete,

    The storage and handling is a bit different now in D365. Rather than just dropping the table, you could then better delete the records only. If you do drop tables, make sure you have a backup available.  Probably you can use a backup to get the table back? Otherwise try to get the table from another environment.

    You can try to delete related records from the SQLDictionary table as well. If the current data is important, make a backup of the database first.

  • Pete Alberts Profile Picture
    3,542 on at

    Thanks. I generated the SQL script from a similar environment and used it to create the table in the database. Successfull build.

  • Pete Alberts Profile Picture
    3,542 on at

    I was lying - the build is still running. I'll post again if there are errors.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans