How can I fail the task and inturn the package(I am hoping the package will fail anyway if this task fails as this is the first task and all the remaining tasks are connected to this task by precedence constraint )
I have a ID field and status field.
I want to see if the max(id ) in the table has batch status value of '2'. If not I want to fail the package.