T
Twenty•2mo ago
Wayne

Microsoft Outlook Sync Fails

Is there any issue with the Outlook/Microsoft integration? Just noticed that email are not syncing? Says sync failed in the settings, how can I help debug it and how do I rerun the sync when it fails?
19 Replies
Prastoin
Prastoin•2mo ago
Hey @Guillaume, could you please give this a look when you have time to do so ?
Guillaume
Guillaume•2mo ago
Looking at it today ! Thanks for reporting @Wayne
Wayne
WayneOP•2mo ago
Let me know if you need any logs etc @Guillaume is there a way I can resync whilst I wait for a fix?
Guillaume
Guillaume•2mo ago
Remove your email account and start again your synchronization This should work In case you notice any strange log error, let me know (it can help to solve the issue)
charles
charles•2mo ago
@Wayne is your issue solved? Microsoft integration is still quite new and we might have some uncovered edge case that I'm interested into troubleshooting, let me know how it goes
Wayne
WayneOP•2mo ago
@charles no it isn't, I disconnect and reconnect and the sync still failed - I assume it continues server side if I nav away?
charles
charles•2mo ago
yes it is are you seflhosting or on cloud?
Wayne
WayneOP•2mo ago
cloud
charles
charles•2mo ago
ok, I'll take a look at your case this we, do you allow me to impersonate your workspace? could you DM me with your email address (I think I already have it but to doublecheck)
Wayne
WayneOP•2mo ago
I have sent you a DM
thiel
thiel•2mo ago
I've been using it self-hosted recently, and on the first attempt I also encountered the error that the sync had failed. After I removed it and reconnected, it has now been running continuously for more than a day, but at the moment I don't see any new records. Additionally, I've noticed that previously linked calendar entries have disappeared again, but instead old entries have appeared. So where there were current appointments with a person before, now only old appointments are visible, not the current ones. But overall, it's a great thing, and thanks for the implementation! In the long run, it would certainly be cool if you could also reply directly via email at this point, wouldn't it?
Wayne
WayneOP•2mo ago
@charles did you get my DM, issue is still present
thomast
thomast•2mo ago
@charles
charles
charles•2mo ago
@Wayne I'm taking a look today, got your DM
Wayne
WayneOP•2mo ago
@charles I've noticed it now tells me when my mailbox is disconnected and that there is now a reconnect options, however, after I reconnect, nothing seems to happen and it still says "Sync Failed"
Skyh
Skyh•2mo ago
Keeping my eye on this.. I tried to set it up and also seeing "sync failed". Just based off of the web calls I can see Microsoft calling back to my self-hosted instance with an access code, but then I see errors in the container logs suggesting that the access token is undefined.
Guillaume
Guillaume•2mo ago
Thank you guys for your messagesa, I will investigate myself this week. Keep posting your discoveries so that we can find a solution. TBH debugging Microsoft is not a piece of cake 🙂 so the more clue from you, the faster we will solve this !!! So I think I found the root problem. Microsoft make the refresh token expire (while google doesn’t) so the work I did needed a bit of rework. I opened a PR yesterday and it should be present in the next release.
Guillaume
Guillaume•2mo ago
the fix (https://github.com/twentyhq/twenty/pull/10381) has been merged today in our main branch
GitHub
microsoft sync failed by guillim · Pull Request #10381 · twentyhq/t...
This PR is supposed to solve an issue with the syncrhonisation of messages, specifically with microsoft driver. Microsoft calls don't need access_Token so refreshing toekns was not implemen...
Wayne
WayneOP•4w ago
I'll reconnect now and try it - don't all refresh token expire, some just sooner than others I guess!

Did you find this page helpful?