Monday, 23 April 2012

TFS Error: The file file.xpo was not correctly imported to the model store in a previous synchronization. Any updates of the file is blocked from AX. Open Version Control, Synchronization log to re-import the file.


While working on TFS with Dynamics AX 2012, sometimes I get the following error when I try to check-out a certain file.


 


 This error occured because either you had synchronized your workspace with the files that were not in consistent state or you had checked-in your files which had some errors in .xpo code, like a node was missing etc.

 The complete error message is as follows:

 The file D:\TFS-EDM\usr\Data Sets\EdmPreviousInstitutionsGridDS.xpo was not correctly imported to the model store in a previous synchronization. Any updates of the file is blocked from AX. Open Version Control, Synchronization log to re-import the file.

To fix this error, open visual studio, go to Team Explorer (Menus-> View-> Team Explorer), and connect to your project with the TFS. After connecting to the project, just locate the file that you want to check out. Right click the file, and click "Check out for Edit". 




Now go back to AOT, right click on that file, and click "Undo Check-out". Now you can check this file out successfully by clicking on the file and clicking "Check-out".

3 comments:

  1. I am getting that error you mentioned above for every object. Is there a quick fix to 'unlock' everything for use?

    ReplyDelete
  2. I think you should try 2 options:

    1) Just try to synchronize your workspace from AOT having "force" option as selected. This will synchronize all your workspace objects by overwriting the objects you have already checked-out. (But please be sure to create a backup of all your checked-out objects before performing a "force" synchronization to your workspace).

    or...

    2) Just go to the visual studio and instead of selecting only one object in solution explorer, you should select the whole project and select "Check out for Edit" option by right-clicking the project, and then try to undo check out all the objects in AOT.

    ReplyDelete