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)

Deploy Project From test Environment to Production Environment

(0) ShareShare
ReportReport
Posted on by

Hi All ,

   i hope all are doing well!

 I have created one AIF Document Service in AX 2012 R2. 

Now I have one Private Project having all related AX classes (Axd class, document class, dataobject class etc.) , axdQuerie,service,servicegrouop etc. . Now I have to import it in my Production Environment. So can I import it through (.xpo method) just like in Ax 2009 or by different method (through model or something ). please clear as I am doing first time in AX 2012r2.

Thanks&regards,

kumar

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    No! Using .xpo files for deployment to production was always wrong, but in AX 2012 is even more wrong than ever.

    The recommended way is testing your code in a test environment, moving all models to a pre-live environment (after successful testing), compiling it there and then moving the whole modelstore to production.

    If you're not the technical architect of the project, please talk to him/her instead of trying to deploy any changes by yourself.

    If you're, read Deploying Customizations Across Microsoft Dynamics AX 2012 Environments thoughtfully, and design the process before attempting any code deployment.

  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    By the way, please don't leave your changes in the private project - private projects are not visible to others and they sometimes cause problems with VCS synchronization.

    You can use private projects for anything you need during development, but when changes are ready for check in, move them to a shared project and check in all changes, including the shared project. Therefore there shouldn't be any private project in the Test environment.

  • Community Member Profile Picture
    on at

    Hello Martin,

    I have created AIF Document Service using AIF Document Wizard , then AX automatically creates Private Project for that. Then  i did changes acc. to my requirement.

    can't i export it (after compile and full CIL) and import it into live Environment ?

    thanks for help.

  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    No - please read my reply above and the linked document explaining how deployment works in AX 2012.

    Technically it's possible, but it would be a huge mistake. You would create a new, untested version version in production, which is surely what your customers want. You would have to recompile the application and generated CIL in production. You could easily make a mistake, such as importing the .xpo to a wrong model. You could get into troubles with IDs. .xpo files don't have version numbers. And so, and so on.

    Please don't touch production without a help of somebody experienced. You could cause many problems, some of them not immediately obvious.

  • Community Member Profile Picture
    on at

    Thank you Martin ,

    But my text environment has many customization that i don't wanna in production Environment. How to handle that one in case Model Store ??

    Please suggest ?

    Thanks.

  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    That's why I said you have to design your process. Now you've merely noticed a bug in your current process; you have a better process to get the job done safely.

    If you cherry-pick some modification, manually extract and merge them, you're getting a new untested application. Do you really want to put this untested code to customer's production environment? Does the customer agree?

    It's simply wrong. In such a case, you need another test environment, where you'll test whether the manual extraction & merging completed correctly and that the selected pieces of functionality correctly works with each other. Only when you successfully test that, you can install it to production. And then you want to move exactly the application your tested - if you exported just some parts, you would have the some problem again.

  • Community Member Profile Picture
    on at

    Thanks Martin,

    I agree with your suggestion .

    But we don't have Staging Environment (Pre-Live Environment). We have only test Environment and Production Environment. And Our test Environment has many other modification ( many customization i.e. Aif document services, forms,  classes etc) that i don't want in my production environment. I want only my some customization(From test Environment)  in Production Environment.

    But as i know , if i import model store , it moves all metadata, customization into live Environment. please correct me if i am wrong ?

    thanks for helping

  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    Well, if you have no environment to test what you want to deliver to production, you really shouldn't deliver anything unless you fix this critical problem. (Your test clearly isn't useful for this testing, because it contains many changes that aren't in the target system.) Trying to make changes directly in production (via .xpo) and testing them only in production is clearly a horrible idea. You surely don't want to risk causing serious problems to you customers' business, do you?

  • Community Member Profile Picture
    on at

    Thanks Martin ,

    But I don't want to take any risk.

     please correct me , if  i will move model from Test to staging Environment , it would move all customization in that model. isn't ?

    And i have very small customization that i want to import in Live Environment , please see below image :

    private-project.PNG

    and i can see some of its Objects in Foundation Model and some of objects in USR Model . So what model i need to export . I know it is very stupid question but i  really don't know ,  please suggest ?

    Thanks.

  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at

    You still haven't read the white paper (Deploying customizations across Microsoft Dynamics environments), have you? You shouldn't have such a question after that. Please don't expect me to repeat the whole thing here; you must to read it. If it's too complicated for you in the moment, maybe you should first learn basics concepts elsewhere, such as in Technet: Models, Layers, and the Model Store.

    Yes, moving a model moves the whole model, i.e. all object in the model.

    Which model you want to deploy? Well, the model (or several models) containing customizations you want to deploy. The Foundation model is developed by Microsoft, so it surely doesn't contain your customizations. Also, please don't use default models (such as USR Model) for development.

    If you don't have anybody in your company who understand things like models, please hire somebody to give you training and set processes correctly, before the implementation turns to yet another failed project.

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