While deploying a SXP package to some targets, the SD job fails with error:
Procedure could not be started: System out of memory, executable file corrupt, or relocations invalid. [SDM228200]
This error occurs because the file "C:\Program Files\CA\DSM\bin\state.ini" on the target machine contains a line for a product which has no directory under "C:\Program Files\CA\DSM\Bin\Archive\" anymore.
For example if 70 products are listed in the file state.ini, 70 directories should be present under "C:\Program Files\CA\DSM\Bin\Archive\" (ground.dir not included).
The solution is to copy the missing directory under "C:\Program Files\CA\DSM\Bin\Archive\" from another machine.
In order to get the right product/version directories care must be taken on checking that the other machine has the same version installed.
For example: in state.ini we can have the following line for product DUMMY01 and version 1000:
This means that under "C:\Program Files\CA\DSM\Bin\Archive\" there must be a subdirectory DUMMY01 and under it another subdirectory "1000" with the package files.
Once it is confirmed it's the same version, the DUMMY01 directory can be copied to the faulty machine.