+ Start a Discussion
LeighAnn GrahamLeighAnn Graham 

Implement the Flow with a Custom Button Challenge Help

I am getting the error: Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Discount_Percent__c]: [Discount_Percent__c]

Throughout this module I've been using Discount Percentage, not Discount Percent, but when I made an opportunity for Edge Communications - 1 year contract it required me to add a discount percent manually. I'm not sure what is wrong or what to do. Please help!
Amit Chaudhary 8Amit Chaudhary 8
Please check you have any field with "Discount_Percent__c" Name ? If yes then edit same field and remove required field check box and try again.

Please check below post for same issue
1) https://developer.salesforce.com/forums/?id=906F0000000BU1ZIAW
2) https://developer.salesforce.com/forums/?id=906F0000000MIy7IAG
3) https://developer.salesforce.com/forums/?id=906F0000000MJkVIAW

check if there is a field (Discount_Percent__c) on your task or opportunity sobject and if that is required field. If so, please edit (Discount_Percent__c) and uncheck it.
 

 
Angeles Meneses AvilézAngeles Meneses Aviléz

Hello I'm having the next error message when I try to check the challenge.

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Delete failed. First exception on row 0 with id 0014100000Nm8bLAAR; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Cannot delete Account related to Opportunities: []

Anyone who can help to figure out want the proble is?

Thanks in advance.

Amit Chaudhary 8Amit Chaudhary 8
Please check on account object you have Trigger which is creating opportunity If yes the deactivate that trigger and try again
Crystal ZhuCrystal Zhu
Hello Team, I am having the error message when I try to verify the challenge.
"Challenge Not yet complete... here's what's wrong: 
The 'Calculate Discount' custom button doesn't exist or isn't properly configured. Check the instructions."
However , I did confgiure the  'Calculate Discount' custom button and got the right information, "Discount Percentage 5%" and  "Discounted_Amount $4,750,000.00".  

Many thanks for your advice!
Sam Pickard 7Sam Pickard 7
Hi Crystal, I ran into the same problem and found the answer in this thread. https://developer.salesforce.com/forums/?id=9060G000000UVpVQAW

It looks like the button api name needs to be "Calculate_Discount_button" rather than just "Calculate_Discount" like it says in the module.
Anna VenetiAnna Veneti
Thanks, i thought i was crazy!! :D
Kranti Bharath Tadipatri 5Kranti Bharath Tadipatri 5
Thank you so much. Changing the API name of the button worked!
hanain hafeezhanain hafeez
Hi, I am also getting an error message on this module. My error message looks like this: There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Account number must be 8 characters long: []

Can anyone please offer some insight into why I keep receiving this message?

Thank you!