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)
Suggested Answer

SourceSafe Get

(0) ShareShare
ReportReport
Posted on by 237,967 Most Valuable Professional

I'm preparing automated build of Dynamics AX 2009 environments from Visual SourceSafe repository. I'm familiar with TFS, but not with SourceSafe.

I followed the usual approach - get .xpo files from version control (ss get), combine them and import to AX. It works, but there is a problem - when AX developers call "Add to Version Control", the object is immediately inserted to SourceSafe repository (with Action = "Created"). Such an object is not finished (and commited) yet, but it is returned by Get, therefore included in a build - and that can easily broke the build.

AX synchronization seems to ignore items with "Created" action only (no "Checked in"), so this can be a solution for building environments. But does it mean that I can't simply use Get command in SourceSafe if it contains code from Dynamics AX?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi martin,

    On our automated builds on ax4/ax2009 using visual sourcesafe we have written a small programm that after the ss get will parse the xpo files and delete the "empty" xpo files. Having this the created files will be ignored during build.

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

    Hi Thomas,

    what exactly do you mean by "empty .xpo"? The files created by "Add to version control" are full valid .xpo's, often containing a lot of code (forms copied from lower layers, code imported from another environment etc.). If you mean looking into SourceSafe for history of each object and removing files without "Checked in" action, I'm aware of this option (but you may know some better approach) - that's what I mean by being unable to simply use Get command (in other words, the Get command itself is not enough to get correct version of code).

    If I have to do such things to get code from repository, I consider such a repository as corrupted. Rather than writing a script deciding what what files returned by Get should be deleted, I would change SS integration in AX not to add files to repository before they're checked in. But I wonder why such thing was implemented in the first place.

    To get files from SourceSafe simply by calling Get (+ CombineXpo; no further processing) is recommended by Microsoft in How to: Create an Automated Build Process (for AX4) - do you say that it doesn't work for AX4 either?

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