Look at that program/macro and try to debug as why that happens.
Hello, I have just run into this myself. Over 800 views. Will try to debug as suggested and re-post after trying to meet deadline without automated solution. Not the first time Solidworks left me high and dry. Automating has proven VERY time consuming, bug ridden and unstable through releases.
Have not tried yet but this looks like what we need.
Set properties for selected component in specified configuration, including "envelope" yes or no. "CompConfigProperties5 Method (IAssemblyDoc)"
Mine is fixed .... I simply changed method name SetSuppression to SetSuppression2
[example: ...swChildComp.SetSuppression2 (swComponentFullyResolved) ]