810222 - Error executing script due to a null reference

Hi all,

I have a simple process, linked to JobAutoStart table that executes a simple script.

I've created this process in development environment and everything works fine.

The problems are coming out while porting the same configuration in production environment: when I execute the process, a frozen is being raised with the following message:

Error Message (2022-07-19 08:39:12.393) [810222] Error executing script 'CCC_my_script'.
[System.NullReferenceEception] Object reference not set to an istance of an object.

   at StdioProcessor.StdioProcessor._Execute(Job job)

   at VI.JobService.JobComponents.ScriptComponents.Activate(String task)

   at VI.JobService.JobComponents.ScriptComponents._TaskScriptExec()
   at VI.DB.Scripting.ScriptRunner.Eval(String key, Object[] parameters)

   ---- Start of Inner Exception -----

   at DynScripts.Scripts_XXX.CCC_my_script()

The configuration between development and producion seems equal and the script in production is the same too.

Is the error related to the script or to some parameter defined in the designer?

Is there a way to improve the logs traced by One Identity?

Do you have any suggestions to fix this error?

One Identity has 8.2.1 version.

Thanks a lot!

Daniele