Some Resources need to be modified from File to Script Type, and therefore the Uproc Conditions associated need to also be modified.
This can be done via UVC, but via the command line, we get an error as condition cannot be removed from a uproc if the Resource Type does not match the one in the uproc condition (ie when you change a File Resource file into a Script Resource)
uxupd upr exp upr=AFR_UPR rescon dlt condno=01
Command : uxupd upr exp upr=AFR_UPR vupr=* nopartage rescon dlt condno=01
Data consistency error
command in error!!
Launch formula of the Uproc needs to be cleared before removing the resource condition
Release : 6.x
Component : Dollar Universe
Option 1( via UVC):
Use UVC, both launch formula and condition will be deleted at the same time.
Option 2 (via command line):
In order to prevent this from occurring, the launch formula of the uproc needs to be cleared before:
In the "uxshw upr upr=UPROCNAME" we have:
| formula : ( =C01 )
To remove the formula, we need to launch the following command for example:
uxupd upr exp upr=UPROCNAME FORMULA LFORM=C01
that way, in uxshw upr upr=UPROCNAME we can see that the formula is now empty
| formula : ( )
Now, the condition can be deleted:
uxupd upr exp upr=UPROCNAME rescon dlt condno=01
and then add the condition again ( which will take the new resource type parameters)
uxupd UPR UPR=UPROCNAME RESCON add CONDNO=01 RES=RESOURCE_NAME
and then add the launch formula:
uxupd UPR UPR=UPROCNAME formula lform=\"=C01\"