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
Abhiram Sheshadri 29Abhiram Sheshadri 29 

The 'Shift Hours' field on the 'Volunteer Shift Workers' object is not configured correctly.

Hi,

I am trying to complete the App Customization Specialist super badge step 2. I am getting The 'Shift Hours' field on the 'Volunteer Shift Workers' object is not configured correctly error even though I have put the correct formula.

I have tried (floor(( Shift_End_Time__c - Shift_Start_Time__c )*24)) and FLOOR(( Shift_End_Time__c - Shift_Start_Time__c ) * 24 ). Still unable to get past the error and I have already spent couple of days trying to debug the issue.  

Please let me know any solutions. Thanks in advance.
Best Answer chosen by Abhiram Sheshadri 29
Steven NsubugaSteven Nsubuga
The 'Shift Hours' field on the 'Volunteer Shift Workers' object references the shift hours field on Volunteer Shift. 
It is defined as 
Volunteer_Shift__r.Shift_Hours__c


The shift hours field on Volunteer Shift is defined as 
(Shift_End_Time__c - Shift_Start_Time__c) * 24


 

All Answers

Steven NsubugaSteven Nsubuga
The 'Shift Hours' field on the 'Volunteer Shift Workers' object references the shift hours field on Volunteer Shift. 
It is defined as 
Volunteer_Shift__r.Shift_Hours__c


The shift hours field on Volunteer Shift is defined as 
(Shift_End_Time__c - Shift_Start_Time__c) * 24


 
This was selected as the best answer
Abhiram Sheshadri 29Abhiram Sheshadri 29
Hi Steven,

Thanks for the reply. So the Shift Start Time and End time fields are to be created on Volunteer Shift object instead of Volunteer Shift Workers is it?

And on Volunteer Shift Workers I just have to reference the field?

 
Steven NsubugaSteven Nsubuga
Yes, that is correct.
Abhiram Sheshadri 29Abhiram Sheshadri 29
Thanks a lot for the help. :) Have a nice day
Charan MandapatiCharan Mandapati
When I use "Volunteer_Shift__r.Shift_Hours__c"  I get the error showing 

There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: ETHUVNSB
Close errors

I configured the shift hours field in volunteer shift object just like you said.
Somya Gupta 9Somya Gupta 9
Hi @Charan,
Did you find the solution to this issue?

I am also getting the similar error on configuring Shift Hours on Volunteer Shift workers:
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: FMOXKGLA