I have the following steps within the Control Flow, where WorkOrderID is used by the first Execute SQL task and InvoiceID used by the second script task.
Can anyone spot what I'm doing wrong below as it is failing on the Update Invoice Status object?
[Execute SQL Task] Error: Executing the query "Update I Set I.Status = CASE WHEN C1.Name = 'Cy..." failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
and the query for the Update Invoice Status object is:
Update
I
Set
I.Status = 10
from
Invoice I
where
I.ID = ?
Update I Set I.Status = 10 from Invoice I where I.ID = ?
instead ofUPDATE Invoice SET Status = 10 WHERE ID = ?
– Hadi