Error generating process step Call Script VI_UnsAccount_

Hello!

I wrote script for add user to Oracle Database.

I created process (Insert Event to UNSAccountB table) for create the user.

When I create user in Manager, I got error:

Got exception during generation of chain 'VI_UnsAccountB_Generic': Error generating process step Call Script VI_UnsAccount_<Ident_UNSRoot>_<Event>..

Any ideas? 

  • Which version are you using?

    I assume you have configured the custom target system (UNSRootB) to be synced by "Generic".

    Please check the documentation on Script Controlled Data Provisioning in a Custom Target System. https://support.oneidentity.com/technical-documents/identity-manager/8.0/administration-guide-for-connecting-to-custom-target-systems#TOPIC-852085

  • Version Identity Manager is 8.1. 

    Yes, My Custom target system have NamespaceManagedBy = Generic. 

    If in process "VI_UnsAccountB_Generic" I change Condition: "Value = Not CBool(Connection.Variables("FULLSYNC")) AndAlso $FK(UID_UNSRootB).NamespaceManagedBy$ = "Generic" AndAlso Not $FK(UID_UNSRootB).IsNoWrite:Bool$"

    to 

    "Value = Not CBool(Connection.Variables("FULLSYNC")) AndAlso $FK(UID_UNSRootB).NamespaceManagedBy$ = "Generic1" AndAlso Not $FK(UID_UNSRootB).IsNoWrite:Bool$"

    I not got the error, but in logs Job Server I got: 

     VI.JobService.JobComponents.ScriptComponent - 6038edec-0ad4-4151-aa44-71c5552d6e90: Errors occurred
        [System.Xml.XmlException] Data at the root level is invalid. Line 1, position 1.
           at StdioProcessor.StdioProcessor._Execute(Job job)
           at VI.JobService.JobComponents.ScriptComponent.Activate(String task)
           at VI.JobService.JobComponents.ScriptComponent._TaskScriptExec()
           at VI.DB.SingleDbObjectSnapshot.FromXml(String xml)
           at System.Xml.XmlDocument.LoadXml(String xml)
           at System.Xml.XmlDocument.Load(XmlReader reader)
           at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
           at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
           at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
           at System.Xml.XmlTextReaderImpl.Throw(Exception e)
        No log entries were made during this job.
    
  • This error is now from the execution of your script job. It seems to expect a valid SingleDbObjectSnapshot XML but the given XML is invalid.

    Hard to help you without proper information, meaning your process/process step definition including parameters, your custom script, etc.