Skip to content

Office.context.mailbox.item.removeAttachmentAsync() call fails when removing attachments from multiple drafts #5502

Open
@MehakFatima24

Description

@MehakFatima24

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office on the web
  • Host [Excel, Word, PowerPoint, etc.]: ______
  • Office version number: ______
  • Operating System: Mac
  • Browser (if using Office on the web): Chrome

Expected behavior

The attachments should be removed successfully from each draft.

Current behavior

Currently the attachments fail randomly, and the following error shows up on Outlook: "The following attachments couldn't be deleted: <Attachment_Name>. Please try again later." when we check the errors with the api (https://outlook.office.com/owa/service.svc?action=DeleteAttachment&app=Mail&n=), the response status code is 200 however when we take a look at the response there is a mismatch in the change key "The send or update operation could not be performed because the change key passed in the request does not match the current change key for the item., Cannot save changes made to an item to store.SaveStatus: IrresolvableConflict\r\nPropertyConflicts:\r\n"

Steps to reproduce

  1. Create multiple drafts
  2. Add attachments in each draft 4+
  3. Switch between drafts
  4. Open a draft and remove all attachments
  5. Open another draft and remove attachments till you run into the problem

Context

The attachments are automatically removed by our add-in when the user clicks send. However, with this error the send button remains greyed out and the user remains stuck. This is negatively impacting a significant user base for our add-in.

Useful logs

  • Console errors
  • Screenshots
  • Test file (if only happens on a particular file)

Image

Image

Image

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions