IF(
AND( OppRegion__c = "EMEA",
IF(Account_Country__c = "Azerbaijan","Middle East",
IF(Account_Country__c = "Bahrain", "Middle East",
IF(Account_Country__c = "Iraq", "Middle East",
IF(Account_Country__c = "Israel", "Middle East",
IF(Account_Country__c = "Jordan", "Middle East",
IF(Account_Country__c = "Kuwait", "Middle East",
IF(Account_Country__c = "Lebanon", "Middle East",
IF(Account_Country__c = "Palestine", "Middle East",
IF(Account_Country__c = "Qatar", "Middle East",
IF(Account_Country__c = "Saudi Arabia", "Middle East",
IF(Account_Country__c = "Turkey", "Middle East",
If(Account_Country__c = "Russia", "Russia",
If(Account_Country__c = "Russian Federation","Russia",
If(Account_Country__c = "UAE","Middle East",
If(Account_Country__c = "United Arab Emirates","Middle East",
IF(Account_Country__c = "yemen", "Middle East"),
If( AND( OppRegion__c = "APAC",
IF( CONTAINS( Account_Country__c, "China"),"China",
If(Account_Country__c = "Japan","Japan",
If(Account_Country__c = "JP","Japan",
If(Account_Country__c = "Macau","China",
If(Account_Country__c = "Vietnam","Vietnam",
If(Account_Country__c = "KR","South Korea",
If( CONTAINS( Account_Country__c, "Korea","South Korea"),
IF( OppRegion__c = "NAM", "North America",
IF(OppRegion__c = "ROW", "SOUTH AMERICA","Other"))))))))))))))))))))))))))))
I think the problem is in IF(Account_Country__c = "yemen", "Middle East")
where only two parameters are passed. Remove the closing )
Best Answer
The
&
concatenation operator expects the left operand and right operand to be text. ButDAY(Customer_id__r.Date_of_Birth__c)
returns integer and so throws syntax error.You can surround the DAY and MONTH functions with TEXT() function like
Hope it helps.