cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Workflow : Object ZXXX method ZZZ cannot be executed

0 Kudos

Hi Workflow experts,

We have created workflow for leave which is having Activity step to send mail. We are sending PDF also as attachment.

Workflow is running perfectly in Dev and Qty client. But its going in error on above mentioned activity step in Prd client.

Also, when we restart workitem using SWPR, error would be cleared and workitem would go to next step.

I have attached error screen shot.

Kindly help to find possibilities of error.

Thanks and Regards,

Gaurav

Accepted Solutions (1)

Accepted Solutions (1)

SandySingh
Active Contributor
0 Kudos

Hello

Looks like exceptions are not handled properly in the method. Share the code for mails sending.

Regards

sandy

Answers (3)

Answers (3)

SandySingh
Active Contributor
0 Kudos

This error could be due to -

  • Object locking
  • Missing authorisation - Check if WF-BATCH has SAP_ALL and SAP_NEW profiles in SU01. Since work-item can be restarted with your user ID, this issue could be due to missing authorisation.
  • Exceptions not caught properly. Debug the method from SE24 using same data as in workflow instance container.


Regards

Sandy

former_member185167
Active Contributor
0 Kudos

Use  Goto > Show Errors (or something like that) in the workflow log.

pokrakam
Active Contributor
0 Kudos

"See long text" means you should look at the long text for the message. In there you will find a further error message.