I am executing a power-shell script using Control-M tool using below command.
powershell -command "& { F:\SAS01\Scripts\Powershell\Medicare}
Powershell Script:
Invoke-ASCmd -Server:Hostname -InputFile:"F:\SAS01\Scripts\Powershell\Medicare.xmla" -TraceFile:"F:\SAS01\Scripts\Logs\Medicare.log"
It returning the below error along with ErrorCode="-1053425602"
<Exception xmlns=\ "urn:schemas-microsoft-com:xml-analysis:exception" /><Error ErrorCode="-1053425602" Description="Column 'BDGT_SCNRO_CD' in Table 'Budget Scenario' contains a duplicate value '
BS04' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table."
The Error Code number varies based on the error script generating but it always returning in negative.
In Control-M we have configured as whenever the error code returns positive we can show as script failed, but because of negative error code we are unable to.
Any suggestions on how to return the error code to positive along with error message.
Thanks, Mohan V.