troubleshooting Question

Microsoft Exchange WebServices FindAppointments now return "Expected an item Id but received a folder Id." for Public Calendars

Avatar of Éric Moreau
Éric MoreauFlag for Canada asked on
Visual Basic.NETExchangeMicrosoft 365C#
3 Comments1 Solution469 ViewsLast Modified:
I have been using the Microsoft Exchange WebServices for a few months without any issues to read the appointments from a Public Calendar in Office 365.

Since Tuesday (August 28), the same code without any modifications (the very same build) is now triggering an "Expected an item Id but received a folder Id." exception. It ran fine on Monday.

I found out that my error is happening on this specific instruction:
FindItemsResults<Appointment> lstAppointments = ((CalendarFolder) objFindFoldersCalendar.Folders[0]).FindAppointments(objCalendarView);

Open in new window


Is somebody is aware of anything changed in Office 365 regarding public folders (I can read regular calendar without issues).

It is mostly the same code found at https://www.emoreau.com/Entries/Articles/2018/05/A-Net-application-to-extract-appointments-from-Office-365-public-calendars.aspx
ASKER CERTIFIED SOLUTION
D Richter

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros