If Add-In is pinned in the latest Outlook 2016 (16.0.9226.2114) for ~60 minutes ItemChanged event is not being fired, current Item has old context from some email message which was opened a long time ago. It seems that https://appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.02.js has been updated which caused the regression.
We see the following errors in the console: SEC7120: Origin https://staging-addinsf.smartcloudconnect.io not found in Access-Control-Origin header main.html This error could be related to No stack trace info when error happens in Office JS API
SCRIPT7002: XMLHttpRequest: Network Error 0x80700013, Could not complete the operation due to error 80700013. Main.html
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied
Note, when Add-In is re-loaded (mouse right click -> "Reload") the issue is gone and everything works fine.
User contributions licensed under CC BY-SA 3.0