Hello @adebomol2024 , When I tried to validate your json it said it has some error which it doesn’t i guess. Try opening the csv file via an excel or some other editor convenient to you and paste the json value given below manually. If you are pasting directly via VS code or some application where you are just entering values separated with a delimiter like comma or semi colon, you may get some errors as commas are considered as delimiters in csv mostly.This will be the value displaying in the preview :
{"operation":"AND","children":[{"operation":"OR","children":[{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.title","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"}]},{"operation":"OR","children":[{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.organization","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.organization","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.organization","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.organization","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"}]},{"operation":"OR","children":[{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.level","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.level","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.level","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.level","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"}]},{"operation":"OR","children":[{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.department","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.department","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"},{"operation":"EQUALS","key":{"type":"ACCOUNT","property":"attribute.department","sourceId":"THE_SOURCEID"},"stringValue":"SomeStringValue"}]},{"operation":"EQUALS","key":{"type":"IDENTITY","property":"attribute.cloudLifecycleState"},"stringValue":"ACTIVE"},{"operation":"EQUALS","key":{"type":"IDENTITY","property":"attribute.Profile"},"stringValue":"SomeStringValue"}]}
I tried this structure with conditions and the script ran without any errors. Just make sure this big value is written under a single cell only by previewing it.
the value will be looking in delimited file in raw format like this :
"{""operation"":""AND"",""children"":[{""operation"":""OR"",""children"":[{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.title"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""}]},{""operation"":""OR"",""children"":[{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.organization"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.organization"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.organization"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.organization"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""}]},{""operation"":""OR"",""children"":[{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.level"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.level"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.level"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.level"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""}]},{""operation"":""OR"",""children"":[{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.department"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.department"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""},{""operation"":""EQUALS"",""key"":{""type"":""ACCOUNT"",""property"":""attribute.department"",""sourceId"":""THE_SOURCEID""},""stringValue"":""SomeStringValue""}]},{""operation"":""EQUALS"",""key"":{""type"":""IDENTITY"",""property"":""attribute.cloudLifecycleState""},""stringValue"":""ACTIVE""},{""operation"":""EQUALS"",""key"":{""type"":""IDENTITY"",""property"":""attribute.Profile""},""stringValue"":""SomeStringValue""}]}
"
I ran this condition in the script without any errors…
Hope this is useful to you.