Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Export a project though command line

Posted on by 1,189

HI Everyone,

am using Devops in AX 2012 , to push everything from Developmen to UAT, to Produuction automicatically, it worked fine with models when exporting /importing models, however I want to move projects instead of models, I just still need to know how could I export a project through command line and not manually.

Thank you,

*This post is locked for comments

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Export a project though command line

    Thanks a lot Nikolaos, much appreciated. I will use this way.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Export a project though command line

    Also please remember that you need to have id values of prod and staging in sync before you can do a modelstore delivery. So you need to copy your prod databases (business database and model database) to staging , and after that only do modelstore deliveries from staging to prod. If you ever move new objects (with object id = anything in data dictionary, classes) to prod using models or xpos, the id values will get out of sync and you need to rebase your staging again from prod.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Export a project though command line

    If you have moved a table from model A to model B, it will not have any impact in the database sync. The sync simply synchronizes all database elements from AOT to database, it doesn't care about the models.

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Export a project though command line

    I mean when exporting model store and importing it to production with some elements models has changed , when running synch it shall not affect any data right ?

    thank you,

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Export a project though command line

    Hi, Mdeeb

    As you import the modelstore into production, there is no possibility for element Id conflicts between your so called staging or test to production environment.

    /Uday.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Export a project though command line

    I don't understand the question.

    The sync can fail for example if you introduce a new unique index, but the existing data in the table violates the new index.

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Export a project though command line

    thanks a lot Nikolaos, one more question data synchronization does not fail on any element in case the element model was changed right ?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Export a project though command line

    You don't need to run x++ compilation or CIL generation in prod if you do a modelstore delivery (since it was already done in staging, and you are copying the whole codebase). Synchronization is of course needed.

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Export a project though command line

    so can I export the model from Development to staging environment and perform full compile and then export the model store from staging and import it to production , does this also requires full compilation on production ? and I assume synchronization.

    Thanks a ot

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Export a project though command line

    You need to export/import all changed models into your staging system, and do a modelstore delivery from staging to prod. This way you will always know that you won't face strange surprises during prod delivery.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans