-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Office.context.mailbox.item.saveAsync fails during OnSend function on Outlook for web #5345
Comments
Here are some similar issues that might help you. Please check if they can solve your problem.
Possible solution (Extracted from existing issue, might be incorrect; please verify carefully) Solution 1:One reason why this can happen is if your add-in does not register for the ItemChanged event. Can you add support for that to your add-in (if you haven't already) and see if that resolves this issue? If your add-in doesn't support this event, the Reference: Solution 2:This scenario occurs when calling Office.context.mailbox.item.saveAsync on a new Calendar item that has not been sent yet. This is a known issue and we are looking into a solution to resolve this so that the API can be used as designed. The API should behave as designed in Mail and on Existing Calendar items. Reference: |
These suggestions sadly do not seem to help Also, the exact same code used to work last week with no problems (for multiple months) |
Our telemetry indicates high amount of hanging Internally we Timeout and Cancel them after 30 seconds, but this API is a crucial peace of our UX, and we wish we could see less of such hanging calls. Similar situation is with the following APIs:
It comes together with the "Error: [Office API error] name: Internal Error, code: 5001, message: An internal error has occurred., diagnostics: undefined" and "Error: [Office API error] name: GenericResponseError, code: 9020, message: An internal error has occurred., diagnostics: undefined" errors codes. |
Thank you @victorcalarasu for reporting this. |
@patilganesh-msft Thank you for your response, I will ask for permissions to share the logs with exextoc. |
@patilganesh-msft I've added exextoc to my private repository containing some logs. Let me know if I can help in any other way. |
@patilganesh-msft @exextoc Any updates regarding this topic? it's important for us |
Hello, getting this behaviour as well - any ideas on what might be causing this or any fix or workaround that could facilitate the current situation..? |
Thank you for providing the logs. |
Thank you for your response @exextoc ! This still makes me wonder about this: Why did our code, between the 30th/31st of January stop working suddenly? And why is it working fine through the Task Pane or if we save the draft manually? It's just the saveAsync function which started failing and returning the result from the picture in the issue |
Could the release on the 30th of January impact this in any way? (https://learn.microsoft.com/en-us/officeupdates/current-channel#version-2501-january-30) |
Having the same issue here... Saving the item from a side panel works fine but saving the item from the OnSend event causes the same issue. Error: 9021 And like @victorcalarasu said, our code was working fine earlier but it stopped working around the 30/31 of January. Any workarounds? |
We are facing exactly the same issue. It's quite concerning because this is not the first time we are encountering problems of this kind. It used to work, but suddenly, from one day to the next, nothing works anymore. I understand that there is a big system behind it, but are you able to guarantee stability for your product to your clients? Without wanting to sound accusatory, are you ready to welcome millions of users, or are you still in a testing phase? |
Hey @victorcalarasu , thanks for reporting this issue- we are able to reproduce the same. We have tracked this item in our backlog. However, we have no timelines to share at this point. @dmitriikashin-outreach - We have only tracked the issue with Internal Tracking ID: 5372914 |
hello @mobisw-msft , thank you for you response. |
I concur with @victorcalarasu , this issue is impacting around 2000 of our users. |
@mobisw-msft We are also getting issues with |
@mobisw-msft Also forgot to mention, but like @gauravsoni119 said, when saving from a taskpane it works properly. Its only from the ItemSent event that the issue is present. |
I have an Add-in created for Outlook Web which adds headers to emails in order to save them securely. It operated both through Task Pane and on the OnSend functionality of Outlook Web.
Your Environment
Expected behavior
When pressing the Outlook Send Button (OnSend function), the mail is sent successfully.
What I want to do is get the draft ID in order to send the item using Microsoft Graph API
Current behavior
When pressing the Outlook Send Button the Office.context.mailbox.item.saveAsync() function fails with :
error: OSF_DDA_Error
code: 9021
message: "Connection error occurred while trying to save the item on the server."
name: "SaveError"
this wasn't happening before and we didn't do any change here.
If I save the draft manually, gets automatically saved by Outlook or do the same flow using the Task Pane (opening the add-in through the Apps button), it works correctly.
It is only happening on new emails.
Steps to reproduce
Call the saveAsync() function during the onSend process.
Link to live example(s)
Provide additional details
Context
Mails can no longer be sent.
What I want to do is get the draft ID in order to send the item using Microsoft Graph API
Useful logs
The text was updated successfully, but these errors were encountered: