<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100365#M3207</link>
    <description>​Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;I'm not seeing the behavior you describe. I've changed the definition of the standard &lt;EM&gt;&lt;STRONG&gt;List Messages&lt;/STRONG&gt;&lt;/EM&gt; action to replicate what I think you're doing, and I'm getting back results. Can you post screen shots of you action definition?&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36450.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36464iD6C3892AC3BD2DAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="36450.png" alt="36450.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36451.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36469i7C1AB1C44F565B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="36451.png" alt="36451.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Regarding NextLink, in all the other Graph connectors we include a common action called &lt;EM&gt;&lt;STRONG&gt;Get NextLink&lt;/STRONG&gt;&lt;/EM&gt; which you pass in the next link URL fragment you received from another action call (ex. List Messages). The Get NextLink action then pulls the results of that next page. Unfortunately, it seems that action wasn't added to the Outlook connector. I'll get that straightened out today.&lt;BR /&gt;&lt;BR /&gt;Cheers,</description>
    <pubDate>Mon, 21 Jun 2021 17:33:19 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2021-06-21T17:33:19Z</dc:date>
    <item>
      <title>Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100362#M3204</link>
      <description>I've been working on using the Microsoft Graph API - Outlook Web API available on the Digital Exchange, and I'm running into a problem.&amp;nbsp; I'm attempting to add an additional action "List Unread Messages from Inbox" that will return a list of all messages currently marked "Unread" in the Inbox of the provided ID.&amp;nbsp; I've put this in the URL Path: "/users/[ID]/mailFolders/Inbox/messages?$top=500&amp;amp;$filter=isRead ne true" and I get the following error: &lt;BR /&gt;"Internal : Unexpected error Data Type mismatch in array: Element 'False' has type instead of expected type 'System.String'"&lt;BR /&gt;&lt;BR /&gt;It appears that this error is caused by the $top, as removing it also removes the error, but without it I only get 10 messages at a time.&amp;nbsp; I see in the Graph documentation that there is supposed to be a url returned in the odata.nextLink, and I see in the Common Code for the Blue Prism Web API that there is code that should return this, but I have been unable to determine how to access it.&amp;nbsp; Can someone help me get access to more than the top 10 messages in my inbox?</description>
      <pubDate>Tue, 15 Jun 2021 14:21:42 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100362#M3204</guid>
      <dc:creator>kpb26</dc:creator>
      <dc:date>2021-06-15T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100363#M3205</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;Have you tried testing your method with Microsoft's Graph Explorer utility? I just tried with this endpoint definition and it worked​:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://graph.microsoft.com/v1.0/me/messages?$filter=isRead" target="test_blank"&gt;https://graph.microsoft.com/v1.0/me/messages?$filter=isRead&lt;/A&gt; ne true&amp;amp;$top=2&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Of course, this is running against my own mailbox. It looks like you're trying to read another users inbox. If you try it with Graph Explorer, and it doesn't work, it might be a permissions issue.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 21 Jun 2021 15:51:20 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100363#M3205</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-06-21T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100364#M3206</link>
      <description>Hey Eric,&lt;BR /&gt;&amp;nbsp; So, I just got done running some tests.&amp;nbsp; I added a parameter of "Count" and placed it in the call after top=.&amp;nbsp; When I pass in anything less than 15 with the ID for this process, I get back the results I expect (n number of unread messages), but once I change Count to 15, I get the error.&amp;nbsp; It appears to me that the error is in Blue Prism's handling of the results.&amp;nbsp; I also tested removing the Results parameter of "Messages" and just letting it return a JSON string in Response Content, this works even if I put 500 in for the count.&amp;nbsp; What's strange is that if I pass in my email address (we gave it permission while trying to get the Graph API working in the first place) it works with any number while returning results, so possibly there is something in the result content that is coming back with the other address?</description>
      <pubDate>Mon, 21 Jun 2021 16:05:20 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100364#M3206</guid>
      <dc:creator>kpb26</dc:creator>
      <dc:date>2021-06-21T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100365#M3207</link>
      <description>​Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;I'm not seeing the behavior you describe. I've changed the definition of the standard &lt;EM&gt;&lt;STRONG&gt;List Messages&lt;/STRONG&gt;&lt;/EM&gt; action to replicate what I think you're doing, and I'm getting back results. Can you post screen shots of you action definition?&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36450.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36464iD6C3892AC3BD2DAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="36450.png" alt="36450.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36451.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36469i7C1AB1C44F565B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="36451.png" alt="36451.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Regarding NextLink, in all the other Graph connectors we include a common action called &lt;EM&gt;&lt;STRONG&gt;Get NextLink&lt;/STRONG&gt;&lt;/EM&gt; which you pass in the next link URL fragment you received from another action call (ex. List Messages). The Get NextLink action then pulls the results of that next page. Unfortunately, it seems that action wasn't added to the Outlook connector. I'll get that straightened out today.&lt;BR /&gt;&lt;BR /&gt;Cheers,</description>
      <pubDate>Mon, 21 Jun 2021 17:33:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100365#M3207</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-06-21T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100366#M3208</link>
      <description>Thanks Eric.&amp;nbsp; Below are my pictures.&amp;nbsp; Again, it appears that the issue is in how Blue Prism handles the result set since I get different results from different mail boxes.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36452.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36461i396EEC94F5168379/image-size/large?v=v2&amp;amp;px=999" role="button" title="36452.png" alt="36452.png" /&gt;&lt;/span&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36453.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36467iC868B8728A98E042/image-size/large?v=v2&amp;amp;px=999" role="button" title="36453.png" alt="36453.png" /&gt;&lt;/span&gt;
&lt;DIV class="media" style="overflow: hidden"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36454.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36463i9BDAC466FF81597A/image-size/large?v=v2&amp;amp;px=999" role="button" title="36454.png" alt="36454.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:06:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100366#M3208</guid>
      <dc:creator>kpb26</dc:creator>
      <dc:date>2021-06-21T18:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100367#M3209</link>
      <description>Ah, I just got the error. So it's not really an issue with how Blue Prism handles the data per-se, but with how the underlying Newtonsoft library is trying to parse/convert the JSON into a DataTable that Blue Prism can then pass back to you as a Collection.&lt;BR /&gt;&lt;BR /&gt;I'll have to research this a bit more.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 21 Jun 2021 19:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100367#M3209</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-06-21T19:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100368#M3210</link>
      <description>I think I figured out what's going on. In my mind, this is a bug in Graph, but there's probably no chance of getting this addressed. &lt;BR /&gt;&lt;BR /&gt;What I'm seeing is an element within the JSON called &lt;EM&gt;&lt;STRONG&gt;isDeliveryReceiptRequested&lt;/STRONG&gt;&lt;/EM&gt;. In the majority of cases this elements value is set to &lt;STRONG&gt;null&lt;/STRONG&gt;. However, there are random messages in my inbox where the value is set to &lt;STRONG&gt;false&lt;/STRONG&gt;. The problem with this is that Newtonsoft defines the DataTable based on the contents of the very first record in the array, and it assumes every subsequent record will follow the same data type layout.&lt;BR /&gt;&lt;BR /&gt;For Newtonsoft, &lt;STRONG&gt;null&lt;/STRONG&gt; equates to an empty string value whereas a value of &lt;STRONG&gt;false&lt;/STRONG&gt; (no quotes) equates to a boolean. So when Newtonsoft lays out the DataTable definition it sets the type of the column &lt;STRONG&gt;isDeliverReceiptRequested&lt;/STRONG&gt; to System.String. When it hits a record with isDeliveryReceiptRequested set to false (or even true for that matter) it interprets that as a boolean and throws a type mismatch exception.&lt;BR /&gt;&lt;BR /&gt;There are two ways this could be addressed. Ideally, Microsoft could fix Graph to always include false or true for isDeliveryReceiptRequested. If a field has a specific type of boolean (when populated), they shouldn't be placing a value of null in it. Alternatively, you could implement our own code to handle parsing the JSON response into a Collection instead of using the native Newtonsoft deserialization (which is what the Json Path setting is doing), catch any type exceptions, and handle them.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:21:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100368#M3210</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-06-21T19:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100369#M3211</link>
      <description>BTW - I forgot to mention that we just uploaded and update to the Graph Outlook Web API component that includes the &lt;EM&gt;&lt;STRONG&gt;Get NextLink&lt;/STRONG&gt;&lt;/EM&gt; action.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 19:33:33 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100369#M3211</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-06-21T19:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Microsoft Graph API - Outlook Internal : Unexpected error Data Type mismatch in array</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100370#M3212</link>
      <description>I have come across this limitation quite some time ago. I have summarised this in a slide deck below for your reference.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36456.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36475iB332BAFAF58E8DCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="36456.png" alt="36456.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 20 Jan 2022 23:37:51 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-with-Microsoft-Graph-API-Outlook-Internal-Unexpected-error/m-p/100370#M3212</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2022-01-20T23:37:51Z</dc:date>
    </item>
  </channel>
</rss>

