function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
annapurna penumatchaannapurna penumatcha 

Challenge Not yet complete... here's what's wrong: Could not find the 'Shift Hours' field on the 'Volunteer Shift Workers' object.

FLOOR(( Shift_End_Time__c - Shift_Start_Time__c )*24)
 Error: Incorrect parameter type for operator '-'. Expected Number, Date, received DateTime
Best Answer chosen by annapurna penumatcha
SandhyaSandhya (Salesforce Developers) 
Hi,

Make sure that Shift_Hours__c is Formula (Number)
Formula : FLOOR (( Shift_End_Time__c - Shift_Start_Time__c )*24)
Shift Start Time on Volunteer Shift with DataType  Date/Time

Best Regards,
Sandhya

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Make sure that Shift_Hours__c is Formula (Number)
Formula : FLOOR (( Shift_End_Time__c - Shift_Start_Time__c )*24)
Shift Start Time on Volunteer Shift with DataType  Date/Time

Best Regards,
Sandhya
This was selected as the best answer
annapurna penumatchaannapurna penumatcha
thank you
SandhyaSandhya (Salesforce Developers) 
Please mark it as solved if this worked for you, as it will make available for others as a solution.

Best Regards,
Sandhya