I have a requirement to display an error message when user selects 10 types of cars from the available picklists.
Here, I have created a formula field to display alert message. and implemented a formula as below.
Here, I am facing an error 'Compiled formula is too big to execute'. Please suggest me a way to minimize my formula that could be greatful.
IF(
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Accord'),ISPICKVAL(Year_manual__c, '2001')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Accord'),ISPICKVAL(Year_manual__c, '2002')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Civic'),ISPICKVAL(Year_manual__c, '2001')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Civic'),ISPICKVAL(Year_manual__c, '2002')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Pilot'),ISPICKVAL(Year_manual__c, '2003')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'CR-V'),ISPICKVAL(Year_manual__c, '2002')) ||
AND(ISPICKVAL(Make_manual__c, 'Honda'),ISPICKVAL(Model_manual__c, 'Odessey'),ISPICKVAL(Year_manual__c, '2002')) ||
AND(ISPICKVAL(Make_manual__c, 'Accura'),ISPICKVAL(Model_manual__c, '3.2TL'),ISPICKVAL(Year_manual__c, '2002')) ||
AND(ISPICKVAL(Make_manual__c, 'Accura'),ISPICKVAL(Model_manual__c, '3.2TL'),ISPICKVAL(Year_manual__c, '2003')) ||
AND(ISPICKVAL(Make_manual__c, 'Accura'),ISPICKVAL(Model_manual__c, '3.2CL'),ISPICKVAL(Year_manual__c, '2001'))
)True,false)