Restart the Workflow

Hello Friends,
I have a problem. Let me explain my workflow design before explaining the problem. This is related to Service Entry Sheet workflow.
<b>Design.</b>
In this workflow, I have added a method for identifying agents. if it doesnt get any agent, it will divert the workflow to another path called as missing agents and workflow got stuck here. Like this i have 30 secnario in PRD.
Idear behind this desing is whenever we get missing agents, we will correct our data and restart the workflow again.
Problem: I want to take ur advice before starting this operation. Two best options are aviable for starting the workflow again.
1. Delete the exsisting workitem logically and create an event through SWUE
2. Set the workitem in error state and restart it through SWPR.
Please give me ur valuable solution. If you have some other option, please share it with me.
Thanks & Regards,
Manoj

Use everything the same workflow. Make use of fork. This workflow will get completed unless the required result has been reached. This you can make sure by putting the whole step in a Loop Ultil step. It is not good to always create new Workflow instance. You should use the same Workflow instance.
As a workaround you should use those SWPR and logical deletion transaction but no client will want that. There is aflaw in design which should have a bad reputation on the Wflow expert who developed it. Think on a broader aspect and do not try to teach me about production environment I think I know better than you about production environment.
Thanks
Arghadip
Message was edited by:
        Arghadip Kar

Similar Messages

  • Restarting the workflow items in ECC 6.0 system

    In 4.6 version we restart the workflow items from SWI1 tcode, but in ECC 6.0 we are not able to do the same from SWi1 , please provide pointers to  restart the workitems in upgraded system.
    Moderator message: this is the wrong forum, please have a look in the forum for "SAP Business Workflow".
    Edited by: Thomas Zloch on Jun 3, 2011 10:27 AM

    Hi,
    You can choose the workitem and click on the Display technical workitem and from edit-change mode
    You will get the options on the left side...fill the container and click on the execute after error option to restart the workitem.
    Regards
    Keerthi

  • Is there any script to restart the workflow services

    Hi
    Is there any script to restate the workflow services in 11i and R12
    Regards

    Hi,
    Please see (Note: 743264.1 - How to Stop/Start Workflow Service Containers From Command Line).
    Regards,
    Hussein

  • Standard Tool / Program to Change the Workflow Status

    Hello,
               I would like to know if there is any standard program to Change Status of the Workflow from IN PROCESS to ERROR. I know that there are Standard SAP tools using which we can restart the Workflows that are in ERROR Status. But for changing the Status of the Workflow from IN PROCESS to ERROR, I've not come across any tools / programs. I would really appreciate your help. Thanks in advance.
    Regards,
    Venkata Phani Prasad K

    sorry correction ..FM SWW_WI_CALLBACK_CHANGE_S can be used to correct the status without any check.
    I came across this issue where a dialogue workitem was logically deleted in order to remove it from the user inbox. Later an incident was created that the work-item is still needed to perform the rest of the workflow action. The solution should have been to complete the work-item by executing the terminating event of work-item or complete the work-item manually(SWIA). But instead some one performed  logical deletion.
    so in order to revive the workflow i needed to change the status form logically deleted to ready status. for this i found this FM which successfully changed the status form logically deleted to ready status. It though lost the agent assignment but i forwarded it manually to respective user.
    Regards
    Dharmendra
    TCS India.

  • How to restart an workflow if ended in error at SEND Mail step.

    Hello All
          I am facing some problem in restarting the error workflow.
    Issue is:
       Workflow ended in error at the mail notification step, since the mail id is not filled into the container so there is no address (mail id) and ended in error.
       How to restart these kinds of workflow in the system?, we have tried to change the container value by assigning mail id and restarted the workflow but still went into error.
    Is it possible to restart an workflow which ended in error other than rule resolution.
    Regards
    Anand KS

    I think you went in the write approach. I think you have to change the container properly by populating the ADDRESSTRING container element. Also check whether type of email recipient in your container is et to Email.
    Thanks
    Arghadip

  • Error Occured when trying to progress through the workflow

    Tried to move a project from one stage to the next in the workflow and an error popped up saying,
    Workflow: Workflow Terminated
    An error has occurred in the workflow.
    Now when you open the project in PWA instead of seeing the image of the workflow there is a message that reads,
    Stage Status image - There is no workflow status to communicate because the project is not yet created
    Any thoughts....

    EPM Admin
    Try restarting the workflow.  If that doesn't work, then you need to provide a whole lot of details on how the workflow is built, what version you are running, was it working before etc.
    CHeers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • Restarting Error Workflows in Production Environment

    Hi Experts,
    I m having an issue in the prod enviroment there are some error workflows because of the error issued by the function in a method which i used in a workflow step.Know i have trapped that  error .And i tried to restart the workflows by using SWPR.
    Still the workflow is going to error status.
    Please advice.
    Thanks,
    Rajesh.

    Hello,
    Is it showing the same error? Try SWU_OBUF.
    regards
    Rick Bakker
    Hanabi Technology

  • How to make a restart of the workflow in a process controlled workflow?

    Hi Experts,
    How to make a restart of the workflow in case of process controlled workflow? Scenario is like this:
    The user has created a shopping cart with 1000 USD. The process schema has three process level with the first level being approval with completion.
    The first level being executed by the responsible purchaser. Here, the purchaser adds the source of supply and changes the price of the shopping cart 2000 USD and approve the shopping cart.
    Now, I want the approval task to start from beginning so that the requestor can know the changes and accept/reject the changes.
    Thanks and regards,
    Ranjan

    Hi,
    Restarting workflow goes to 1st level approval step. It is not requester.
    I think you need to set condition for "Acceptance by Contact Person" in Define Process Level.
    Regards,
    Masa

  • Payroll area locked.How to Stop the workflow during this period ?

    Dear experts,
    In the travel workflows, after all the approvals, there is a standard task(Custom) with a custom method(BUS2089 Enhanced).
    This method updates the infotype 2002 (Attendances). This works fine for the whole month except during the  payroll run which will be for 3-4 days after 20th of every month.
    We have maintained the exception for this when the control record is in the status '1' or '4', by passing a temporary error to the workflow.
    SELECT SINGLE * FROM t569v WHERE abkrs = 'Z0'.
    IF sy-subrc EQ 0 AND ( t569v-state EQ '1' OR
                           t569v-state EQ '4' ).
      return-message_v1 = 'Employee Master data locked for Payroll'.
      exit_return 1001 return-message_v1 return-message_v2
                       return-message_v3 return-message_v4.
    As i understand the workflows can be restarted after solving the temporary errors.But this Temp error will only be solved after the payroll record is becomes 'Exit Payroll'.
    The system attempts for 3 times in the period of 30 minutes and then the tempoarry error becomes a permanent error and this way the workflows goes into a permanent error which cannot be restarted even after the payroll is exit.Due to this may workflows are unable to update the Infotyp 2002 however their trips are approved at all levels.
    This counter of 3 times and 30 minutes, I belive the system is taking from the error monitoring program (RSWWERRE / SWWERRE) in SWU3.
    I am thinking of putting the workflow into 'Wait' state till the period when the Payroll is locked. This way , we can avoid the workflow even from going into temporary error.
    Can anyone help in this regard ? Do we need to add a WAIT step in the WF Definition or control in the method code itself ?
    Does WAIT UNTIL (ABAP Keyword) works for 3-4 days of payroll run if we implement in the method code itself?
    -Anwar
    Edited by: Sameer Anwar on Aug 20, 2011 9:44 AM
    Edited by: Sameer Anwar on Aug 20, 2011 9:45 AM

    Hi Sameer,
    But , Can you pls put some more information on why we need to avoid WAIT UNTIL in Tthe ABAP ?
    Wait Steps are only used where you have 1 event which the workflow would expect ...moreover this would require more effort in terms of implementation...( you will have to create an event manually after your payroll is open).
    I would suggest create an virtual attrubute of the BO  which will populate a whetherr the Payroll is locked or unlocked... then use this attribute as a start condition in the conditions tab of your step. this would stop the workflow until the payrol is open...
    Regards
    Gautam
    Edited by: gautam maini on Aug 20, 2011 2:34 PM
    Edited by: gautam maini on Aug 20, 2011 2:35 PM

  • Errors were found when compiling the workflow. The workflow files were saved but cannot be run.

    Greetings All,
    I am having issues with a SharePoint Designer workflow.  This is a SharePoint 2013 environment, I'm using SharePoint Designer 2013 and working on a SharePoint 2010 workflow.  I'm developing this as a SharePoint 2010 workflow because I need to do
    impersonation.
    The environment and workflow have been running, in the past week, without issue.  I went to add a couple steps and now I cannot publish the workflow.  While in SharePoint Designer, I receive the error:
    "Errors were found when compiling the workflow.  The workflow files were saved but cannot be run."  When I click the Advanced button on the error dialog, the message is "Unexpected error on server associating the workflow." 
    That is all the error information I have available; nothing is in the log files.
    I have investigated this error and tried the following:
    Cleared the SharePoint Designer cache.
    The WebApp.UserDefinedWorkflowMaximumComplexity was at 7000 so I increased it to 10000.  Restarted the servers (which may not have been necessary) and tried again receiving the same error.  I then increased it to 30000 with the same error result.
    Since this is a large workflow, I tried created a workflow with a single action, write to workflow log, with the same error results.
    I reboot the servers and try again and now I can publish the small test workflow but not the original.  However, neither will run.  When I attempt to manually run the small test workflow on an item, I get an error: "Sorry something went wrong.
    An unexpected error occurs.  I checked the log files for the correlation id and nothing, nothing was logged for the error. ~arg~
    Also, now no workflows can be published in this web app.  Not just the one I was working on but none of them!
    Does anyone have a clue what has happened to the SharePoint 2010 workflow service?  Or some suggestions for me to try?
    Thank you in advance for your help!
    Bob Mixon

    try these links:
    http://sp2013.pro/2013/04/solution-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run-cannot-set-unknown-member/
    http://code2care.org/pages/sharepoint-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run/
    http://sharepoint.stackexchange.com/questions/119909/sharepoint-designer-error-errors-were-found-when-compiling-the-workflow
    http://stackoverflow.com/questions/26413125/errors-were-found-when-compiling-the-workflow-in-sharepoint-2013
    Hi Sagar,
    I appreciate it but if you see my original post, this is a SharePoint 2010 workflow that cannot be published; which has now caused all SharePoint 2010 workflows in the same web app to error.
    Your first link is specific to SharePoint 2013 workflows.
    Your second link refers to the UserDefinedWorkflowMaximumComplexity.  If you read my original post, I've already tried this and I've tried to publish a small (single activity) workflow.
    Your third link also refers to large workflows with many approval activities.  My workflow doesn't contain any approval activities.
    And you fourth link refers to 2013 workflows not 2010.
    My issue is with publishing and running a SharePoint 2010 workflow in SharePoint 2013.
    Thank you...

  • Responsibility rules : Agent determination only works after restarting the WF

    Hi Experts,
    We are facing a very strange issue related to agent determination in one of our custom workflow:
    For agent determination we are using a responsibility rule with two parameters "Company code" and "Plant".
    The responsibility rule works well and returns the agents for all the company code.
    Recently I have added few company codes to this responsibility rule in the same way we used to maintain and simulate it . It returns the correct agent for newly added company codes but at run time the agent determination is getting failed and the WF goes into an error because of it. However when i restart the WF via SWPR it works well and the agent determination works well either.
    This is only happening for newly added company codes the old ones agent determination work well at the run-time.
    Pls suggest what could cause this problem. If there is a problem in responsibility rule then why it works after restarting from SWPR.
    Thanks in advance. The helpful/correct answers will be rewarded.
    Regards,
    Him

    Hi Rick,
    Thanks for replying.
    1. Can you replicate this problem in the test system?
    Yes I could replicate this issue in test system and it works fine there.
    2. Is this a true responsibility rule or does e.g. a function module get called?
    We have a responsibility where several responsibilities have been added with two parameters "company codes" and "plant". Every responsibility has a POSITION assigned into it and this position contains the related users.
    This responsibility rule is getting called in one other rule with FM. Here in this another rule we are calling the responsibility rule by using the standard FM  RH_GET_ACTORS to fill the ACTOR_TAB.
    I have tried to simulate both the rules and it returned correct agents but failing at run time.
    Regards,
    Him

  • Something went wrong. To try again, reload the page and then start the workflow, error on starting a workflow

    i have already create a custom workflow with sharepoint designer and checked for error and it seem fine. i published it on my document library so apprear the first issue : the column that contain the name of my workflow apprear and the link to start my workflow(contain
    the name of my first stap) doesn't appear. the second problem is that when i tried to start the workflow manually on a specific document i get an alert : Something went wrong. To try again, reload the
    page and then start the workflow
    i tried : -restart service bus message broker -restart service bus gateway -recycle workflowMgntpool -flushed the dsn resolver cache and the problem still occure
    on uls log viewer it seems to be an error on w3wp.exe process
    the workflow history is empty

    Hi Mokhtar,
    For your first issue, when you publish a workflow to your document library, only after you start the workflow, then the link to go on the workflow(contain the name of the workflow stage) will appear.
    For your second issue, my understanding is that you got an error when you manually start a SharePoint Designer 2013 Workflow.
    Please go to Administrative Tools->Services, make sure the following services are started.
    Workflow Manager Backend
    Service Bus Message Broker
    Service Bus Gateway
    Windows Fabric Host Service
    Here are similar posts for you as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/12f8ae26-6889-4227-a3fc-dd29a38230a6/something-went-wrong-to-try-again-reload-the-page-and-then-start-the-workflow?forum=sharepointcustomization
    http://community.office365.com/en-us/f/154/t/277480.aspx
    If the issue still exists, please check Event Viewer to check more information about this issue.
    http://msdn.microsoft.com/en-us/library/jj193526(v=azure.10).aspx
    I hope this helps.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Parallel approval question of the workflow process.

    Hello Expert,
    I have the following business process scenario which will be realized by new BPMN. My qusestion is how to do with it on BPMN?
    I have one human activity in one step. The condition to pass this step is that all the potential owners of this step should approve, if one rejects this step, then workflow terminates.  Is there anyway to reach the solution, i mean the task is sent to the approvers parallelly and i want to get all of their response?
    Any help will be appreciated..
    /BR
    Erick

    Hi Erick,
    a few words of warning though:
    If the end condition for the recursion is not modeled correctly and the process runs into an endless recursion you can easily break the system with this! Since the NetWeaver BPM is trying to pick up where it left off, such a situation can not easily recorvered from, even by restarting the server!
    Recursive subprocess calls consume quite a bit of resources, so it is not recommended to do this with many nesting levels. Start out with only a few and look in the SAP MMC how the Java memory behaves. But I guess for a (hopefully short) list of approvers this approach should be ok.
    Modeling this correctly can be a bit tricky. From my experience you should especially mind two important points:
    Make sure you synchronize concurrent executions paths (creates with a parallel split gateway) at the end with a matching join gateway.
    Do not put the end condition for the recursion in the correlation condition of the start event of the subflow: this will cause the subflow to never start and hence never return to the calling process. The result will be that the main process never terminates. Use an explicitely modeled exclusive choice gateway for this.
    Best regards,
    Oliver

  • Transaction brackets of the workflow has been damaged

    Hi,
    I am integrating workflow with the HR Processes and Forms using HCM.
    The process is new hiring and in configuration I have given the workflow name which is copy of the standard workflow(WS18900008). The event used is draft_created.
    When I execute the process and press the Save Draft, everything goes fine, the workflow gets completed but for the step Save Form Data(WS17900260) throws the following error:
    Executing Batch work Item: Transaction brackets of the workflow has been damaged.
    The task is TS17900108.
    Not able to understand what is this error and to which it is related.
    Pls help.

    Look for SAP Notes as this is SAP standard code.
    Short Text
    Transaction brackets of the workflow has been damaged
    Diagnosis
    When executing the workflow with the ID , the transaction brackets were destroyed by a commit command ('C') or a rollback work command ('R'). This command ('') was stopped from the implementation program of the object type. Access takes place, for example, when a condition is evaluated or when the container operation is executed. Access may only have a read character which is why a commit or rollback work command is not necessary.
    System Response
    The system has written a log entry. Uncontrolled commit or rollback work commands can affect the restart function of the workflow system. This restart function is only necessary in the case of errors. The current workflow instance is executed further.
    Procedure
    Check the implementation program of the object types and remove the corresponding ABAP instructions.

  • Executing Batch work Item: Transaction brackets of the workflow has been da

    Hi,
    I am integrating workflow with the HR Processes and Forms using HCM.
    The process is new hiring and in configuration I have given the workflow name which is copy of the standard workflow(WS18900008). The event used is draft_created.
    When I execute the process and press the Save Draft, everything goes fine, the workflow gets completed but for the step Save Form Data(WS17900260) throws the following error:
    Executing Batch work Item: Transaction brackets of the workflow has been damaged.
    The task is TS17900108.
    Not able to understand what is this error and to which it is related.
    Pls help.

    Look for SAP Notes as this is SAP standard code.
    Short Text
    Transaction brackets of the workflow has been damaged
    Diagnosis
    When executing the workflow with the ID , the transaction brackets were destroyed by a commit command ('C') or a rollback work command ('R'). This command ('') was stopped from the implementation program of the object type. Access takes place, for example, when a condition is evaluated or when the container operation is executed. Access may only have a read character which is why a commit or rollback work command is not necessary.
    System Response
    The system has written a log entry. Uncontrolled commit or rollback work commands can affect the restart function of the workflow system. This restart function is only necessary in the case of errors. The current workflow instance is executed further.
    Procedure
    Check the implementation program of the object types and remove the corresponding ABAP instructions.

Maybe you are looking for

  • Oracle functions in universe

    Hi Experts , I have created a set of user defined functions in oracle .I included these functions in Oracleen.PRM file . I restarted all the servers . Still i did not see my function in the universe .  My functions has two parameters . I need to pass

  • How to call a form in Oracle Portal?

    I'm trying to call a form from my corporate Oracle Portal. Can anyone advice me how to do it? Thanks and Regards.

  • Dynamically coloring a cell based on user action.

    Dear Gurus, I know that many a questions have been posted based on cell coloring. But sadly i couldn't find anything that suits my requirement. My requirement is like i want to color a cell when the user double clicks on that cell. I have captured th

  • Oracle.tip.transport.TransportException: Requested operation is invalid

    Hi all, I'm facing the following error in my B2B implementation when I try to put a file in a SFTP server. oracle.tip.transport.TransportException: Requested operation is invalid. at oracle.tip.transport.basic.sftp.SftpClient.put(SftpClient.java:104)

  • Illustrator CS3 (13.0.2) stacks and freezes after a while.

    I have problems with Illustrator CS3. Sometimes, when I am using it and go to select a layer, it .. stack/freeze whatever. I don't know why, but the cost to me is too much - specially if I haven't save my artwork for some time.. (you might understand