SQL error - Dynamic SQL generation for the UpdateCommand

Am getting the below error when i open any process on workflowgen. How can i solve it?

image

Advantys.Workflow.Engine: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.
System.InvalidOperationException: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.
at Advantys.Workflow.Engine.WorkflowsManager.ActivityInstanceCreateContext(WorkflowUserIdentity userIdentity, Int32 processInstanceId, Int32 activityInstanceId)
at †a.ˆa.“a(PageController )