Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Dexterity and TFS seeing deleted resources

Posted on by Microsoft Employee

We’ve been on TFS for some time (since 2011) and our IT department is looking at upgrading our TFS Server to TFS 2015 since there is software in our documentation department that requires a newer version of TFS. In our current solution we have a Build Server machine where we’ve been able to automate the builds for the COM/Interop, Dexterity chunk file, Application.*.dll creation and the Addins that get kicked off from the TFS build agent and these all get built as 1 build sequence, no manual intervention and it drops the install package to the network for access to everyone for pre-release testing.
This solution was developed with VS2010 DSCCS with TFS. I have tested VS2010 with the TFS2015 and that works and there are no errors on upgrade but if we are upgrading the servers then we are looking at upgrading all the software too. My testing with VS2012 and VS2013 is that when you do the Update All that you get returned an error list for every deleted resource in your project. (For us this is 145 resources). These errors will break our automated build process.

Is there a work-around so that Dexterity won't see those deleted resources? Is this a bug I just need to log with GP?  Or do I just need to test with VS2015 and Dexterity? Is that even supported?

I've seen some other blogs/questions out there about deleted projects being seen and having to use the Destroy TFS command.  We REALLY don't want to lose the history on some of those resources so I don't understand how that could be a valid work-around.

*This post is locked for comments

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Dexterity and TFS seeing deleted resources

    Dave,

    It's not about checking in an empty form, but rather checking in an empty resource file. Basically, the process goes something like this:

    1. You check out the resource from the repository (form, table, report, what's not)

    2. You delete the resource from your dictionary

    3. You edit the corresponding resource file (the local file from the repository) to remove all it's content and save it -- this will, in effect, create an 0 byte file

    4. You would then go back to Dex and run a resource check in (under the Source Control menu). Note that this will then list the dictionary resource you just removed, so the only thing to be checked in is in fact the empty resource file.

    That's what's not working as intended, although these are the procedures outlined in the Dexterity manual.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dexterity and TFS seeing deleted resources

    Thanks for the replies, I was wondering about the "Check in Empty" resource process.  Not sure how you can check in an empty form.  I guess you can delete the windows from the form as well as delete the form procedures and functions.  Then, check in the "empty" form.  Weird.  In any event, sounds like editing the macro is the best way to work around the Dexterity issue as I do not want to run TFS Destroy either. 

    Our macro process will always update the Index file; therefore, I assume those resource IDs as mentioned would become available for new forms/global scripts?

    Thanks again,

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Dexterity and TFS seeing deleted resources

    We do the same with Visual Studio Team Services and have a one-click build solution as well. Updating the macro is exactly what needs to be done. In particular, you need to edit the macro to dismiss the errors dialog. By the way, I had the same 'check in empty resources' conversation with MS until I was able to convince them it was a Dexterity bug, but it's not going to be fixed.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dexterity and TFS seeing deleted resources

    The solution that we went with was to just update the macro that we were using to click OK on the errors and just ignore them.  We have another macro that runs immediately after with Dexterity Utilities and it saves to file all the Compile reports that we use to compare against a base line to determine if the update and compiles were successful.

    The discussion that I had with Microsoft was that you were suppose to check-in an empty resource for deleted ones as they are making the assumption you don't want to reuse the resource IDs that the resource had been assigned which is why they are reporting an error on the deleted resources.  

    We don't have any concerns about the resource IDs being reused since we don't have other companies using our dictionary as third party addons :) so we went with the ignore solution.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dexterity and TFS seeing deleted resources

    I know this post is about 2 years old.  But, we also have the same issue with deleted resources and our auto-build process crashing.  We obviously would like the Update All process to ignore deleted resources.  Has anyone found out a way to do that?

    Thanks,

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans