Error in action during the changing workflow status

Description

During the changing the workflow status, the error note will appear and there is an incorrect syntax mention. For example:

.Incorrect syntax near 'ab154bd2-372d-11e4-8339-70f395bf76e2 AND ObjectTypeID2 = 3'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at

Version

All versions of eWay-CRM

Difficulty

High

Resolution

This is probably an error due to the incorrectly added action in the workflow. In our case there is missing the ' sign. The error is caused by a mistake in action definition of a workflow step.