Hello, I am using the ctrlX PLC Engineering Web API (2.4) in a powershell (7) scripting environment. I combined the ProjectJobs "Open" and "SaveAndInstallIntoLibraryRepository" in a script. First the project is opened. The status of the Job ID is checked every 6 seconds until it is done, afterwards the library is installed. A successful run gives these logs: #################################
######### OPEN PROJECT ##########
#################################
Open project: C:\\agent\\_work\\8\\s\\Sample.library
Request job with params: {"jobType":"ProjectJob","jobParameters":{"action": "Open", "path": "C:\\agent\\_work\\8\\s\\Sample.library", "keepProjectVersion": false}}
Open project Job ID: 124d964e073ebbb7
Open project state: Running
Open project state: Running
Open project state: Running
Open project state: Done
C:\\agent\\_work\\8\\s\\Sample.library opened successfully.
#################################
######## INSTALL PROJECT ########
#################################
Install: C:\\agent\\_work\\8\\s\\Sample.library
Request job with params: {"jobType":"ProjectJob","jobParameters":{"action": "SaveAndInstallIntoLibraryRepository"}}
Save and Install into library repository Job ID: 22cff790bd9e7762
Save and Install into library repository state: Done But every other time the same script fails with these logs: #################################
######### OPEN PROJECT ##########
#################################
Open project: C:\\agent\\_work\\8\\s\\Sample.library
Request job with params: {"jobType":"ProjectJob","jobParameters":{"action": "Open", "path": "C:\\agent\\_work\\8\\s\\Sample.library", "keepProjectVersion": false}}
Open project Job ID: 5265406ec5c9666c
Open project state: Done
C:\\agent\\_work\\8\\s\\Sample.library opened successfully.
#################################
######## INSTALL PROJECT ########
#################################
Install: C:\\agent\\_work\\8\\s\\Sample.library
Request job with params: {"jobType":"ProjectJob","jobParameters":{"action": "SaveAndInstallIntoLibraryRepository"}}
Save and Install into library repository Job ID: 32ea04d2bd4985ac
Save and Install into library repository state: Failed
Save and Install into library repository failed.
No open project found. It is the exact same script. It seems, like the Open job returns success, although the project was not opened. Does anyone have an idea what can cause this? Thank you and best regards
... View more