SharePoint Designer Workflow problem with Lookup column There is a particular scenario in which you might receive the below error if using SharePoint Designer List Workflow.
Coercion Failed: Unable to transform the input lookup data into the requested type. Workflow Scenario Consider a SharePoint list called "Employee" with following schema.
Employee Name (Text)
We create a SharePoint Designer workflow to send a simple email with Employee Name and Country when an item is created.
After publishing the workflow, let us see try creating a few items and see the outcome.Workflow Problem
Though the workflow is pretty simple. We note that it worked fine where lookup values are the United Kingdom, United States, Spain, Australia, but fails when the lookup value is blank. It gets 'Canceled' in this case. If we look closely at the workflow history, it shows these details -
Event Typ - Error User ID - System Account Description - Coercion Failed: Unable to transform the input lookup data into the requested type
The description is useful for us - Coercion Failed: Unable to transform the input lookup data into the requested type.Analysis and Troubleshooting
This happens when you use a Lookup site column in workflow and the value is BLANK/NULL. The workflow fails when transforming the Lookup data (blank in this case) into Lookup Value (as Text). Further steps of the workflow will not be reached and it gets canceled and logs the error.
How to fix - Resolution
The solution to this is converting the Lookup value to a string and then using it in workflow stages.
- Create a Workflow Local Variable named "country" of type "string".
- Modify the workflow by adding an if condition to check if the Lookup value is not-empty (is not empty).
- Set the variable to the Lookup Value
- Add further stages after the if condition. Add an else condition if required.
After modifying the workflow this way, even null/empty/blank lookup values will be converted to a blank string value.
Make sure you do this for every lookup column if you feel the value can be blank anytime.
- Setup synonyms or alias or thesaurus in SharePoint
- How to redirect SharePoint Site Collection to different URL
- How to hide quick launch in SharePoint
- SharePoint 2010 DataForm Unable to display this Web Part System.StackOverflowException
- SharePoint Server 2016 Preview installation error - This Product Key isn't a valid Microsoft Office 2016 Product Key. Check that you've entered it correctly.
- How to delete SharePoint List Item programmatically
- SharePoint Server 2016 IT Preview Deprecated Removed features
- Create SharePoint Site Collection using PowerShell New-SPSite
- How to create SharePoint List Item programmatically
- See actual SharePoint error exception modify web.config
- SharePoint Server 2016 installation System Hardware requirements
- [Solved] SharePoint Illegal operation attempted on a registry key that has been marked for deletion
- SharePoint Designer Workflow error - Coercion Failed: Input cannot be null for this coercion
- [Solved] SharePoint Access Denied error editing Document Name
- SharePoint 2016 error - Could not find file ManageUserProfileServiceApplicationTenantSimplified.xml
- Bypass domain name for IIS site (SharePoint)
- SharePoint PowerShell Merge-SPLogFile filter by time using StartTime EndTime
- Recover SharePoint if the SQL Server IP changes
- SharePoint CAML query error - The XML source is not correct
- How to enable disable SharePoint Developer Dashboard for tracing troubleshooting
- Change SharePoint search results FullTextSqlQuery RowLimit 10000
- Update Created By (Author) column of SharePoint document using PowerShell
- SharePoint Server 2016 error - Failed to connect to the configuration database
- The service instance
- SharePoint Managed Metadata Hidden Taxonomy List - TaxonomyHiddenList
- How to create Custom RatingBar Android Programming Tutorial - Android
- How to use HashTags # correctly on Social Media Facebook Twitter - HowTos
- connection.url property value in hibernate.cfg.xml for mysql - Java
- Android AlertDialog with 3 buttons example - Android
- SQLite with Android Easy to Understand Tutorial that covers Select, Insert, Update and Delete - Android
- remove div vertical scroll - Html
- Android Display Toast on Button Click - Android
- Check Internet Connection WIFI 4G is active on Android Programmatically - Android
- Device not compatible error Android Google Play Store - Android
- [Mac] To open Eclipse you need to install the legacy java se 6 runtime - Mac-OS-X
- 86 Gmail keyboard shortcuts that you may find Advantageous - Google
- Maven Eclipse (M2e) No archetypes currently available - Java
- Tutorial: CSS Media Query for Responsive Web Design - CSS
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps - HowTos
- ActivityManager Warning: Activity not started, its current task has been brought to the front - Android