This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UNSAccountB process is not firing for INSERT events for Provisioning using Powershell Connector

Hi,

I want to Create Active Directory Accounts using the Powershell Connector with the OOB AD Sample.xml definition file in my Sync Editor Project.

Right now I'm able to execute the Full Sync, so the AD Accounts are under UNSAccountB but I can't Provisioning new acccounts to the Target System.

I've created a new custom UNSAccountB process for INSERT events and it's not being fired. When I run the Simulation in Designer the Process Step says "Not Generated".

Here's the Pre-Script for Generating and Generating Conditions:

The process step is a process task Projector Component - AdHocProjection with the Following Properties:

Also I've setup the provisioning process operation in order to execute the Sync Workflow for Provisioning:

 

I appreciate any help!

Thanks

Parents
  • That helped. I think everything is good with the xml file now but I'm still having the first issue:

    "The UNSAccountB process is not firing for Insert Events"

    I checked the conditions in my process chain Pre-Script and I fixed a few things (something was wrong with the SystemType for the DPR_GetAdHocData script) but now I'm getting a null object if I test that script: "Object reference not set to an instance of an object".

    If you take a look at that script (DPR_GetAdHocData) you'll see a few parameters, and it seems that the IEntity parameter is null, that's supposed to be the UNSAccountB object, right? The rest of the parameters are ok.

    Here's my actual pre-script:

    If Not CBool(Connection.Variables("FULLSYNC")) AndAlso _
    $FK(UID_UNSRootB).NamespaceManagedBy:String$.Equals("VISYNC",StringComparison.OrdinalIgnoreCase) Then

    Try


    Dim f As ISqlFormatter = Connection.SqlFormatter
    Dim tmpSystemType As String = $FK(UID_UNSRootB).FK(UID_DPRNameSpace).Ident_DPRNameSpace$
    values("SystemType") = Connection.GetSingleProperty("SystemType","DPRSchema", f.Comparison("Name",tmpSystemType,ValType.String,CompareOperator.Equal,FormatterOptions.IgnoreCase))
    values("AdHocDataFound") = False


    Imports System.Collections.Generic
    Dim data As IDictionary(Of String,string) = DPR_GetAdHocData($FK(UID_UNSRootB).XObjectKey$,values("SystemType").ToString(),"","Insert")

    If Not data is Nothing
    values("AdHocDataFound") = True
    values("NeedExecute") = DPR_NeedExecuteWorkflow(data("ProjectionConfigUID").ToString(),entity)
    values("ObjectKey") = New DbObjectKey(base.Tablename,$UID_UNSAccountB$).ToXmlString()
    values("UID_DPRSystemVariableSet") = data("VariableSetUID")
    values("UID_DPRProjectionConfiguration") = data("ProjectionConfigUID")
    values("UID_QBMServer") = data("ExecutionServerUID")
    End if

    Catch ex as Exception
    values("AdHocDataFound") = False
    End Try

    End If


    Thanks again
Reply
  • That helped. I think everything is good with the xml file now but I'm still having the first issue:

    "The UNSAccountB process is not firing for Insert Events"

    I checked the conditions in my process chain Pre-Script and I fixed a few things (something was wrong with the SystemType for the DPR_GetAdHocData script) but now I'm getting a null object if I test that script: "Object reference not set to an instance of an object".

    If you take a look at that script (DPR_GetAdHocData) you'll see a few parameters, and it seems that the IEntity parameter is null, that's supposed to be the UNSAccountB object, right? The rest of the parameters are ok.

    Here's my actual pre-script:

    If Not CBool(Connection.Variables("FULLSYNC")) AndAlso _
    $FK(UID_UNSRootB).NamespaceManagedBy:String$.Equals("VISYNC",StringComparison.OrdinalIgnoreCase) Then

    Try


    Dim f As ISqlFormatter = Connection.SqlFormatter
    Dim tmpSystemType As String = $FK(UID_UNSRootB).FK(UID_DPRNameSpace).Ident_DPRNameSpace$
    values("SystemType") = Connection.GetSingleProperty("SystemType","DPRSchema", f.Comparison("Name",tmpSystemType,ValType.String,CompareOperator.Equal,FormatterOptions.IgnoreCase))
    values("AdHocDataFound") = False


    Imports System.Collections.Generic
    Dim data As IDictionary(Of String,string) = DPR_GetAdHocData($FK(UID_UNSRootB).XObjectKey$,values("SystemType").ToString(),"","Insert")

    If Not data is Nothing
    values("AdHocDataFound") = True
    values("NeedExecute") = DPR_NeedExecuteWorkflow(data("ProjectionConfigUID").ToString(),entity)
    values("ObjectKey") = New DbObjectKey(base.Tablename,$UID_UNSAccountB$).ToXmlString()
    values("UID_DPRSystemVariableSet") = data("VariableSetUID")
    values("UID_DPRProjectionConfiguration") = data("ProjectionConfigUID")
    values("UID_QBMServer") = data("ExecutionServerUID")
    End if

    Catch ex as Exception
    values("AdHocDataFound") = False
    End Try

    End If


    Thanks again
Children
No Data