Skip to content
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

Certain EML attachments produce GenericResponseError (9020) response from Office.context.mailbox.item.getAsFileAsync #4923

Open
lunarwtr opened this issue Sep 24, 2024 · 1 comment
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown

Comments

@lunarwtr
Copy link

Provide required information needed to triage your issue

When I attach certain EML files as attachments to a new Outlook mail.

image

When I try to later use the

    Office.context.mailbox.item.getAsFileAsync({}, (result) => {
      if (result.status === Office.AsyncResultStatus.Succeeded) {
        // ...
      } else {
        console.error(result.error); // ... <---- Will cause error here
      }
    });

I alway get the error condition

{
    "name": "GenericResponseError",
    "message": "An internal error has occurred.",
    "code": 9020
}

Your Environment

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

Expected behavior

Success of the getAsFileAsync call. Our Addin is trying to fetch the EML for mailbox item.

Current behavior

9020 GenericResponseError from officejs api

Steps to reproduce

As mention above

  1. I've attached a Red Robin promotion email that seems to cause the problem for me. I've attached it to the ticket as a ZIP file since ticket wouldn't let me attach an EML file type.
  2. Create a new email with the test EML as an attachment and send it to yourself (or have someone send it to you).
  3. Perform the getAsFileAsync on mailbox item
    test.zip
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Sep 24, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Sep 24, 2024
@exextoc exextoc self-assigned this Sep 24, 2024
@Swathy-Mothilal
Copy link

Thanks @lunarwtr for reporting this issue. It arises when the EML attachments contain characters outside the Latin1 range.

It has been put in our backlog and unfortunately, we don't have timelines to share at this point.
Internal tracking id: Office: 4941750

@Swathy-Mothilal Swathy-Mothilal added Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown
Projects
None yet
Development

No branches or pull requests

3 participants