Article ID: 2505859 - View products that this article applies to.
When executing an Opalis Integration Server Policy that utilizes the Run .Net Script object, the following error is returned in the Error Summary Text Published Data of the Run .Net Script object and the object status returns as failed:
A statement within the code supplied in the Details tab of the Run .Net Script Opalis object is attempting to perform an action against an object that has not yet been instantiated.
Check the code supplied to ensure that no variables are being declared that match the names of any variables declared in the Published Data tab of the Run .Net Script object. For each Published Data item added to the Run .Net Script object, a "Variable name" property is provided which at runtime is converted into a declared variable.
If a declaration exists in the code that also exists in a Published Data definition, remove the variable declaration from the code.
Inspect the code to see if there are any variables being set before they are instantiated. The best way to do this would be to bring the code into Visual Studio and setup all the appropriate references and test out the code execution there.
If an object is referenced before it is declared, correct the code.
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.
Contact us for more help
Connect with Answer Desk for expert help.