GetLabeledFileToNonWorkingFolder woes....

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
mattyseltz
Posts: 2
Joined: Sun Mar 19, 2006 10:42 am

GetLabeledFileToNonWorkingFolder woes....

Post by mattyseltz » Tue Mar 21, 2006 4:16 pm

All--
I am not able to correctly invoke this API from my VB.NET 2005 code. (All my the other API calls I am making leading up to this one are working beautifully.) I am stuck on the function call to

GetLabeledFileToNonWorkingFolder.

I am passing in a VaultClientFile object, the (string) name of my label, the 'label path' (more on that, below) and the path to a directory on my local machine to where I want the files to be downloaded. I keep getting an 'incorrect label' error message from the web service, which is getting me exasperated. The 'label path' I am passing in is the path to the (labeled) project folder in my repository (as far as I know). The documentation of this API is minimal. Please advise.

TIA,

Matt in Queens, NY

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Mar 21, 2006 4:36 pm

According to Command Line Client documentation (which is similar to the API) "Do not set labelpath unless prompted to."

What happens if you just use the repository path and the label name?
Linda Bauer
SourceGear
Technical Support Manager

mattyseltz
Posts: 2
Joined: Sun Mar 19, 2006 10:42 am

Post by mattyseltz » Wed Mar 22, 2006 1:20 pm

Dear Linda,
Thank you for your prompt reply. I changed the parameters I was passing to ClientInstance.GetLabeledFileToNonWorkingFolder(). My function call now looks like

ci.GetLabeledFileToNonWorkingFolder(cf, strLabel, strSGLabelPath, strSGWorkingDirectory)

where

ci is a ClientInstance object,
cf is a VaultClientFile,
strLabel is the name of my label,
strSGLabel path is a string, set to Nothing (not "") and
strSGWorkingDirectory is a path on my local machine.

As strSGWorkingDirectory is passed in ByRef, I am resetting it prior to each function invocation.

Hope this helps other people in the same predicament,

Matt

Post Reply