A customer reported a problem with this error message when Amorphous Cell was called via a script:
Document manager failed to find document with identifier "{E7A9329F-C16B-4820-ABAB-720CB20367E3}" in AmorphousCell.Construction (function/property "Run") at -e line 41.
Please keep in mind that adding a component via AddComponent(\$component); has an effect to the global settings of the Amorphous Cell module and if the relevant document in \$componend does not exist any more in the next loop you may get such an error message.
Therefore, please make sure that you also call RemoveComponent(\$component); when you delete a docuement during the run.
Please search the manual for further info how to use the mentioned functionalities.