Sync error for M365 #210

Open
opened 2026-04-05 16:17:04 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @megamaster4 on 9/22/2025

Describe the bug
When trying to sync the M365 mailbox, I get the following error:

Last sync message: Sync cycle completed with 1 error(s): Failed to process mailbox for <EMAIL>#EXT#@<EMAIL>.onmicrosoft.com: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.

I've redacted the email part, but it's basically my personal email with the @ replaced with a _ as it is not allowed in the User principle name.

I have followed the steps, including api permissions, from the M365 Guide.

To Reproduce
Steps to reproduce the behavior:

  1. Add M365 ingestion
  2. Authorisation is successful
  3. Get the stated error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

System:

  • Open Archiver Version: 0.3.3
  • Docker

Relevant logs:
Any relevant logs (Redact sensitive information):

<html><body>
<!--StartFragment-->
2025/09/22 15:20:01 | stdout | [0] [0]     errors: "Failed to process mailbox for <EMAIL>#EXT#@<EMAIL>.onmicrosoft.com: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present."
-- | -- | --
2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>"
2025/09/22 15:20:01 | stdout | [0] [0] [13:20:01.913] ERROR (301): Sync cycle finished with errors.
2025/09/22 15:20:01 | stdout | [0] [0]     isInitialImport: false
2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>"
2025/09/22 15:20:01 | stdout | [0] [0] [13:20:01.818] INFO (301): Sync cycle finished job started
2025/09/22 15:20:01 | stdout | [0] [0]     }
2025/09/22 15:20:01 | stdout | [0] [0]       "headers": {}
2025/09/22 15:20:01 | stdout | [0] [0]       "body": "{\"code\":\"Request_ResourceNotFound\",\"message\":\"Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.\",\"innerError\":{\"date\":\"2025-09-22T13:20:01\",\"request-id\":\"a1b84a43-fc1a-4c40-a68a-d92008ca3959\",\"client-request-id\":\"51850b5a-d9af-ecb3-3e5d-2284b5b2d3fb\"}}",
2025/09/22 15:20:01 | stdout | [0] [0]       "date": "2025-09-22T13:20:01.000Z",
2025/09/22 15:20:01 | stdout | [0] [0]       "requestId": "a1b84a43-fc1a-4c40-a68a-d92008ca3959",
2025/09/22 15:20:01 | stdout | [0] [0]       "code": "Request_ResourceNotFound",
2025/09/22 15:20:01 | stdout | [0] [0]       "statusCode": 404,
2025/09/22 15:20:01 | stdout | [0] [0]               at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025/09/22 15:20:01 | stdout | [0] [0]               at rejected (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:168:69)
2025/09/22 15:20:01 | stdout | [0] [0]               at Object.throw (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:177:57)
2025/09/22 15:20:01 | stdout | [0] [0]               at step (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:196:27)
2025/09/22 15:20:01 | stdout | [0] [0]               at GraphRequest.<anonymous> (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphRequest.js:315:84)
2025/09/22 15:20:01 | stdout | [0] [0]               at GraphErrorHandler.getError (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:87:24)
2025/09/22 15:20:01 | stdout | [0] [0]               at Object.__awaiter (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:166:16)
2025/09/22 15:20:01 | stdout | [0] [0]               at new Promise (<anonymous>)
2025/09/22 15:20:01 | stdout | [0] [0]               at /app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:170:75
2025/09/22 15:20:01 | stdout | [0] [0]               at Object.next (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:177:57)
2025/09/22 15:20:01 | stdout | [0] [0]               at step (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:196:27)
2025/09/22 15:20:01 | stdout | [0] [0]               at Function.<anonymous> (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:91:48)
2025/09/22 15:20:01 | stdout | [0] [0]               at GraphErrorHandler.constructErrorFromResponse (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:63:22)
2025/09/22 15:20:01 | stdout | [0] [0]               at new GraphError (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphError.js:34:28)
2025/09/22 15:20:01 | stdout | [0] [0]           Error: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.
2025/09/22 15:20:01 | stdout | [0] [0]       "stack":
2025/09/22 15:20:01 | stdout | [0] [0]       "message": "Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.",
2025/09/22 15:20:01 | stdout | [0] [0]       "type": "GraphError",
2025/09/22 15:20:01 | stdout | [0] [0]     err: {
2025/09/22 15:20:01 | stdout | [0] [0]     userEmail: "<EMAIL>"
2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>"

<!--EndFragment-->
</body>
</html>

Additional context
Add any other context about the problem here.

Thank you in advance, I am really eager to work with this amazing looking software!

*Originally created by @megamaster4 on 9/22/2025* **Describe the bug** When trying to sync the M365 mailbox, I get the following error: ``` Last sync message: Sync cycle completed with 1 error(s): Failed to process mailbox for <EMAIL>#EXT#@<EMAIL>.onmicrosoft.com: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present. ``` I've redacted the email part, but it's basically my personal email with the `@` replaced with a `_` as it is not allowed in the User principle name. I have followed the steps, including api permissions, from the [M365 Guide](https://docs.openarchiver.com/user-guides/email-providers/microsoft-365.html). **To Reproduce** Steps to reproduce the behavior: 1. Add M365 ingestion 2. Authorisation is successful 3. Get the stated error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **System:** - Open Archiver Version: 0.3.3 - Docker **Relevant logs:** Any relevant logs (Redact sensitive information): ```html <html><body> <!--StartFragment--> 2025/09/22 15:20:01 | stdout | [0] [0]     errors: "Failed to process mailbox for <EMAIL>#EXT#@<EMAIL>.onmicrosoft.com: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present." -- | -- | -- 2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>" 2025/09/22 15:20:01 | stdout | [0] [0] [13:20:01.913] ERROR (301): Sync cycle finished with errors. 2025/09/22 15:20:01 | stdout | [0] [0]     isInitialImport: false 2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>" 2025/09/22 15:20:01 | stdout | [0] [0] [13:20:01.818] INFO (301): Sync cycle finished job started 2025/09/22 15:20:01 | stdout | [0] [0]     } 2025/09/22 15:20:01 | stdout | [0] [0]       "headers": {} 2025/09/22 15:20:01 | stdout | [0] [0]       "body": "{\"code\":\"Request_ResourceNotFound\",\"message\":\"Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.\",\"innerError\":{\"date\":\"2025-09-22T13:20:01\",\"request-id\":\"a1b84a43-fc1a-4c40-a68a-d92008ca3959\",\"client-request-id\":\"51850b5a-d9af-ecb3-3e5d-2284b5b2d3fb\"}}", 2025/09/22 15:20:01 | stdout | [0] [0]       "date": "2025-09-22T13:20:01.000Z", 2025/09/22 15:20:01 | stdout | [0] [0]       "requestId": "a1b84a43-fc1a-4c40-a68a-d92008ca3959", 2025/09/22 15:20:01 | stdout | [0] [0]       "code": "Request_ResourceNotFound", 2025/09/22 15:20:01 | stdout | [0] [0]       "statusCode": 404, 2025/09/22 15:20:01 | stdout | [0] [0]               at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 2025/09/22 15:20:01 | stdout | [0] [0]               at rejected (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:168:69) 2025/09/22 15:20:01 | stdout | [0] [0]               at Object.throw (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:177:57) 2025/09/22 15:20:01 | stdout | [0] [0]               at step (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:196:27) 2025/09/22 15:20:01 | stdout | [0] [0]               at GraphRequest.<anonymous> (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphRequest.js:315:84) 2025/09/22 15:20:01 | stdout | [0] [0]               at GraphErrorHandler.getError (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:87:24) 2025/09/22 15:20:01 | stdout | [0] [0]               at Object.__awaiter (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:166:16) 2025/09/22 15:20:01 | stdout | [0] [0]               at new Promise (<anonymous>) 2025/09/22 15:20:01 | stdout | [0] [0]               at /app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:170:75 2025/09/22 15:20:01 | stdout | [0] [0]               at Object.next (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:177:57) 2025/09/22 15:20:01 | stdout | [0] [0]               at step (/app/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.js:196:27) 2025/09/22 15:20:01 | stdout | [0] [0]               at Function.<anonymous> (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:91:48) 2025/09/22 15:20:01 | stdout | [0] [0]               at GraphErrorHandler.constructErrorFromResponse (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:63:22) 2025/09/22 15:20:01 | stdout | [0] [0]               at new GraphError (/app/node_modules/.pnpm/@microsoft+microsoft-graph-client@3.0.7/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphError.js:34:28) 2025/09/22 15:20:01 | stdout | [0] [0]           Error: Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present. 2025/09/22 15:20:01 | stdout | [0] [0]       "stack": 2025/09/22 15:20:01 | stdout | [0] [0]       "message": "Resource '<EMAIL>' does not exist or one of its queried reference-property objects are not present.", 2025/09/22 15:20:01 | stdout | [0] [0]       "type": "GraphError", 2025/09/22 15:20:01 | stdout | [0] [0]     err: { 2025/09/22 15:20:01 | stdout | [0] [0]     userEmail: "<EMAIL>" 2025/09/22 15:20:01 | stdout | [0] [0]     ingestionSourceId: "<SOURCEID>" <!--EndFragment--> </body> </html> ``` **Additional context** Add any other context about the problem here. Thank you in advance, I am really eager to work with this amazing looking software!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#210