Book a Demo

Author Topic: LoadControlledPackage returns error  (Read 3165 times)

ssinnige

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
LoadControlledPackage returns error
« on: October 22, 2009, 06:48:24 pm »
Hi all,

I'm creating an add-in to re-load version controlled packages. I'm bowsing to a package and invoke the

    Repository.getProjectInterface.LoadControlledPackage(GUID)

however, it comes up with a "unable to open file: <filename> File does not exist.". The <filename> is the location from the CVS root directory. Sometimes it also came up with an import dialog as well but producing the same error. It looks like it would like to have the full path and not the relative path underneat a version control ID. If I use the 'GetLatest' on that package it all works fine and does not come up with an import dialog.

What is the problem with this and how can I ensure that it does not popup sometimes with an import dialog (which would fail with the same reason).

ssinnige

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: LoadControlledPackage returns error
« Reply #1 on: October 22, 2009, 11:18:13 pm »
Solved it.

Changed working directory to the CVS-root and the relative path works fine.