Exception error in transform

Can you some help me to solve this error

{
    "id": "3eaef8d5-c6ea-43b0-8892-79326796a8ce",
    "name": "Final Organization Unit Reference Transform",
    "type": "static",
    "attributes": {
        "ouassignment": {
            "type": "firstValid",
            "attributes": {
                "values": [
                    {
                        "attributes": {
                            "id": "OU calculation Lookup Transform",
                            "requiresPeriodicRefresh": true
                        },
                        "type": "reference"
                    },
                    "null"
                ]
            }
        },
        "emailDomain": {
            "type": "firstValid",
            "attributes": {
                "values": [
                    {
                        "attributes": {
                            "id": "Email Domain calculation Lookup Transform",
                            "requiresPeriodicRefresh": true
                        },
                        "type": "reference"
                    },
                    "null"
                ]
            }
        },
        "UserPersonType": {
            "attributes": {
                "attributeName": "UserPersonType",
                "sourceName": "Oracle HCM - Dev2"
            },
            "type": "accountAttribute"
        },
        "WorkerType": {
            "attributes": {
                "attributeName": "WorkerType",
                "sourceName": "Oracle HCM - Dev2"
            },
            "type": "accountAttribute"
        },
        "value":"   #if(($emailDomain.contains(\"xx.comm\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType != 'Contingent Worker')OU=Users,OU=External Objects#elseif(($emailDomain.contains(\"xx.comm\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType == 'Contingent Worker')OU=Users,OU=RTP,OU=Sites#elseif(($emailDomain.contains(\"xx.comm\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType =! 'C'))OU=Users,OU=RTP,OU=Sites,DC=americas#elseif(($emailDomain.contains(\"yx.com\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType != 'Contingent Worker')OU=Users,OU=External Objects,OU=Enterprise#elseif(($emailDomain.contains(\"yx.com\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType == 'Contingent Worker')OU=Philadelphia,OU=Head Offices,OU=US#elseif(($emailDomain.contains(\"yx.com\")) && ($ouassignment == 'OU mapping is not available') && ($WorkerType =! 'Contingent Worker'))OU=Philadelphia,OU=Head Offices,OU=US,OU=User Accounts#elseif(($ouassignment != 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType != 'Contingent Worker')OU=Users,OU=External Objects,OU=Enterprise#elseif(($ouassignment != 'OU mapping is not available') && ($WorkerType == 'C') && ($UserPersonType == 'Contingent Worker')$ouassignment#elseif(($ouassignment != 'OU mapping is not available') && ($WorkerType != 'C'))$ouassignment#{else}Domain Or OU Assignment Not Available#end"
    },
    "internal": false
}

`````````

your if and most of your elseifs need another closing paren.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.