Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Facing an ERROR while ...
Finance forum

Facing an ERROR while importing the DB backup - Error code SQL72014, SQL72045

Posted on by 4
Hi,

While trying to import a DB backup .bacpac file in the newly created CHE facing an error :
Error SQL72014:core Microsoft sqlclient Data provider: Msg207, level 16, state 1, Procedure AIFSqlRowversionINVENTJOURNALHISTORYAfterDelete, Line9 Invalid column name 'SYSDATASTATE'.
Error SQL72045: Script execution error. The executed script:
CREATE TRIGGER AIFSqlRowversionINVENTJOURNALTABLEHISTORYAfterDelete
        ON dbo.INVENTJOURNALTABLEHISTORY    
                   AFTER DELETE
                   AS BEGIN 
                      SET NOCOUNT ON;
                      INSERT INTO AIFCHANGETRACKINGDELETEOBJECT (CHANGEDTABLEID, CHANGEDTABLERECID, DELETETIME, ISARCHIVALDELETE)
                      SELECT 28129,
                             RECID,
                             GETUTCDATE(),
                             SYSDATASTATE
                       FROM   DELETED,
                     END

we have tried these steps
FULL BUILD
DB SYNC
still facing the same issue again again 
can someone help us to resolve this 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans