1. Robert Carlson
  2. PowerBuilder
  3. Monday, 29 January 2024 23:11 PM UTC

Why am I getting this error trying to connect to source control with OrcaScript?

 

Appeon (R) OrcaScript interpreter version 19.2
        Using ANSI source file orca_ssc_refresh.bat.
Start Session
scc get connect properties "c:\backup\development\smartsystems\smartsystems.pbw"
scc connect
   Orca error in 'scc connect '. Result Code -23.
   Unable to read SCC connect properties for Microsoft Team Foundation Serve
   An error occurred reading the Windows registry entry.
Last Command Failed.
scc close
You must successfully issue scc connect before you can call this method.
End Session

Here is my script file:

start session
scc get connect properties "c:\backup\development\smartsystems\smartsystems.pbw"
scc connect
scc set target "c:\backup\development\smartsystems\v23.3\main\fin.pbt" "refresh_all"
scc get latest version "c:\backup\development\smartsystems\v23.3\main\fin.pbt"
scc close
end session

Robert Carlson Accepted Answer Pending Moderation
  1. Tuesday, 30 January 2024 15:04 PM UTC
  2. PowerBuilder
  3. # 1

Thanks John,

I don't think it's a permissions issue as I am signed on to the machine as the Administrator. I am thinking there might be something off in the registry, but I can't figure out what. I get the same error when I try to enter the scc info manually as well...

start session
scc set connect property provider "Microsoft Team Foundation Server MSSCCI Provider"
scc set connect property userid "SSDMAIN\Administrator"
scc set connect property project "$/SmartSystems"
scc set connect property localprojpath "C\SSD\source"
scc connect

Orca error in 'scc connect '. Result Code -23.
   Unable to read SCC connect properties for Microsoft Team Foundation Serve
   An error occurred reading the Windows registry entry.

I found some registry values relating to the "Microsoft Team Foundation Server MSSCCI Provider" but without knowing what exactly the OrcaScript function is looking for I am not sure how to fix this.

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 29 January 2024 23:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Robert - 

The message would seem to indicate that the ORCA utility was unable to read information from the Windows Registry regarding the connection properties for TFS.

The -23 return code confirms this:

    https://docs.appeon.com/pb2022r3/orca_guide/XREF_31957_PBORCA_SccConnect.html

The user account that is running the ORCA utility may need special permission(s) to read the portion of the Windows Registry where this information resides. I'm not familiar with TFS (or ORCA, for that matter), but I hope this provides you enough information that you can determine the root cause.

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.