Empty Content Snippet throwing Liquid error on Dynamics Portal v9.1.11.27.

After an update of the Dynamic Portal we noticed a few liquid error’s on our portal.

Upon investigation we found that the rendering of an empty content snippet is the root cause of this error. We had contacted Microsoft and they have confirmed that this is product bug and will be fixed in future releases.

In the meantime, here are a few workarounds that can be applied to your portal:

  1. If possible add text to your empty content snippet.
    • { snippets["snippetName"] }
  2. >If liquid rendering is not needed in HTML markup like a ‘Placeholder’ above, use the “editable” tag.
    • { % editable snippets "snippetName"  % }
  3. Add a non-breakable space as the value by changing the content snippet to a HTML type.
  4. Lastly, if the content snippet is empty and the portal is throwing an error. Disable that content snippet and portal will not try to render the empty snippet. Re-enable, only if data is needed.