Error hco comand "State has no such Checkout Process or has no execute access."
search cancel

Error hco comand "State has no such Checkout Process or has no execute access."

book

Article ID: 200843

calendar_today

Updated On:

Products

CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

From the Workbench, we can do a Check-Out for Browse towards this agent correctly, but executing the hco command in the broker does not allow us to Check-Out.

[<userid>@<server> <folder>] # cat hco.log
I00060040: New connection with Broker <brokername>  established.
State has no such Checkout Process or has no execute access.
[<userid>@<server> <folder>] #

The hco command we used was similar to this:

hco -b <brokername> -en <projectname> -st <statename> -br -r -s * -vp <viewpath> -op pc -po -pn Check Out for Browse -usr <userid> -pw <password> -cp <clientpath>

 

Environment

Harvest Software Change Manager all versions

Resolution

The error message happens for one of these reasons:

  • The state does not have a check out process with that name defined
  • The name of the check out process is not enclosed in double-quotes, so the operating system assumes only the first word after "-pn" is the name of the process
  • The user ID being used does not belong to a group that has permission to run the process

Recommend to check the following:

  1. In the Administrator Tool, navigate to the project, and state and check if there is a process with the name you specified in the hco command.
  2. If you find this process, right click on it and view the properties. In the "Access" tab, does the user you specified in the hco command belong to one of those user groups?
  3. If both of these details seem correct, then look again at your hco command.  In the above example, the check out process name was specified this way:

hco -b brokername ... -pn Check Out for Browse ...

Notice there are no double quotes around the name of the process.  The Windows or Linux/Unix command line interpreter will take this to mean that the process name is "Check".  Since there are spaces in the name of the process you should surround the process name with double quotes, like this:

hco -b brokername ... -pn "Check Out for Browse" ...