microsoft sync failed

When I check the logs, I see the message below:
[
worker-1 | MessageImportException [Error]: Error: Error: TypeError: Cannot read properties of undefined (reading 'includes')
worker-1 | at MessageImportExceptionHandlerService.handleUnknownException (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.js:128:40)
worker-1 | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
worker-1 | at async MessageImportExceptionHandlerService.handleDriverException (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.js:72:21)
worker-1 | at async MessagingMessageListFetchJob.handle (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/jobs/messaging-message-list-fetch.job.js:82:13)
worker-1 | at async MessageQueueExplorer.invokeProcessMethods (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:113:17)
worker-1 | at async MessageQueueExplorer.handleProcessor (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:104:13)
worker-1 | at async /app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:79:17
worker-1 | at async Worker.processFn (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/drivers/bullmq.driver.js:43:13)
worker-1 | at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:520:32
worker-1 | at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:747:24) {
worker-1 | code: 'UNKNOWN',
worker-1 | userFriendlyMessage: undefined
worker-1 | }
worker-1 | ]
[
worker-1 | MessageImportException [Error]: Error: Error: TypeError: Cannot read properties of undefined (reading 'includes')
worker-1 | at MessageImportExceptionHandlerService.handleUnknownException (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.js:128:40)
worker-1 | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
worker-1 | at async MessageImportExceptionHandlerService.handleDriverException (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/services/messaging-import-exception-handler.service.js:72:21)
worker-1 | at async MessagingMessageListFetchJob.handle (/app/packages/twenty-server/dist/src/modules/messaging/message-import-manager/jobs/messaging-message-list-fetch.job.js:82:13)
worker-1 | at async MessageQueueExplorer.invokeProcessMethods (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:113:17)
worker-1 | at async MessageQueueExplorer.handleProcessor (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:104:13)
worker-1 | at async /app/packages/twenty-server/dist/src/engine/core-modules/message-queue/message-queue.explorer.js:79:17
worker-1 | at async Worker.processFn (/app/packages/twenty-server/dist/src/engine/core-modules/message-queue/drivers/bullmq.driver.js:43:13)
worker-1 | at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:520:32
worker-1 | at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:747:24) {
worker-1 | code: 'UNKNOWN',
worker-1 | userFriendlyMessage: undefined
worker-1 | }
worker-1 | ]
No description
5 Replies
anushka.singh
anushka.singhOP2w ago
Does anyone know what is the root cause of this problem? I have tried to reconnect my account multiple times. Everytime it tries importing for a long time and then puts a message saying Sync Failed.
mide
mide2w ago
It looks like the error happens because something in the code is undefined when it tries to use .includes. This could be due to a missing field in the messages being imported. Can you check if all messages in your account have the expected structure, or share which service/account you’re syncing? @anushka.singh
Prastoin
Prastoin2w ago
Hello @anushka.singh what twenty version are you using ? It seems like the type error comes from the exception handler already
anushka.singh
anushka.singhOP2w ago
I am using version 1.6.7 I am trying to sync all of my microsoft 365 emails and calendar. I am unable to figure out which exact record is causing this error. The logs don't help in that as much and so far I haven't found anything in my emails either. I do have like probably over 3000 contacts, but I'm assuming the volume is not something that would cause an error
Prastoin
Prastoin7d ago
Hey any metrics regarding your pod cpu usage ?

Did you find this page helpful?