search cancel

pdm_publish execution failed - error on 'C:\Program'

book

Article ID: 230100

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

I try to run pdm_publish, after adding some customisation in WSP. 

We have a CA SDM Advanced Availability configuration. And we have followed the pdm_publish advanced availability steps.

I got this error after executing pdm_publish : 

'C:\Program' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

Vous devez executer pdm_publish uniquement sur un serveur de secours.
pdm_publish execution failed

 

Environment

Release : 17.2

Component : SDM - Customizations

Resolution

On Standby, nxcd correctly sets the NX_ROOT to the short form of the folder name, which contains no spaces, while on the background server where you get the error, it uses the long name.

The exact command used in the script is the output of

nx_env -d NX_ROOT |  pdm_gsub / \nexz

So the problem was that NX_ROOT was set incorrectly in the NX.ENV; correct this to the 8.3 version of the folder name, and the pdm_publish works.