SP Workflow Error: An error has occurred in YourWorkflow
I searched the SP logs and found the following ULS error:
Some lookup fields were omitted from the query results because the list exceeds the lookup column threshold.
There are two possible solutions:
- Increase the threshold in Central Administration
NOTE: It is recommended NOT to increase the threshold since it will affect performance across your web application.
However, if you do want to increase the threshold you can do so in the Resource Throttling settings in Central Administration. Here you can "specify the maximum number of Lookup, Person/Group, or workflow status fields that a database query can involve at one time":
- Click Manage web applications.
- Select the web application you want to update.
- Click General Settings | Resource Throttling.
- Update the List View Lookup Threshold to at least 12.
- Click OK.
- Reduce the number of lookup columns in your workflow.
NOTE - lists / libraries already have two lookup columns by default: 'Created by' and 'Modified by' so while the threshold is set to 8 you need to keep your additional columns to a maximum of 6.