0

I’m working on an add-in for Microsoft Outlook, and one feature of our add-in allows users to add events to their calendar when a date is detected in the body of an email. In our add-in’s manifest, we use the following rule to make our add-in available when a MeetingSuggestion is detected in an email:

<Rule xsi:type="ItemHasKnownEntity" EntityType="MeetingSuggestion" Highlight="all" />

As of the latest insider build of Outlook desktop for Windows (16.0.13001.20254), certain email bodies that appear to have time-related words that can’t be resolved to a specific date are causing our add-in to crash before it can load. We’re hitting the following error in the Javascript file outlook-win32-16.02.js:

SCRIPT5022: SCRIPT5022: Sys.ArgumentException: The input doesn't resolve to a valid date. Parameter name: input

I can reproduce this error consistently with the email body “Speak with you shortly”. To reproduce this bug, you can use Microsoft’s “Suggested Meetings” add-in: trying to open “Suggested Meetings” from an email with the body “Speak with you shortly” should result in the same crash.

These crashes weren’t happening for us or our users in prior versions of Outlook desktop. In this version, our add-in will still work if the email body includes a clear time; for example we can open our add-in and Microsoft’s “Suggested Meetings” from an email with the body “Let’s meet for sushi at 6pm.”

Has a recent change to meeting suggestion code resulted in this issue?

Thank you.

Edit: here is a screenshot of the crash in Outlook as requested Outlook add-in crash

Edit 2: As requested, I checked to see if the error was occurring when a specific API was called. I was able to narrow it down: in our Add-in, the error occurs if we call Office.context.mailbox.item.getEntities(). Simply calling that method alone should be enough to reproduce the error.

Steve M
  • 147
  • 1
  • 1
  • 9
  • 1
    Can you send us a screenshot of your add-in displayed in Outlook? We want to confirm that it shows up in a grey bar in the body of the message. Is your add-in invoking `convertToLocalClientTime` or `convertToUtcClientTime`? – Outlook Add-ins Team - MSFT Jul 12 '20 at 11:15
  • Sure! I've just sent an email with the screenshot to the AdeleV@m365x834167.onmicrosoft.com email address we've used to communicate before. The add-in does show up in a grey bar above the body of the message. Our add-in does not invoke either of those methods. – Steve M Jul 13 '20 at 19:13
  • Sorry, it looks like the email bounced - I've just updated my initial question to include the image. – Steve M Jul 13 '20 at 19:17
  • 1
    Does the error occur when calling a particular API (if so, could you update the question with a short code sample?). I'm able to reproduce a similar error and want to clarify the scope of the issue. Thanks! – Outlook Add-ins Team - MSFT Jul 17 '20 at 06:23
  • I've just updated the question to include the API call I think is responsible for the error. Thank you! – Steve M Jul 21 '20 at 23:48

0 Answers0