Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7195673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:37:35+00:00 2026-05-28T20:37:35+00:00

I began upgrading our layers to Roll Up 7 while we still were developing

  • 0

I began upgrading our layers to Roll Up 7 while we still were developing in another environment with TFS turned on. We were at say version 1850, and by the time I finished, we were at 1900. So the goal is to merge in the 50 different check-ins into the completed RU7 environment. Each check-in can contain many different objects, and each object is stored in TFS as an XPO somewhere.

My code is 90% of the way there, but the issue arrises when copying the files out of the temp directory. When I look in the temp directory, the files aren’t there, but somehow they’re able to be accessed.

static void Job33(Args _args)
{
    #File
    SysVersionControlSystem sysVersionControlSystem = versioncontrol.parmSysVersionControlSystem();
    SysVersionControlTmpItem    contents;
    SysVersionControlTmpChange  change;
    SysVersionControlTmpChange  changes;
    int i;
    SysVersionControlTmpItem contentsAddition;
    SysVersionControlTmpItem contentsItem;
    str                         writePath;
    Set       permissionSet = new Set(Types::Class);
    str                         fileName;
    int                         n;
    ;

    change = versioncontrol.getChangesHistory();

    // BP deviation documented
    changes.setTmp();
    changes.checkRecord(false);
    changes.setTmpData(change);

    while select changes
        order by changes.ChangeNumber asc
        where changes.ChangeNumber > 1850
    {
        writePath = @'C:\TEMP\' + int2str(changes.ChangeNumber) + @'\';

        contentsAddition = versioncontrol.getChangeNumberContents(changes.ChangeNumber);

        n = 0;
        while select contentsAddition
        {
            // HOW DOES THIS LINE ACCESS THE FILE BUT MY METHOD CAN NOT??
            contentsAddition.viewFile();
            //?????????????


            // Write to appropriate directory
            if(!WinAPI::pathExists(writePath))
                WinAPI::createDirectory(writePath);

            n++;

            fileName = int2str(changes.ChangeNumber) + '_' + int2str(n) + '.xpo';

            if (WinAPI::fileExists(contentsAddition.fileName(), false))
            {
                // Write to appropriate directory
                if(!WinAPI::pathExists(writePath))
                    WinAPI::createDirectory(writePath);

                WinAPI::copyFile(contentsAddition.fileName(), writePath + fileName, true);
                info(strfmt("|%1|%2|", contentsAddition.fileName(), writePath + fileName));
            }
        }

        info(strfmt("%1", changes.ChangeNumber));
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:37:35+00:00Added an answer on May 28, 2026 at 8:37 pm

    Buried in Classes\SysVersionControlFilebasedBackEndTfs there is a .Net assembly that is used. I was able to use this to extract what I needed mixed in with the upper code. After I used this…my code from above started working strangely enough??

    Somehow there was a file lock on the folder that I copied TO, that just wouldn’t let me delete it until I closed AX…no big deal, but it suggests there is a tfsProxy.close() method or something I should have called.

    Microsoft.Dynamics.Morphx.TeamFoundationServer.Proxy tfsProxy = new Microsoft.Dynamics.Morphx.TeamFoundationServer.Proxy();
    ;
    
    tfsProxy.DownloadFile(contentsAddition.InternalFilename, changes.ChangeNumber, writePath + fileName);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My development environment (Mac OS 10.6) uses JDK 1.6 while production relies on 1.5.
I was upgrading the OS on one of our build from Centos 5.3 32bit
After upgrading to ruby 1.9 we began to notice pages failing to render from
After upgrading our VS2008 Project to VS2010 we found that VS would take 60
I began an iPhone project the other day with a silly development code name,
I began reading the book Code Complete 2nd edition, but stopped reading when I
I began writing an app using declarative_authorization ( http://github.com/stffn/declarative_authorization ) but I'm now wondering
I began learning Python a few days ago, and i was wondering about a
I began studying Java Regular Expression recently and I found some really intersting task.For
I recently began using BIRT and have developed a report to use with my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.