Friday, 12 February 2021

Coercion Failed: Input cannot be null for this coercion in SharePoint Online list

We have list workflow configured in our SharePoint Online site, to send email on list item created. However our workflow is keep failing and it's getting cancelled with the below error message which we found on workflow history for the particular workflow instance.

Coercion Failed: Input cannot be null for this coercion


Root Cause:

When we look at email body, we noticed a multiple selection field which is causing the issue and it is set to return as "Choices, Comma Delimited" value. Whenever this field value returns null, then our workflow gets cancelled with the above error. (I used 'log to workflow history' action to verify the values)

Solution:

To fix this issue we have changed the return type for the field from "Choices, Comma Delimited" to "As String" and then workflow started working without any error.


No comments:

Post a Comment