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

The '# of Volunteers Still Needed' field on the 'Volunteer Shift' record is not working as expected .. How to resolve???
Hi All, I am having problem in resolving an error in the 'Customization Specialist superbadge' . The error message is 'The '# of Volunteers Still Needed' field on the 'Volunteer Shift' record is not working as expected'. I have tried all the options
i.e. IF( Desired_of_Volunteers__c - Shifts_Taken__c > 0, Desired_of_Volunteers__c - Shifts_Taken__c , 0)
and Max(Desired_of_Volunteers__c - Shifts_Taken__c,0) also.
But no luck .So it's now no more fun!! Kindly help me in solving this soon ...
i.e. IF( Desired_of_Volunteers__c - Shifts_Taken__c > 0, Desired_of_Volunteers__c - Shifts_Taken__c , 0)
and Max(Desired_of_Volunteers__c - Shifts_Taken__c,0) also.
But no luck .So it's now no more fun!! Kindly help me in solving this soon ...
Refer below link which has the solution as BestAnswer for same error.
https://developer.salesforce.com/forums/?id=9060G0000005X9HQAU
https://developer.salesforce.com/forums/?id=9060G0000005XD9QAM
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.
Best Regards,
Sandhya
Yes I have tried using the above in my formula
i.e. IF((Desired_of_Volunteers__c - Shifts_Taken__c) > 0, Desired_of_Volunteers__c - Shifts_Taken__c, 0)
But still the error persists. Is there anything that I am missing here apart from the formula field to be created.. Kindly guide me.
Thanks,
Rakesh
This formula worked for me
Max((Desired_of_Volunteers__c - Shifts_Taken__c), 0)
I was able to solve that issue by enabling the field level security permission on Shift End Date field on Volunteer Shift Object.
This worked for me.
Please mark this answer as best if it helps so that others facing the same issue
will find it useful.
@Rakesh KumarP
The '# of Volunteers Still Needed' field on the 'Volunteer Shift' record is not working as expected
This is The true Formula:
IF((Desired_of_Volunteers__c - Shifts_Taken__c) > 0, Desired_of_Volunteers__c - Shifts_Taken__c, 0)
Check the dependent fields bottom.
____________
_________
Execute Anonymous: List<RecordType> rtypes = [SELECT Id FROM RecordType WHERE SObjectType='Account' AND Name='Volunteer Organization Account' LIMIT 1];
I had copied and pasted my record type name and had 'Volunteer Organization Account record type' instead of 'Volunteer Organization Account' and oddly, it produced this error. Once corrected, it sailed past the field itself. Hope this helps some people.
As you said I have tried changing the API name but still getting this error "
The 'Desired # of Volunteers' field is not the correct data type." can you help me with this error .