Erik Cederstrand

Results 206 comments of Erik Cederstrand

Also, it would be great if you can post the full XML response containing the error message from the server when this happens.

It’s great that you can use it as a workaround, but I’d really like if you can post the folders printed in the error case. That may give a hint...

Ok, then it must be a folder somewhere else. Can you try this (testing all folders under root)? ```python from exchangelib.folders import FolderCollection, SingleFolderQuerySet for f in FolderCollection(account=account, folders=[account.root]).find_folders(): try:...

Super weird. None of that triggered an `ErrorInvalidSchemaVersionForMailboxVersion` exception, which I was hoping for. The two `ErrorAccessDenied` are expected and handled gracefully by the code behind `account.root.tree()`

For the people reporting this, does the issue still appear in exchangelib 5.3.0? And can it be triggered with a simple `account.root.tree()`?

Thanks for the stack trace! It reveals that it's an issue with distinguished folders, not child folders of the root folder. This snippet should reveal the culprit(s): ```python from exchangelib.folders...

Thanks for the output! That narrows down the problem considerably. It seems these distinguished folders are not supported on your Exchange version, which means we can just annotate these folders...

The referenced commit should fix the issue for you, @laurachan If others still have the issue even after https://github.com/ecederstrand/exchangelib/commit/be0cd9f48997e31158690cc2cd5ea53fa9610ec5 then please run the code posted in https://github.com/ecederstrand/exchangelib/issues/1301#issuecomment-2098478709 and post the...

@quzhi1 I'm a bit sceptical whether you were actually running exchangelib at that commit, because when I run the test those folders are not in the list of distinguished folders...