New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
o365 problem with finditems / (calendar)view for public folder calendar #204
Comments
Can you paste in your fldId value? Don't worry, it doesn't contain any PII. |
Here you are |
Yep - that's a public folder id. No issues there. Which line does it fail on? Is it the FindAppointments call or the CalendarFolder.Bind? Also, do you by chance have the HTTP response headers, in particular the RequestId and X-BEServer headers? |
It binds fine. cal object has all the properties one would expect in debug mode. |
Does this work for you against a non-public folder calendar? |
yes that works fine. |
Hi @frombalinium , do you happen to have the requestID and X-BEServer headers that @davster asked for? I wrote a LinqPad script to query the public folders accessible to a user and show the calendar items from the first calendar folder it finds; perhaps you can run it (or a modified version) and capture the response headers with Fiddler? That might give us a repro and additional information to work with. |
Sorry that I missed that part of Dave's request. Actually I was able to file a support request today and the engineer (Pedro) looked at the EWS server logs today using my trace. He said that on monday he was able to proceed with the team. If you are able to look at it already that would be great. 29-8-2018 21:03:09 : EwsRequest --- <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 29-8-2018 21:03:09 : EwsResponseHttpHeaders --- 29-8-2018 21:03:09 : EwsResponse --- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> |
I tried the script @fpintos but it uses oauth so connects me to my personal account that I have not set up. Instead I ran the above {cal.FindAppointments(cv) } code and cached it with fiddler for you if it is of any help. It does essentialy the same as your script. POST /EWS/Exchange.asmx HTTP/1.1 HTTP/1.1 200 OK |
That is great. Thank you for the trace information. Could you do me a favor and tell me what the property name is that you are using? It is marked as removed in your traces. With that information, I should be able to reproduce it on our side. I am curious if that extended property that you are specifying actually maps to a well-known schema property which happens to have a strong type. This could explain why it is complaining about a wrong ID type. |
@davster |
We are having exactly the same problem with "FindItems". |
It seems to be a bug in the Office 365 API. I suddenly have the same problem a few days ago. Also at FindFolders(). |
I have reproduced this issue on my German tennant using Ews Editor I have created a folder using Outlook. It will not load in Ews Editor. Exception is thrown in (propset) CalendarFolder.Load I was trying to create a Calendar with Ews Editor and it throws this Exception from Folder.Bind Is it possible that recently some updates were applied to Exchange Online. |
I'm facing the same issue since a few days ago (also German versions -but i dont think it has something to do with the langauge.. more with the serviceversion behind) |
There is a workaround for this. Having said that, it is clearly an issue on Microsoft's end. I am hoping they roll-out a fix for this ASAP. Note: It appears that this error does not affect ALL O365 tenants. Some tenants works fine while others encounter this error despite running the same code. |
Our Tenant is in the US but I'm working from Germany, don't know if this matter. In my case I tried to open a PF Contact Group. Changed my PowerShell Script Thanks for the Workaround @ngyongzhen |
@ngyongzhen ok.. Thx! - but this doesnt fit to my requirements i'm binding a Folder in c# like this:
on folder.Load the exception is raised. |
We identified the problem on the server side and I checked in a fix for it last night. I am going to see if we can push out the changes quickly to unblock you. I am currently backporting the fix to the dominant build in production so this should roll out in the next few days. Sorry for the inconvenience. |
Thank you for fixing this! |
any ETA on when the fix will be up? |
Any ETA on this? The "work around" does not work for me, and this is killing a production application. |
The fix is checked in and I am currently backporting the changes to previous builds. Those should go in today and then a few days for rollout (estimate). |
Nice |
Thank you! |
Anyone know if there is a Service Health advisory or incident ID for this? |
@davster can you confirm this fix is deployed? I've tested and no longer seeing this issue. |
@Cadburry, I've continued testing and also still see this issues intermittently. |
The fix is rolling out WW. As such, there will be some servers that have been patched and some that have not which will give you the intermittent behavior you are seeing. This could even be true for a single mailbox as the database holding the mailbox could be load balanced to another server, etc... But we should be in this state for only a short period of time. |
@davster Thanks for the update. Still no working for us. Are there any channels where we can check if the fix has been rolled out into our tenant? service health, twitter etc? |
@davster Thanks for your efforts! Please let us know once the fix is rolled out WW. |
Thanks guys @microsoft for monitoring this forum and picking it up. |
@frombalinium - thanks for the input. I have forwarded your concerns about your support experience to our internal group to see how we can improve. I agree that the experience that you described above isn't acceptable. The various dev teams do subscribe to these channels, so there is definitely MSFT presence on these from the product side of things. Let me know if you run into any more related issues. |
Hey, On the same day this issue was logged we also noticed a script stopped working. I've boiled it down to what we send and what we get back...
Response...
The error just isn't true, the folder ID is perfectly fine and there are those items to find within it. You said a bug fix was being applied worldwide but given no way to track this :(. I've opened a ticket (number 11536035) with the 365 support team but got nothing back - probably because they're confused on what on earth this Github issue is about (as I linked to it). If you have an alternate way of doing this request (an XML example like above would be useful - as this is a bash script using curl, yes BASH :P) that'd be handy in the meanwhile. I've looked at the workarounds supplied but I can't see how they'd translate to what would actually be sent XML wise. |
The error is a different issue. The previous error was "Expected an item Id but received a folder Id". This one is saying that it cant find something in the store. Can you give me a request id, X-BEHeader and request Date/time from a repro? These come from the response HTTP headers. Out of curiosity, what happens if you call GetFolder on that folder? Do you get folder information back or the item not found again? And then, what if you remove the additional properties from the FindItem request - does that work, or same deal? As an aside, you are missing your BaseShape element in your request.
It works because BaseShape happens to have a defult value of IdOnly which maybe you are taking advantage of. I doubt we will change that, so you are probably ok there. |
If I follow you correctly, you are after the below?
|
What I will add is this. The issue we are having (albeit admittedly we're just using a straight XML file with curl)... occurred on exactly the same day as this other problem and the same XML was working fine before that and returning results. Noticed a few more people talking about it over here too... |
I pulled your logs for the above request, and it is complaining that it can't find the public folder (error should be folder not found, not item not found). I have looped in the PF feature team. In the meantime, try adding an X-AnchorMailbox header and set it to the smtp address of your public folder mailbox to see if that works. |
Yeah that is one of the things I've already tried, didn't have any effect. |
Anyone experience this issue with the EWS API? |
@frukeus - Could you provide the HTTP response headers for the failed request? I would like to confirm that it is the same issue as @Lantizia is seeing. I forwarded this to the public folders team to investigate as well. Actually, this one might be a bit different as the error message talks about the mailbox being inaccessible. Regardless, the response headers would help. |
Transfer-Encoding chunked That's all tt I could extract |
Per the PF team: We set X-AnchorMailbox to handle cross-forest scenarios where
This tenant has only one PF mailbox and it is in Eurp192. Default public folder mailbox for the given user can be found as follows: As the tenant has only 1 PF mailbox, it would be the default public folder mailbox for all the users. |
This issue seemed to have been resolved by itself over the weekend.
|
For the hell of it I thought I'd try an X-AnchorMailbox that is not my mailbox and it has worked! Whereas I have been using... Now that I've got that working... I thought I'd try it again without the X-AnchorMailbox. BINGO, it works fine now. It's as though making just that one request with X-AnchorMailbox has made it realise it needs to jiggle things about on the 365 servers and now it's not needed any more. Very frustrating, especially for all these people in the forum link below who have been experiencing this for over a month (and I've yet to have any decent reply back from an open case with Microsoft for now 10 days on this)... |
Is anyone still having this problem?? I am and can't understand why the fix didn't resolve it |
Hi David,
Sorry to bother you and spamming on this old issue. But you seem to be a shortcut to the level I need to be.
I am a ISV and some companies use my EWS code. A lot of them on O365
The code initiates pull subscriptions and polls them later on (within the timeout period)
Currently I have a office 365 user where this stopped working.
We can still initiate the pull subscription but when we try to poll it, it's gone. The error we get is
The SMTP address has no mailbox associated with it.
Has there been a recent update that could have broken something?
regards,
John in 't Veld
OpusFlow
…________________________________
Van: David Sterling [mailto:notifications@github.com]
Verzonden: maandag 10 september 2018 18:15
Aan: OfficeDev/ews-managed-api
CC: John in 't Veld; Mention
Onderwerp: Re: [OfficeDev/ews-managed-api] o365 problem with finditems / (calendar)view for public folder calendar (#204)
The fix is rolling out WW. As such, there will be some servers that have been patched and some that have not which will give you the intermittent behavior you are seeing. This could even be true for a single mailbox as the database holding the mailbox could be load balanced to another server, etc... But we should be in this state for only a short period of time.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#204 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ao2x738ToxanGpbPxeyq3IF2vGMapogEks5uZpADgaJpZM4WTkMO>.
|
As of yesterday it no longer works for office 365 while on-prem exchange (any version) is fine
Error: Microsoft.Exchange.WebServices.Data.ServiceError.ErrorCannotUseFolderIdForItemId
or in text "Expected an item Id but received a folder Id."
this example DOES work as long as you don't restrict it
Dim View1 As New ItemView(10)
View1.Traversal = ItemTraversal.Shallow
Dim Result As FindItemsResults(Of Item) = exService.FindItems(fldID, View1)
this does NOT work and produces above error
Dim cv As New CalendarView(DateTime.Now.AddYears(-1), DateTime.Now.AddDays(-1))
Dim cal As CalendarFolder = CalendarFolder.Bind(exService, fldID)
cv.MaxItemsReturned = 5
Dim items As FindItemsResults(Of Appointment) = cal.FindAppointments(cv)
The text was updated successfully, but these errors were encountered: