function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PieterSalesforcePieterSalesforce 

Process Automation Specialist Superbadge - Challenge 2

I'm trying to pass step 2 but I think I hit a bug.
2 validations in place:
NOT 
OR ( BillingCountry = "US", BillingCountry ="USA", ISBLANK( BillingCountry ))

NOT( 
CONTAINS("AL:AK:AZ:AR:CA:CO:CT:DE:DC:FL:GA:HI:ID:" & 
"IL:IN:IA:KS:KY:LA:ME:MD:MA:MI:MN:MS:MO:MT:NE:NV:NH:" & 
"NJ:NM:NY:NC:ND:OH:OK:OR:PA:RI:SC:SD:TN:TX:UT:VT:VA:" & 
"WA:WV:WI:WY", BillingState))

Set both error locations to field (this solved my problem on challenge 1)

In the logs I can see that he is trying to insert BillingState=NYY and it failes on the validation rule (which make sence)

Because of that I get:

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: UPYQFGLO
Maheshkumar Selvaraj 10Maheshkumar Selvaraj 10
Try changing the 'Call for Service' formula field with 'Yes' instead of 'YES'
PieterSalesforcePieterSalesforce
For Call for Service I have:
IF(OR(TODAY() - 730 > Last_won_deal_date__c,TODAY() + 730 < Last_won_deal_date__c) ,'Yes','No')
Formula Return type: Text