cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

O365 Email activity with custom html : insufficient memory exception

An email with custom html, seems to be causing an insufficient memory exception in O365 Nintex workflows.

An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InsufficientMemoryException: The workflow created too many large objects in a row, exceeding the limit of 100 megabytes. The workflow should be restructured to require less memory to execute

Html insert into email activity:

Dear ‍<span contenteditable="false" data-nintextoken="true" style="display:inline-block;"><a class="ms-rtestate-write draggableToken" contenteditable="false" href="href="#"" link="false" onclick="return false;" reftext="nw-stringbuilder-token-22bae654-4d01-4ca3-bdf0-926c9d264e01" spellcheck="false" style="color:red;text-decoration:none;cursor:pointer !important;">{Current Item:Created By}</a></span>‍,<p>The following item has been approved by : Shaun Danielz</p>
<p></p>
<style>.datagrid table { border-collapse: collapse; text-align: left; width: 100%; } .datagrid {font: normal 12px/150% Arial, Helvetica, sans-serif; background: #fff; overflow: hidden; border: 1px solid #006699; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }.datagrid table td, .datagrid table th { padding: 3px 10px; }.datagrid table thead th {background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #006699), color-stop(1, #00557F) );background:-moz-linear-gradient( center top, #006699 5%, #00557F 100% );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#006699', endColorstr='#00557F');background-color:#006699; color:#FFFFFF; font-size: 15px; font-weight: bold; border-left: 1px solid #0070A8; } .datagrid table thead th:first-child { border: none; }.datagrid table tbody td { color: #00496B; border-left: 1px solid #E1EEF4;font-size: 12px;font-weight: normal; }.datagrid table tbody .alt td { background: #E1EEF4; color: #00496B; }.datagrid table tbody td:first-child { border-left: none; }.datagrid table tbody tr:last-child td { border-bottom: none; }.datagrid table tfoot td div { border-top: 1px solid #006699;background: #E1EEF4;} .datagrid table tfoot td { padding: 0; font-size: 12px } .datagrid table tfoot td div{ padding: 2px; }.datagrid table tfoot td ul { margin: 0; padding:0; list-style: none; text-align: right; }.datagrid table tfoot  li { display: inline; }.datagrid table tfoot li a { text-decoration: none; display: inline-block;  padding: 2px 8px; margin: 1px;color: #FFFFFF;border: 1px solid #006699;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #006699), color-stop(1, #00557F) );background:-moz-linear-gradient( center top, #006699 5%, #00557F 100% );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#006699', endColorstr='#00557F');background-color:#006699; }.datagrid table tfoot ul.active, .datagrid table tfoot ul a:hover { text-decoration: none;border-color: #006699; color: #FFFFFF; background: none; background-color:#00557F;}div.dhtmlx_window_active, div.dhx_modal_cover_dv { position: fixed !important; }</style><div class="datagrid"> <table>  <thead><tr><th>Field</th>
<th>Value</th>
</tr>
</thead>  <tbody><tr><td>ID</td>
<td>{Current Item:ID}</td>
</tr>
   <tr class="alt"><td>Title</td>
<td>{Current Item:Title}</td>
</tr>
   <tr><td>Source Url</td>
<td>{Current Item:Source URL}</td>
</tr>
  </tbody> </table>
</div>

Labels: (1)
Tags (2)
0 Kudos
Reply
1 Reply
Not applicable

Re: O365 Email activity with custom html : insufficient memory exception

Shaun,

This issue has been raised as a defect. Here is the note from the development team:

"The action doesn't support the usage of tokens with <style> tag. When tried with SP Designer, it warns and doesn't let you publish. We should be handling this in a similar way."

Thanks for bringing this to our attention.

Cheers,

Andrew Beals

0 Kudos
Reply