Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

I broke D365 after importing database to dev environment - Model build error

(2) ShareShare
ReportReport
Posted on by 104
 I have successfully imported a production DB to the dev environment and ran the user re-enabling script. Then i refreshed the models in visual studio and tried to do a full model build but it failed with 160k+ errors. Now the client gives http 503 error, Batch service can't be started (Error 1067) and DBsync in visual studio is also not possible. What should i do at this point?
 
Build error:
 
DBSync error:
Categories:
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    I broke D365 after importing database to dev environment - Model build error
    There is no point synchronizing the database and trying to use the environment if the application doesn't even compile.
     
    I would choose one of the errors and analyze what's wrong with it; it's likely that there is just one or a few causes and when you solve that, you'll solve all the errors. Maybe there is a problem with model references or so.
     
    But don't start with errors in data entity persister classes (as in your screenshot), that's generated code that makes everything extra complex. Choose another compilation error.
  • EK-26061005-0 Profile Picture
    EK-26061005-0 104 on at
    I broke D365 after importing database to dev environment - Model build error
    @Bharani Preetham Peraka, only the error related to Batch service:
     
    The description for Event ID 110 from source Dynamics Server DynamicsAXBatchManagement cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    Object Server DynamicsAXBatchManagement: 
    Unhandled exception
     More Information: A fatal exception occured while executing kernel method xRecord::Insert()
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,818 Super User 2024 Season 2 on at
    I broke D365 after importing database to dev environment - Model build error
     
    I think you need to restart all services and then rebuild models + Sync DB.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,613 Super User 2024 Season 1 on at
    I broke D365 after importing database to dev environment - Model build error
    Did you find any specific information in event viewer?

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans