1. Madhu Krushnamraju
  2. PowerBuilder
  3. Friday, 29 June 2018 20:55 PM UTC

Hi,

I'm trying to prepare build using ORCA Script and received following error message. Would you please assist on the same.

a. Calling build_project_orca.orc from Batch Command.

orcascr170.exe  build_project_orca.orc

b. build_project_orca.orc script as follows.

start session
echo Appending Libraries
set appendlib  "C:\PB17_TEST_SVN\SVN\app\demo_app.pbl" "n"
set appendlib "C:\PB17_TEST_SVN\SVN\report\report.pbl" "y"
set appendlib "C:\PB17_TEST_SVN\SVN\util\util.pbl" "y"
set application  "C:\PB17_TEST_SVN\SVN\app\demo_app.pbl" "demo3"
echo setting connection properties
scc get connect properties "C:\PB17_TEST_SVN\SVN\demo.pbw"
scc set connect property provider "SubVersion"
//shall I use PB Native or SubVersion(SVN)?
scc set connect property userid "admin"
scc set connect property password "XXXXX"
scc set connect property logfile "C:\PB17_TEST_SVN\SVN\build_application_name.log"
scc set connect property logappend "TRUE"
Scc set connect property deletetempfiles "FALSE"
scc connect
scc set target "C:\PB17_TEST_SVN\SVN\app\demo3.pbt" ImportOnly refresh_all
scc refresh target "full"
build project "C:\PB17_TEST_SVN\SVN\app\demo_app.pbl" "p_demo3_exe"

echo building libraries
build library "C:\PB17_TEST_SVN\SVN\report\report.pbl" "" pbd
build library "C:\PB17_TEST_SVN\SVN\util\util.pbl" "" pbd
build executable "C:\PB17_TEST_SVN\SVN\app\p_demo3_exe.exe" "" ""
scc close
end session

 

 

 

 

 

Error Message:-

scc get connect properties "C:\PB17_TEST_SVN\SVN\sims.pbw"
   Orca error in 'scc get connect properties'. Result Code -23.
   Unable to read SCC connect properties for C:\PB17_TEST_SVN\SVN\sims.pbw
   An error occurred reading the Windows registry entry.

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Monday, 2 July 2018 02:42 AM UTC
  2. PowerBuilder
  3. # 1
Hi,
 
PB 2017 R2 doesn’t support connecting to SVN (or GIT) through SCC to download the source code. That’s why you got the error code -23 executing scc connect. 
If you want to build the EXE/PBD using ORCA script, you can use the following workaround:
1. Use a SVN client or third party tools to download the source code to the local machine from the SVN server.
2. Copy the source code in ws_objects\yourpblsname.pbl.src\ folder to the same folder with the PBLs.  //R3 will improve it.
3. Save all *.pbg files using UTF8 without BOM (due to another bug  https://community.appeon.com/index.php/qna/q-a/pbg-file-is-utf-8-bom-but-orcascript-cannot-process).  //R3 will improve it. 
4. Execute OrcaScript to generate the PBLs and compile them into exe/pbd, for example:
start session
set debug true
scc set connect property logfile "CreatePBLs.log"
scc connect offline
scc set target "test.pbt" importonly
scc refresh target 3pass
scc close
end session
 
Regards,
Ken
Comment
  1. Madhu Krushnamraju
  2. Monday, 2 July 2018 16:50 PM UTC
I'm not connecting to SVN Server. It refers to my local folder path.



scc get connect properties "C:\PB17_TEST_SVN\SVN\demo.pbw"

  1. Helpful
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.