The Workflow table Search_Activities has a primary key with the datatype BIGINT.
However it appears that workflow is expecting an Int32.
Workflow is now logging the following error every second
<Message>Arithmetic overflow error converting expression to data type int.
The 'insert_executing_activity' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.</Message>
<Source>.Net SqlClient Data Provider</Source>
When I look at the primary key, it appears we hit 2,147,483,647 today. This is when the error began to appear.
I don't know what to do other than re-create the database?