You need to sign in to do that
Don't have an account?

"Using Formula Fields" Trailhead Challenge error/issue Revisited
Hello All, I'm having an issue with the Using Formula Field Challenge . I'm using the formula that Vivek provided to a solved question yesterday " TODAY() - DATEVALUE(LastModifiedDate) " but its been met with this error below when its been checked by the challenge "
Challenge not yet complete... here's what's wrong:
The 'Days_Since_Last_Update__c' formula field did not return the correct number of days between an Account’s Last Activity Date and today
Can anyone assist???
Thanks to you all for you quick responses and input guys. Appreciate it.
All Answers
The formula should be on the Case object.
The formula should be of return type Number.
The formula should be named 'Days Since Last Update' and have a resulting API Name of 'Days_Since_Last_Update__c'.
The formula should return the number of days between the account’s Last Activity Date and today.
Just for the record I add the formula on the Case object and not the Account object. Should I have added the formula to the Account object because it seems from the error that the account is what is being tabulated. Please advise.
Please try below formula and let me know if it works.
TODAY() - DATEVALUE(LastActivityDate)
Best Regards,
-Vivek
Please try below code
Same worked for me
Pleas elet us know if this will help u
Please create one formula field with Number type on case object like below Please refer below screen shot. I hope that will help you
Same worked for me
Pleas elet us know if this will help u
Thanks to you all for you quick responses and input guys. Appreciate it.
where did did up create the formula?Did u create a custom object called 'Account'? Or in the custom object 'Case'?
I already tried the above formula in Case object but I got a syntax error
Error: Field Account does not exist. Check spelling.
I understand the Account object needs to made accessible to the Case object somewhere.but don't know where.
Thanks
Sudha
My formula is created in Cases > Fields > Case Custom Fields & Relationships. Formula return type is a Number with the formula: (TODAY() - Account.LastActivityDate)
Any thoughts?
It look like you created one "AccountID__c" field on case object as a required field. Please remove that field.
NOTE:- you need to create the field on stantard object case. please check below post with step by step process
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BQwUIAW
Please let us know if this will help u
Thanks
Amit Chaudhary
Thank you!
Mark
Today()- Account.LastActivityDate
But it gives me an empty field on all the cases. I guess that's because Account.LastActivityDate is empty on all account records.
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: FIELD_CUSTOM_VALIDATION_EXCEPTION, Fax must be A999: [Fax]
I'm not sure what I'm doing wrong. Help!
Hi All,
I am getting this error though I have written the correct formula.
Can anybody help me?
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: [Test_GeoLoc1__Latitude__s, Test_GeoLoc1__Longitude__s, Test_Text5__c]: [Test_GeoLoc1__Latitude__s, Test_GeoLoc1__Longitude__s, Test_Text5__c]