BusinessHours object & fields not being recognised
Issue #1174
resolved
When you have the following code it shows all the BusinessHours fields & object as invalid:
List<BusinessHours> bhs = [SELECT Name,TimeZoneSidKey, SundayStartTime, SundayEndTime, MondayStartTime, MondayEndTime, TuesdayStartTime, TuesdayEndTime, WednesdayStartTime, WednesdayEndTime, ThursdayStartTime, ThursdayEndTime, FridayStartTime, FridayEndTime, SaturdayStartTime, SaturdayEndTime FROM BusinessHours WHERE IsActive = TRUE AND Name != 'Office Hours'];
Comments (6)
-
repo owner -
reporter Weird
I'll refresh offline symbol table and try again.
Thanks
Justin
-
reporter Ok. Sorry about that a full rebuild of the offline symbol table resolved the issue.
thanks.
-
reporter - changed status to resolved
Full rebuild resolved issue.
-
repo owner Not a problem at all, though I'm curious about how you ended up with an OST without that object to start. Please let me know if that happens again.
-
reporter I'm thinking I killed Webstorm during the generation of the OST as it had frozen and so possibly left the OST in an incomplete state?
- Log in to comment
Hmmmm...I'm unable to reproduce that behavior. Here's what the provided statement looks like for me:
and that resolves to the following entry for
BusinessHours
in the offline symbol table:It sounds like that object isn't being included in your OST. Can you check for its presence? If it's missing, do you mind regenerating your OST to see if that brings it in? If it doesn't, we'll need to determine why the object isn't being included.