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)

TFS Checkout and Get Latest

(0) ShareShare
ReportReport
Posted on by

Can TFS be set to automatically Get Latest when checking out objects in AX?

Also, is there a way to ensure you get warned and given an opportunity to merge when checking in an object when somebody else made changes after you did your checkout?

This has been unreliable for us and has resulted in unnecessary problems.

*This post is locked for comments

I have the same question (0)
  • Klaas Deforche Profile Picture
    2,433 on at

    Hi,

    What we do to get around this problem is disallow multiple checkout for .xpo files.

    You can set this in Visual Studio by right clicking on your collection then choose Team Project Collection Settings - Source control file types... Then for the Dynamics xpo type, click edit and uncheck the "Enable file merging and multiple check out". This will then lock any xpo on checkout, but still allow for multiple checkout of label files for example.

    It works for us, but I'm not sure if that's what you are after. It gets rid of the "merging problems", but you can't simultaneously work on the same object.

    Concerning the get latest on check out, are you sure that isn't the case? The latest version is definitely getting imported when I check out. We've done some customizations but I don't think that was one of them (I will check).

    There is an option in visual studio on the team project. Right click - Team Project Settings... - Source Control.

    There is a checkbox "Enable get latest on check-out". It is not enabled for me yet the latest version is imported when I perform a check out.

    The class.method SysVersionControlFilebasedBackEndTFS.requireSyncBeforeCheckOut always returns true which causes an get latest (I believe). If that doesn't happen for you, maybe you should debug this class when you checkout an item?

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

    You should get the usual TFS merge dialog (an example here). What happens in your case?

  • Community Member Profile Picture
    on at

    It hasn't been clear whether the option in Visual Studio was affecting checkouts in MorphX. I will take a look at SysVersionControlFilebasedBackEndTFS.requireSyncBeforeCheckOut.

    Thanks.

  • Community Member Profile Picture
    on at

    Most of the time, we get the merge dialog when there is a conflict. But on a few occasions, we haven't. It has caused problems, especially when hotfixes have been involved. I am trying to determine why the merge dialog doesn't appear sometimes.

  • Community Member Profile Picture
    on at

    Hi Steve, did you find the cause for the missing merge dialog. We have started to see the same happening.

     

    Thanks,

    Torben

  • Zahir Khan Profile Picture
    35 on at

    Steve - To get the latest version on checkout, you need to enable the setting on TFS. In Visual Studio go to Team -> Team Project Settings -> Source Control. On the Check-out settings tab select Enable Get Latest on Checkout. This will assure that every object gets its latest version when checked-out by any developer.

    For merge window, I havent faced the issue ever. Note that the merge window will only pop up in case there are conflicts in the changes made by multiple users.

    Hope this helps!

  • Community Member Profile Picture
    on at

    We have that set.

  • Community Member Profile Picture
    on at

    No, we never did. It never happened often. I haven't experienced it for a long time. I think some of the other developers on our team might have though.

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