You need to sign in to do that
Don't have an account?
Briana Tucker
the number of days between the end date of a contract and today.
I am having trouble completing the following Trailhead: Create a formula field that determines the number of days between the end date of a contract and today. This is the formula that I am using:
EndDate - TODAY()
I keep getting the following error when I check the syntax: Error: Formula result is data type (Number), incompatible with expected data type (Date).
EndDate - TODAY()
I keep getting the following error when I check the syntax: Error: Formula result is data type (Number), incompatible with expected data type (Date).
Besides EndDate - TODAY() returns a number, indicating the number of days, between end date and today.
I think the issue may be arising due to the decimal places in the return type section.
I'll suggest you change the datatype to the number and make the decimal place as 0.
Then apply the below formula using Advance formula tab:
EndDate-TODAY()
Try this link:
https://success.salesforce.com/answers?id=90630000000glUUAAY
Hope it helps and mark it best if solved.
Thank you,
Ajay Dubedi
Do not create any new object "Contract" - use the standard object "Contract"
Create the Formula field and with "Number" as Datatype & decimal as "0 " &
Formula as EndDate - TODAY() . It works just fine.
this is on the standard object "Contract"
Data type = number
Decimal = 0
Formula = EndDate - TODAY()
Error: The 'Days_Remaining__c' formula field did not return the correct number of days between the contract end date and today.
Any suggestion?
EndDate - TODAY()
We created a contract and expected the 'Days_Remaining' field to show the number of Days Remaining until the contract end date, but it didn't. Make sure your formula subtracts today's date from the contract end date.
Challenge not yet complete in BSX101
We created a contract and expected the 'Days_Remaining' field to show the number of Days Remaining until the contract end date, but it didn't. Make sure your formula subtracts today's date from the contract end date.
EndDate - TODAY()
There is No syntax errors in merge fields or functions. (Compiled size: 28 characters)
Hi All,
I was getting the same error trying 3-4 times then here is something I tried-
1) Created a new Playground and launched it.
2) Opened the Contract object>>Created the field "Days Remaining" type "Formula" and return type "Number" with decimal '0'.
3) In the Fomula logic section used- EndDate - TODAY()
4) Assign to all profiles and to the page layout and save
5) Check the challenge hope that solves the issue
I was getting the same error. Then, I tried this trailhead in a new org and that resolved the error.
Hope this helps :)
If you are configuration is fine as mentioned in the post and still having the below error so just create a new playground or configure all steps in the different playground. Hope it will work.
Data type = number
Decimal = 0
Formula = EndDate - TODAY()
Cheers!
formula for your reference:
EndDate - TODAY()
Steps i've followed. ---> tried with another trailhead org playground/
Data type = number
Decimal = 0
Formula = EndDate - TODAY()
Assign to all profiles and to the page layout and save
Check the challenge and hope that solves the issue.
As part of Target Integration, we are here to help you. To learn more about Target Integration, please visit www.targetintegration.com, or e-mail us at info@targetintegration.com.
1. Create Contract record first ->Click on App Launcher --> Search for Contract --> Create new record
2.Create Contract object>>Created the field "Days Remaining" type "Formula" and return type "Number" with decimal '0'.
In the Fomula logic section used: EndDate - TODAY()
1) Open the Contract object>>Create the field "Days Remaining" type "Formula" and return type "Number" with decimal '0'.
2) In the Fomula logic section use- EndDate - TODAY()
After I checked the formula and tried all the different suggestions here in the chat, the thing that worked was to do the same thing in a different or new playground.