Search code examples
tfstfsbuildworkflow-activitybuild-server

TFS ConvertWorkspaceItem error


I'm trying to get Uri path from Local path of Build directory. I've added ConvertWorkspaceItem however I get an error:

enter image description here

What am I doing wrong?

EDIT

This is the way I've set it up. I get valid BuildDirectory (C:\builds...) and I want to get a server path (\TFSBUILDSrv\some\blah)

enter image description here

Result: enter image description here


Solution

  • You need to specify valid variable names for all of these three properties. there should also be a variable declared in the workflow called workspace.

    It's a type error As ConvertWorkspaceItem.Workspace Property from MSDN mentioned, this should be a value of workspace that contains the files to convert paths for( BuildDirectory to test1)

    So just need to change the variable type to workspace of the workspace variable. Everything is OK.

    A example:

    enter image description here enter image description here