+ Start a Discussion
Parteek Goyal 3Parteek Goyal 3 

Business hours : Error: Start time must be earlier than end time

Hi All,

I want to discuss a business hours senario with you. We are using business hours for calculate Plan date of custom Activities. Our shift timing are 06:30 AM(Monday) to 03:30 AM(Tuesday),06:30 AM(Tuesday) to 03:30 AM(Wednesday) and so on. When I am going to set these hours to business hours, it is throwing the error "Error: Start time must be earlier than end time".

User-added image
Please help me to fix this issue.
Thanks,
Parteek
 
Best Answer chosen by Parteek Goyal 3
Rakesh Thota 15Rakesh Thota 15
Hi Parteek,

Please check this link it may help you to find the solution.

https://salesforce.stackexchange.com/questions/130776/we-have-business-hours-that-operates-11pm-to-8am-but-sf-have-validation-start-ti

Please make sure that you mark it as solved if it helps you.​

Best Regards,
Rakesh Thota.

All Answers

Rakesh Thota 15Rakesh Thota 15
Hi Parteek,

Please check this link it may help you to find the solution.

https://salesforce.stackexchange.com/questions/130776/we-have-business-hours-that-operates-11pm-to-8am-but-sf-have-validation-start-ti

Please make sure that you mark it as solved if it helps you.​

Best Regards,
Rakesh Thota.
This was selected as the best answer
Malni Chandrasekaran 2Malni Chandrasekaran 2
Hi Prateek,
The StartTime and EndTime field in BusinessHours object  is a time field (not DateTime) and hence it can not set the business hours lies between two dates.
The suggestion is may be you can set it in the timezone where the timing falls in a single day (after making sure there is no other conflict).

Please mark it best answer if you find it useful.
Malni Chandrasekaran 2Malni Chandrasekaran 2
Please share if you find any other solution for this.
Thanks