• Dulce Amaya
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello!
I'm having some trouble with the Process Automation Specialist Superbadge - Challenge 2. I keep getting the following error:

Challenge Not yet complete... here's what's wrong: 
A validation rule did not prevent a new Account from being saved when Billing Country is blank and Billing State has three characters.

These are my validation rules:

LEN( ShippingState ) <> 2 || 
NOT( CONTAINS ("AL:AK:AZ:AR:CA:CZ:CO:CT" & 
"DE:DC:FL:GA:GU: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:PR:RI:SC:SD:TN:TX:UT" & 
"VT:VI:VA:WA:WV:WI:WY" , ShippingState )) || 
(ShippingCountry <> 'USA' && ShippingCountry <> 'US' && ShippingCountry <> 'United States' && NOT( ISBLANK(ShippingCountry)))

------------

LEN( BillingState ) <> 2 || 
NOT( CONTAINS ("AL:AK:AZ:AR:CA:CZ:CO:CT" & 
"DE:DC:FL:GA:GU: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:PR:RI:SC:SD:TN:TX:UT" & 
"VT:VI:VA:WA:WV:WI:WY" , BillingState )) || 
(BillingCountry <> 'USA' && BillingCountry <> 'US' && BillingCountry <> 'United States' && NOT( ISBLANK(BillingCountry)))

Can anyone help me please?