FreeBusy Method is returning wrong information in AM Time Frame!!

Hi,

I am using outlook object's freebusy method to determine if a particular room (Suppose it is Room X) is free in a particular time period and if it is free, then I am booking it (I booked Room X). Now, when I again searching for the available room in same time frame, then the same room is showing as available again (Room X is showing again).

In the UI, it is showing busy (which is correct), however, when I pull the information from freebusy method, it is showing free

This is happening only when I booked the Room in any AM time period. If I book the Room in any PM time frame, then the room is not showing available again in that time frame.

Can someone please guide me, why this issue may be happening?

Update: I further find out that this issue is happening only when I book the room between a particular time frame (12: 30 AM - 05:30 AM) and then the same room is showing free

October 3rd, 2013 12:20am

Hi Vijay,

This is a forum for Office developer such as VBA,Visual Studio tools for Office(VSTO),OpenXML and so on.

Since it is an Outlook product issue, I'd like to move it on Outlook IT Pro Discussions forum for more help.

Thanks for your understanding.

Free Windows Admin Tool Kit Click here and download it now
October 4th, 2013 2:48am

Could you please confirm - What Version Of exchange you have

What version of Client are you using Sp details Etc.

What is the availibility time frame set on Calendar -Working Hours Restriction etc .

Is there any delegation to your Calendar Mailbox -Eg . If some one is owner or manages the approval process ?

October 4th, 2013 3:06am

Thanks Anand for the reply. Please check original post again as I have updated it with some information.

Exchange Server - 2007

Client - Microsoft Office Outlook 2007 (12.0.6680.5000) SP3 MSO (12.0.6662.5000)

Can you please let me know, how to check the availability time frame and whose availability I need to check - Mine or Room's?

I check my Outlook's Calendar Settings (by going to Tools > Options > Preferences tab > Calendar Options )and here's the screenshot:


I checked with my MIS Team and there are no delegates.

Free Windows Admin Tool Kit Click here and download it now
October 4th, 2013 4:37am

Let me add Some Clarity here :

In the UI, it is showing busy (which is correct), however, when I pull the information from freebusy method, it is showing free -

What is the mode you are connected -Online or cached

Can you check the same on Webmail and update .

Free /Busy usually takes some time to update if in Cached Mode .

If you can see the information in UI mode as correct there is no reason why Free Busy will not reflect the same until there is something broken on Exchnage with your OAB generation .

October 4th, 2013 6:55am

Anand,

I think you are getting wrong issue here. The mode is online

What I am saying is:

FreeBusy information is correctly getting reflected in the UI for rooms, however, when I am reading FreeBusy information of the room using freebusy method of Outlook Object Model, then I am not getting the room as busy whereas it is already been booked

And all this is happening in specific period of time - between 12:30 AM and 05:00 AM

I checked with my MIS department and they are saying that there is nothing broken on Exchange with OAB generation as the code is reading freebusy information correctly all the times except the above mentioned time period

What may be the issue here??

Free Windows Admin Tool Kit Click here and download it now
October 4th, 2013 5:44pm

Ok , Can you please check in Event viewer if you are getting any error message relating -Free Busy

For Eg :

Event Type: Warning
Event Source: Outlook
Event Category: None
Event ID: 25
Date: <var>date</var>
Time: <var>time</var>
User: N/A
Computer: <var>Computer_name</var>
Description:
Unable to save free/busy information. Unable to open the free/busy information

Also I would like you to Close Outlook and try opening - outlook.exe /cleanfreebusy  using command line switch

October 5th, 2013 1:21am

I checked all the logs related to Outlook in Event Viewer > Windows > Application, however, there was not a single error log with warning/error and free/busy

Also, I tried to launch outlook with cleanfreebusy switch, however, the results are same.

I think this has something to do with timezone settings as it is happening in a certain time period only and issue is with the code only.

Code is not able to read free/busy information in a particular time period but I know know why it is happening

I am using the following code:

minperchar=DateDiff("n"cdate(str(0))&" 12:00:00 AM",t_start)/duration

If mid(objAL.AddressEntries(i).getfreebusy(t_start,duration,true),minperchar+1,1) = 0 Then

Room is free

End If

Am I using wrong code?

Free Windows Admin Tool Kit Click here and download it now
October 5th, 2013 5:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics