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

Using Additional Connection Variable for Synchronization Project

I have a CSV file. I have created Sync project with "Data Import" option to make it not FULLSYNC. I have added one more connection variable

 

My requirement is :

1. Template Needs to be Executed

2. My Custom Process for Update Event should not trigger when I do import from Sync Project

     - Generating condition is

Value = Not CBool(Connection.Variables("FULLSYNC")) and Not CBool(Connection.Variables("RSAIMPORT")) and $UID_UNSRootB$ =Connection.GetConfigParm("Custom\RSA\AuthentigationManager\UIDUNSRootB")

 

 

But it does not work. My custom triggers during sync project import.

 

Am i missing anything ?

  • You are mixing up two things, connection variables, and sync project variables. You cannot test against sync project variables outside of the synchronization run as you are trying to do with your gen. condition.

    But you can try to test against the current user of the connection in your gen. condition.

    You can either compare Connection.User.Name to Synchronization or Connection.User.DialogUserUid with DPR-CC0219C87167B541B70B7CED9263A42DI.

    Value = Not CBool(Connection.Variables("FULLSYNC")) And Not (Connection.User.Name.Equals("Synchronization", StringComparison.InvariantCultureIgnoreCase) And $UID_UNSRootB$ =Connection.GetConfigParm("Custom\RSA\AuthentigationManager\UIDUNSRootB")

    Value = Not CBool(Connection.Variables("FULLSYNC")) And Not (Connection.User.DialogUserUid.Equals("DPR-CC0219C87167B541B70B7CED9263A42D", StringComparison.InvariantCultureIgnoreCase) And $UID_UNSRootB$ =Connection.GetConfigParm("Custom\RSA\AuthentigationManager\UIDUNSRootB")

  • Hi Markus,

    Thanks for your reply. I have tried this, but it does not work.
  • Can you confirm that the objects updated have been marked with the user "Synchronization" in the XUserUpdated property?
  • Hi Markus,

    It is "Synchronization". Please find the screenshot.

  • Which suggestion for the generation condition did you use?
    How did you test the generation of the process chain?

    First thing what i would do, is to simulate the process in ObjectBrowser or Designer with the Synchronization user on the update event. If it still fails, check your condition term by term and use some more parenthesis to seperate your test conditions.
  • Hi Markus,

    I have tested by simulating in Object browser and Executed the Job from Sync Editor. I have created the schedule task and ran it also. It trigger the custom process of update event.

    when i try from object browser as synchronization user, it doe not trigger. so the Generating condition in the process is correct. when i try from object browser as other system user, it triggers.

  • Just for clarification, which one of my suggested gen. conditions did you use?
  • Hi Markus,

    I have used this.

    Value = Not CBool(Connection.Variables("FULLSYNC")) And Not (Connection.User.Identifier.Equals("Synchronization", StringComparison.InvariantCultureIgnoreCase)) And $UID_UNSRootB$ =Connection.GetConfigParm("Custom\RSA\AuthentigationManager\UIDUNSRootB")
  • Sorry, but I had to correct my initial post. You need to check the property Connection.User.Name against Synchronization.

    So your gen. condition would be

    Value = Not CBool(Connection.Variables("FULLSYNC")) And Not (Connection.User.Name.Equals("Synchronization", StringComparison.InvariantCultureIgnoreCase) And $UID_UNSRootB$ =Connection.GetConfigParm("Custom\RSA\AuthentigationManager\UIDUNSRootB")

    HtH