Powered By Blogger

Sunday, December 5, 2010

ORABPEL-10101-Error while updating the task.ORA-12899: value too large for column "ORABPEL"."WFTASK"."PUSHBACKSEQUENCE" (actual: 201, maximum: 200)

This error has something to do with your human task updating by task service.Though this may occur in many ways, I will explain one use-case where I received this error.

pushback sequence: This is workflow internal mechanism to keep track number of times task has been updated. This is also used in pushing back assigned task to previous approvers or original assignees users from which it came.it is defined in

Schema-ORABPEL
Table-WFTASK
Column-PUSHBACKSEQUENCE

Our environment description

We have a polling bpel process which polls staging table and closes certain human tasks when specific criteria meets.

We have set 2 mins as polling frequency for this BPEL process.Due to this less polling frequency time, process used to gets executed very frequently and this led to a scenario where new instances getting created before completing old ones and all of them trying to do same task i.e closing human tasks if some criteria was met. At certain point in time there were few hundred processes running and all of them tried to access same task and were trying to close the task.Considering our environment, for us this is something timing issue.
Ultimately this led to data base level locks and violation of database level constraints like

Whenever task is modified then extra sequence is being appended to pushbacksequence.

Lets say initially when task is created we have sequence =>1-3
then when any operation is performed on it then it will become 1-3-5-7, like this for each operation it goes on adding sequence.

After few attempts it became length of 201(1-3-5-7........127) and database column is defined to hold only  length of 200 characters hence the error.

Exact error we have seen is

10/12/02 11:06:19 java.sql.SQLException: ORA-20002: Error while updating the task


ORA-06512: at "ORABPEL.WFTASKPKG", line 1034

ORA-12899: value too large for column "ORABPEL"."WFTASK"."PUSHBACKSEQUENCE" (actual: 201, maximum: 200)

ORA-06512: at line 1

3 comments:

  1. do you know a solution or workaround for this? I am on 11.1.1.5.

    ReplyDelete
  2. Mate, you made me read three paragraphs for nothing. Dont be such a tease, give us your solution please.

    ReplyDelete
  3. please provide more in detail.........., it's isn't enough

    ReplyDelete