<?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: Unexpected error Data Type mismatch in array: Element '' has type instead of expected type 'System.Boolean' in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100725#M3245</link>
    <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. It seems that by removing the response content in the service definition and instead just using the 'JSON to Collection' action for the raw JSON response i was able to achieve what i wanted.&lt;BR /&gt;&lt;BR /&gt;Once again thank you.</description>
    <pubDate>Thu, 26 Aug 2021 08:46:01 GMT</pubDate>
    <dc:creator>SebT</dc:creator>
    <dc:date>2021-08-26T08:46:01Z</dc:date>
    <item>
      <title>Unexpected error Data Type mismatch in array: Element '' has type instead of expected type 'System.Boolean'</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100723#M3243</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'm running into a similar issue as the poster here:&lt;BR /&gt;&lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=ab061ce4-7e4d-4f19-bd0b-4be7d62ba83a&amp;amp;CommunityKey=1e516cfe-4d1f-4de9-a9eb-58d15bf38c81&amp;amp;tab=digestviewer" target="_blank" rel="noopener"&gt;Digital Exchange (blueprism.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I was wondering whether anybody has had luck creating a custom code to handle the response from the Outlook Graph API if it comes as boolean instead of string as BP expects?&lt;BR /&gt;&lt;BR /&gt;E.g see response example below.&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;"isReadReceiptRequested":false,&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;"isRead":true,&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;"isDraft":false,&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However Blue prism expects:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;"isReadReceiptRequested":"false",&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;"isRead":"true",&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;"isDraft":"false",&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Br&lt;BR /&gt;Sebastian</description>
      <pubDate>Tue, 24 Aug 2021 14:01:22 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100723#M3243</guid>
      <dc:creator>SebT</dc:creator>
      <dc:date>2021-08-24T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected error Data Type mismatch in array: Element '' has type instead of expected type 'System.Boolean'</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100724#M3244</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="d5549726-7e6c-45aa-b48d-73d3e667702c" data-tag-text="@Seb T" href="https://community.blueprism.com/network/profile?UserKey=d5549726-7e6c-45aa-b48d-73d3e667702c" data-itemmentionkey="ce797f65-3dc8-42b0-8c06-7f1ca47c0e98"&gt;@Seb T&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;This is a tough one. I think the only way around this is to change the response content handling in the service definition and remove the return collection processing. Then, within your process/VBO you could process the raw &lt;STRONG&gt;Response Content&lt;/STRONG&gt; data item yourself with Newtonsoft and handle whatever exceptions are raised by it directly. I've seen a few examples online of people creating their own extensions of the JSON serialization code, but none of them show examples of super complex structures like what Outlook presents for a message.&lt;BR /&gt;&lt;BR /&gt;If you're organization uses a standard Outlook message template definition you could even define a .NET class to implement that template and then use Newtonsoft to serialize the message directly to an instance of that class type.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​</description>
      <pubDate>Wed, 25 Aug 2021 11:04:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100724#M3244</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-08-25T11:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected error Data Type mismatch in array: Element '' has type instead of expected type 'System.Boolean'</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100725#M3245</link>
      <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. It seems that by removing the response content in the service definition and instead just using the 'JSON to Collection' action for the raw JSON response i was able to achieve what i wanted.&lt;BR /&gt;&lt;BR /&gt;Once again thank you.</description>
      <pubDate>Thu, 26 Aug 2021 08:46:01 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unexpected-error-Data-Type-mismatch-in-array-Element-has-type/m-p/100725#M3245</guid>
      <dc:creator>SebT</dc:creator>
      <dc:date>2021-08-26T08:46:01Z</dc:date>
    </item>
  </channel>
</rss>

