cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Container Cannot be Read"

0 Kudos

Hi all,

In one of our custom workflows we are getting the error "Work Item xxxxxxxx: Container cannot be read". This happens once in a while in production system and we were not able to reproduce in dev system. The work item got created but not shown in the workflow log.

Did anyone get this type of problem before or any idea on what could be the reason?

Any help is resolving this issue is highly appreciated.

Thank you

Vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please cross check your binding. Is it the same as what you have in Development.

Former Member
0 Kudos

Hi,

Please refer the following note. It might help you.

Note 671815 - Work item container...cannot be read

Symptom

1. A workflow hangs in the status with the message 'Work item 00000XXXXXXX cannot be read'.

The workflow log contains messages for SWW_WI_CONTAINER_READ.

The workflow uses the 'Compatibility Mode' persistence profile (for checking in SWDD-> Header Data).

2. A container operation assigns a constant object reference to a container variable. The assignment is not executed at runtime.

Other terms

Workflow, container, container operation, persistence profile, compatibility mode

Reason and Prerequisites

1. The CL_SWF_PX_CONTAINER persistence class does not store any data if errors occur when

the container is being converted into BOR format. These errors occur, for example, if the process

of converting an object reference into persistent format fails. This in turn can be caused by objects

that were implemented incorrectly or the deletion of an object instance during the workflow runtime.

2. When you execute the container operation, the object reference is typed as a string. The

assignment to an object reference is rejected.

Solution

Import the Support Package.

Caution with manual implementation: The note requires you to implement a new interface element

in preparation for the corrections:

1. SE24 -> Class CL_SWF_CNT_CONTAINER -> 'Attributes' tab page -> create new attribute:

M_LAST_EXCEPTION instance attribute private

Type Ref To CX_SWF_CNT_CONTAINER

2. Identical interface change on the SWW_WI_CONTAINER_INSERT and SWW_WI_CONTAINER_MODIFY function modules:

New 'Exporting' parameter:

EXCEPTION TYPE REF TO CX_SWF_CNT_CONTAINER.

Thanks

Yogesh Sharma

Former Member
0 Kudos

This is an error that happens only in Production .25%. Mostly it is something to do with either data or some method execution for which exceptions is not handled. please check the methods(steps) which is throwing this error.

Thanks

Arghadip