cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Method cannot be executed

Former Member
0 Kudos

Dear All,

I created a workflow.

The first activity is to create a document.

So I created an activity linking it to the method 'Create' of object 'Document.

I get an error in w/f log saying

Object 'DOCUMENT' method 'Create' cannot be executed

Work item 000000025495: Object DOCUMENT method CREATE cannot be executed

Message no. WL821

Diagnosis

The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.

System Response

The work item was forced into the error status.

Procedure

Refer to your workflow system administrator.

Procedure for System Administration

Also check the binding between the task container and the method container.

Please help me out.

Thanks,nsp

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hai,

pls check the business object whether its released or not.

hope its not released.pls change it to release stsus and try again.

regards

rose

Former Member
0 Kudos

Thanks for the replies.

1. Its is a standard object 'DOCUMENT' and is released.

2. When I test the method of the object in SWO1, giving relevant parameters

I dont get any execption at all.

Has it got to do anything with the task and method binding? How do we check that

Why does it say "method cannot be executed. In fact the method iam trying now is 'CheckInViaFile'

nsp.

Former Member
0 Kudos

Hi,

I meant to say that , execution from SWO1 should have parameters same as while being executing workflow. ( pls check the parameters being passed to this method while executing workflow thro' WF log - workflow container values. )

Check if mandatory parameters are being passed to method.

Regards,

Akshay

ANother option to check:

go to std task in change mode and change the method e.g. clear out the method and again revert to Create , so as to get message e.g. Transferring object elements to task.

Message was edited by:

Akshay Bhagwat

former_member186746
Active Contributor
0 Kudos

Hi,

Check the workflow log to see what the values are of the container at that particular step.

Now open the workflowbuilder and check which parameters are passed to the task also check the bindings from wf to step and from step to workflow (there should be 2 check buttons).

then check the task to see if maybe additional elements are passed to the method, also check here if the bindings doesn't have errors.

Next goto SWO1 and test the method with exactly the same data which should cause an error.

Kind regards, Rob Dielemans

Former Member
0 Kudos

hai

pls check task and method binding. and if still the same problem exitst then delet the task and try to creat a new task and save and activate it .

hop eit will solve ur prob lem

regards

rose

Former Member
0 Kudos

How do we check the task-method binding

Former Member
0 Kudos

hai

double click on task no in the step type. below object method u can see an green ikon called binding object method.click it and auto bind it.

regards

rose

Former Member
0 Kudos

Yes, the binding is in place.

Still I get an error,

"Method sww_bi_Execute_s cannot be executed'

former_member186746
Active Contributor
0 Kudos

Did you test the method with the exact same data which was in the workflow? including perhaps hard coded bindings from task to method

Former Member
0 Kudos

Hi,

Pls check if there is any exception occuring while executing this method. ( Test it thro' SWO1 with same data as you are trying thro' workflow , so that you will get an idea whetehr any exception is getting triggered)

This exceptoin has to be modelled in worklfow for this step.

Hope this helps.

Regards,

Akshay