Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

After Live to staging DB restore application throws errors

Posted on by 5

Hi, this feels a bit of a long shot but about 6 months ago the co-worker that looked after our Dynamics AX 4 (yes 4!) applcaition left and it has since dropped onto my sysadmin lap despite a serious lack of dynamics knowledge to support it.....anyway onto the problem...

I recenetly restored our Live DB backup to our Dev environment using the SQL restore replace data method and all went swimmingly, however today resotring the latest live backup to our staging environment has not been succesful. Open opening forms in the AX client after the restore it now throws sql errors for example "Invalid column name'xyz'" A collegue of mine suggested running a data dictioanry synchronise. We tried this but that starts to throw warnings such as "One or more tables will soon be deleted from the SQL database. This is usally caused by changes in the Microsfot Dynamics data dictionary.......". When I check those tables on the sql DB they are there so this doesn't seem to be a restore issue. If we proceed and delete the tables the errors in the client dissapear but the tables are obvsiosuly wiped. Now whilst I could backup and restore the tables I don't want to do this as there will be a future requirement to restore this database and I don't want this to become part of the process. From reading online I have seen different errors but maybe related talking abot AOT table ID's going out of sync and causing the issues.

I guess my questions are is so why would this happen, and secondly how does one go about fixing it?? Any advice or guidance would be appricated...

If it helps we have sperate AOS instances for each of our environments.

MicrosoftTeams_2D00_image-_2800_2_2900_.png5123.MicrosoftTeams_2D00_image.png2642.MicrosoftTeams_2D00_image-_2800_1_2900_.png

Thanks

EGB

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: After Live to staging DB restore application throws errors

    Great! Please mark the answer as verified.

  • egb Profile Picture
    egb 5 on at
    RE: After Live to staging DB restore application throws errors

    Thanks Gunjan that seems to have done the trick. Your help is greatly appreciated

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: After Live to staging DB restore application throws errors

    Hi egb,

    Maybe the Dev environment is pretty old. The Live environment has a few tables (in the AX application) that the Dev environment doesn't have. This is the reason when you synchronize, you get these tables/columns wiped out.

    Do you have some development done on the Dev server that are not present in the Live environment? If not, I would suggest you do a complete refresh of the Dev environment from the Live environment. This way, you wouldn't be facing these issues.

    Since this is AX 4.0, I could only find an old link which provide the steps to refresh both database and application. In your case, you have already refreshed the DB. Please try refreshing the application as well and check if that resolves the issue.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans