Restarting workflow
Hello guys,
I have a workflow whose main workitem is in the status of "In Process" and the subworkflow has the status "Error".
The subworkflow is stuck and the 3rd step in the subworkflow is in "Completed" status.
For the next step, the error is "Error when processing node '0000000029' (ParForEach index 000000)".
I used to start the workflow with SWPC, but its giving a dump.
Anybody can help me?
Thank you.
hi,
Can you open the subworkflow template in the workflow buider?
Or do you get a message like Workflow wsxxxx not in version '0000'
If this is the case something went wrong with transport and updating of active version.
Execute FM SWD_WFD_REPLICATE_FROM_9999 for this template to fix this problem.
Kind regards, Rob Dielemans
Similar Messages
-
Hi Experts,
Sometimes in SWPR Restart Workflow i find Errors in Workflow but when i select the workflow and click on the restart flag still the workflow is not Restarting and i find it in error status only.Mostly PO/PR release workflows. Please help me on this How to restart workflows.
Regards,
HariGenerally as I far I know in my limited knowledge, you restart a WF:
1. Some step during execution hanged or erred out due to unknown reason may be due to lack of authorization
2. Rule failure
3. Time gap
4. Missing data
Overall and simply to say to use this transaction where it is possible to continue from the exact point of failure without a new instance.
Regards, IA -
How to restart workflow step by RIDC?
Hello everybody,
I have a problem with the writing records to the wf_in_queue.hda. Horrible... ;o)))
I'd like to restart workflow steps automatically by RIDC (java code).
Can you write me which java code can i use?
Thank you
MartinNot sure if RIDC has necessary functions.
Take a look at CIS: http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/c10_cis.htm#i1092638 -
Change or Restart Workflow and Skip to Workflow
You have the option in server settings to "Restart current workflow for the selected projects", with the choices of skipping to current workflow stage or to a particular workflow stage. Using a new 2013 project server workflow neither of these
choices work. The project in each case is returned to the very first workflow stage.
Is this a bug or badly designed workflow?
Is this also the case with legacy 2010 workflows?
rgds
Mike
Mike MahoneyMike,
Thanks to John on the Product Team, I think I can explain what is going on.
I am going to assume you have a workflow similar to the one below? Some simple logic, a wait event and a transition or some type.
As the workflow progresses in the above case, it will log a message out, then wait for the submit button to be pressed before transitioning. If you try to use the Change / Restart workflow function and choose Restart > Skip to Stage 3, what
you will see is the workflow restart, log Stage 1 to the history list, and then wait for input. There is no skipping through as the workflow is waiting for the event.
The new workflows, whilst allowing looping etc, are essentially still sequential in nature, so to skip though the various stages, they need to start at the beginning and then progress through the stages depending on the logic in the stage transitions.
Just like in 2010, to get something to progress, you need to introduce some special 'Skip to Stage' logic (for want of a better phrase), with this logic, you can tell the workflow 'If the workflow is being run normally, or restarts the workflow and includes
this stage' execute the actions within. This is achieved by using the 'Include Stage' condition I mentioned in a post above. In the example below, I have wrapped the logging and the Wait for submitted event in an 'Include Stage' action (and added
some extra logging)
Now when this workflow runs normally, it will go through and execute everything, including the bits inside the 'Include Stage' action because the workflow was started normally (as in the name).
However, if I choose to restart > Skip to Stage 3 for instance, the workflow will realise it is in 'Skip to Stage' mode and not execute anything in the 'Include Stage' action as the workflow is not being run normally, nor is that stage included (we
are skipping to Stage 3). As the Wait for Submit is not executed, the workflow will not wait for the submit button to be pressed and progress without issue to the desired stage. From a logging perspective, you should see something like 'Stage 1 > Leaving
Stage 1 > Stage 2 > Leaving Stage 2 > Stage 3 > Included Stage 3.
It took some time, but I hope that explains what your seeing. If it doesn't, well it does give a good overview of how to use Skip to Stage logic in 2013 workflows.
Alex Burton
www.epmsource.com |
Twitter
Project Server TechCenter |
Project Developer Center |
Project Server Help | Project Product Page -
Restarting workflow in SRM 7.0
Hi,
In SRM 5.0, we could restart workflows manually with triggering an event of the BOR object manully.
Is there any similar way of doing it in SRM 7.0? This is sometimes required, for example why the approver rules are changed and some more reasons. The first level does sometimes delete the active workflow and starts a new one.
I tried triggering the event "READY_FOR_WORKFLOW" of class "SAPSRM/CL_WF_PDO" by passing the GUID of the shopping cart and also passing event container value of Initiator. the workflow is started and it is going to error.
Can anyone help in this case ? Any other way of doing it?
Thanks,
SivagamiHi,
We have some custom code to restart workflows in SRM 7.0. But I believe the standard must offer a standard tool to restart workflow instances for technical administrators. All workflow I know can be restarted with standard tools. In most cases this is possible with triggering an event.
For example a new Shopping cart workflow could be manually triggered in SRM5 with the standard report u201CBBP_PDH_WFL_DB_UPDATE_BACKu201D. I believe trigger a bus2121 is also possible in the meantime. What program should a customer use in SRM70?
Thanks,
Sivagami -
Hi all,
I need to restart workflow which is in status STARTED. Ive tried transaction SWPR but there I can restart only workflows in status ERROR.
Is there possibility to restart my workflow?
Thanks for your answers,
Kind regards,
Petr.hi petr pinos,
Try with this wapi " SAP_WAPI_ADM_WORKFLOW_RESTART" where you have give the workitem id as the import parameter and the person responsible.
Keep in bind the workitem id that you are going to give in this wapi the workflow workitem id not the task workitem id.
And one more thing is, the person responsible should have the authorization for triggering this workflow if not make the workflow as a general task.
Hope this will solve your problem.
Regards
Balaji E. -
Restart Workflow on changing the SC value
Hi SRM Champs,
There is a interesting requirement in our project for Shopping Cart workflow with value limit approval.
Here, for the workflow there are two approvers APPROVER1 and APPROVER2 with the following condition :
upto 1001 $ > more APPROVER1 should approve
from 10001 $ > more APPROVER2 should approve
Now please look into the below scenario :
When creating a shopping cart passing values like qty as 1 and value as 10020 $ and ordering the shopping cart. The system should determine the only 2 Approvers it is happening perfectly.
But,after approved by the APPROVER1 ( Remember APPROVER2 yet to be approved) The requester changing the value as 1600. Now the value is < 10001 Now workflow should restart and control should go to APPROVER1 this is not happening, wherelse the Shopping cart is showing to be approved by APPROVER1 in the check status.
Logic should be whenever changes are happening in SC workflow need to restart and approval process start from the beginning.
Please help in this direction, any help shall be profoundly appreciated and rewarded points.
Regards,
Vikas.Hi Imthiaz Ahmed,
Please accept my apologies first for the late reply.
Thanks for correcting me as it has it should have been as follows :
Now the value is < 10001 Now workflow should restart and control should go to APPROVER1 this is not happening, whereas the Shopping cart is getting approved in the
check status .
Hi Nimish Sheth,
Thanks for your suggestions, we have implemented all the suggestions given you, but unfortunately still the workflow is not getting restarted as expected !!
Dear Friends,
This issue is still pending from our development team and the client is expecting some feasible solution. If you have any idea, please suggest, it would be a great gesture.
Regards,
Vikas. -
Forward Work Item And Restart Workflow
My problem is that:
Requester: John
Manager: Peter
John shops a SC. when the workitem comes in Peter´s Inbox, he decided to Forward this Shopping Cart to Jonh again.
In this moment Peter can change the shopping cart and he has the button "Save".
When he saves, the SC is automatically approved!!!!! I would like that when the shopping cart back to John the workflow must restart... It is possible?
Thanks!System checks workflow start condition. You can search information in the <a href="http://help.sap.com">http://help.sap.com</a> .
<a href="http://help.sap.com/saphelp_srm50/helpdata/en/37/830b3b7e7ef74de10000000a114084/frameset.htm">http://help.sap.com/saphelp_srm50/helpdata/en/37/830b3b7e7ef74de10000000a114084/frameset.htm</a>
Regards,
Masa -
Restart Workflow after error in Production Server.
Hi Experts,
We had a Problem in PO Release in production Server no we have set the release strategy again.
1)Can i Restart the Workflows from that date so that the PO which where in error will work with the new release strategy ?
2) T code to Restart WF after Error is SWPR Right ? or should i Use SWPC
3) Please tell me where to find WorkItem ID
Regards,
HariHi,
if you know for what Key id you had wflow errored out, you can find it. FOr example, any invoice, Notification, etc., go to that document or notification, and click on the "Services for Obj" icon and go to workflow--->wflow over view. THis is how you get to the wflow log. And in that, youcan choose the Technical Details view which gives you the witem id.
Instead, you can use SWI6 and give the BO and exact key and you will get to wflow log..Or you can use Txn SWI2_DIAG..
Hope this helps
venu -
Overwrite sec level in order to restart workflow especially in parked SC
Dear Friends
how can you achieve generally the following requirement.
Generally in our company all user have the security level BBP_WFL_SECURITY= 4 in the personalization tab of TXN
SU01.
How to achieve that workflow is always restarted when changes are made in parked SC. After this changes are
made the user will order this SC.
Anyhow it is not possible to overwrite security level BBP_WFL_SECURITY= 4 which is set in the personalization.
Because after clicking Order button the privously determined agents are displayed as Approver.
Regards
MarcoHi,
did you mean BBP_WFL_SECUR_BADI ???
if so, sorry I forget to post our
implementation in this BADI due to which we have tried to achieve this req.
Regards
Marco
Z_EBP_WFL_SECUR_BADI -
our implementation
IF i_e_header-created_by = actual_user.
SELECT * FROM sww_wi2obj INTO TABLE lt_sww_wi2obj WHERE
instid = object_id
AND typeid = 'BUS2121'.
LOOP AT lt_sww_wi2obj INTO ls_sww_wi2obj.
SELECT * FROM swwwihead INTO TABLE iswwwihead WHERE
wi_id = ls_sww_wi2obj-wi_id AND
wi_stat = 'WAITING'.
IF sy-subrc = 0.
new_sec_level = 2.
EXIT.
ENDIF.
ENDLOOP.
ENDIF. -
Hello,
How to restart the the workflow after dump. I know the t-code SWPC. But the workflow is not displaying in this transaction.
Will i have to delete it logically and restart with reference.
Note: It has a subworkflow.
Thanks in advance,
Bikash.Please follow the following links
Workflow Restart After Error - SAP Business Workflow - SAP Library
http://help.sap.com/saphelp_nw70/helpdata/en/f4/84322acb0211d1950d0000e82dec10/frameset.htm
regards,
Modak -
Restart Workflow Version Numbering
Hi,
How can we restart the workflow version numbering? For example, if I have 5 versions of the workflow and the version 5 is the correct one. So, I delete all other versions of the workflow and transport the version 5. Now, I want this version (version 0005) to be numbered as version 0000 or version 0001. What is the option for this?
Warm Regards,
Jubish JacobHi,
It is that the requirement has changed entirely and the client specified that they want only one version in the system. So, thought of deleting the unnecessary versions.
Now, as version 5 is the required version, I deleted all other versions up to version 4. I wanted to make this lone version as version 1 as otherwise it seems awkward. So, is there any option for this?
Warm Regards,
Jubish Jacob -
Manual Restart workflow error in SWPR
Hi ,
i have designed the custom workflow for PM module , i'm explaining the scenario , after getting the workitem of wca(work clearance) closed by person A , the item should go to person B and so on ...
here the problem is the workitem is received by A and he completes the work then after it is disappearing , at that time when i check in SWPR transaction it is showing error , when i restart the workflow by clicking on error , it is working fine and completes the workflow ..
every time in this step i am restarting working . these happening in production client ,,in development client it is working fine ....
please tel me the permanent solution for this problem , because every time we cant restart the workflow...
we given the the object to the end user ..
help me ASAP .
THANK U ....Hi,
I guess that the problem is with the authorizations of the user A. The agent assignment of the following step is executed by the user A (not the system user WF-BATCH), and he does not have needed authorizations. You should see an error message in the workflow log (agent execution failed or something like that). When you press the restart button, the agent assignment is executed by your user ID, and agent assignment works properly. This was just an educated guess. Problem might be somewhere else too, but in any case you need to find the error message(s) from the technical workflow log - otherwise we are just guessing.
How to fix this (if the problem is with the missing authorizations):
- Give needed authorizations to the user (do authorization trace to find what is missing)
- If above is not possible, check if you can change the code of the agent assignment rule (if it is a rule based on function module)
- Set a dummy background step between the approval steps A and B. This will change the user from user A to user WF-BATCH (who most likely has the needed authorizations)
Regards,
Karri -
RESTART WORKFLOW WHEN IT IS IN ERROR
HI,
I want to restart the workflow when it is in error , is there any option in workflow builder to acheive this , so any one suggest me ...Hi,
If the workflow ends in error. You have to do manually.
Other wise what you can do is, write a custom program,
1) You have to get all the workitem id of the workflow which are ended in Error.
2) Then Restart the workflow using FM SAP_WAPI_ADM_WORKFLOW_RESTART (as Pavan Mentioned)
3) Then schedule this program once a day or your convenient time
Regards,
Surjith -
SWPC to restart workflows after error
I use SWPC normally to restart WFS after errors,But i can only do that for some Workflows..
Do i have to include the WFs in any configuration to be able to restart them after error..
For instance for a leave request Workflow when it is ended with errors,I was able to give the WI in teh SWPC and continue the WF
But for Other WF when it ended with error i am not able to see those WIS in SWPC to restart them..Please Suggest if tehre is any alternative to restart those WF's ?
Thanks in AdvanceHi,
Try using SWPR. Use this transaction where it is possible to continue from the exact point of failure without a new instance.
Hope it helps..!
Regards
Narin -
Stop and Restart Workflow on Item Edit (sharepoint online)
How can I stop running the workflow instances for the current updated list item?
I mean, how can I recognize the item that just updated and how can I stop the workflow
that access with this item? in s.p online.
thank you!Hi,
According to your post, my understanding is that you wanted to cancel workflow in SharePoint online.
We can pass the ID of the list & list item to get all the instances, then you can enumerate each of them and find the one you want to suspend or terminate.
To pass the ID of the list and list item, you can refer to the following code snippets.
// connect to the workflow services via a CSOM client context
var clientContext = new ClientContext(siteCollectionUrl);
var workflowServicesManager = new WorkflowServicesManager(clientContext, clientContext.Web);
// connect to the instance service
var workflowInstanceService = workflowServicesManager.GetWorkflowInstanceService();
// get all instances
var workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(listId, listItemId);
clientContext.Load(workflowInstances);
clientContext.ExecuteQuery();
Then we can find the list item workflow to suspend as below.
foreach (var instance in workflowInstances)
// is this what we are looking for?
// if so, suspend it
workflowInstanceService.SuspendWorkflow(instance);
// or you can terminate it
workflowInstanceService.TerminateWorkflow(instance);
http://sharepoint.stackexchange.com/questions/69366/how-do-we-stop-a-sharepoint-2013-workflow-azure-workflow-programmatically
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support
Maybe you are looking for
-
CS5 doesn't offer basic audio functionality (playback stops on page turn)
I would like to place a sound file and in the exported pdf have the sound file play (via button or playback toolbar), without stopping on page turn. To me, this is a very basic function to ask for. But guess what? CS5 can't do it. Turn the page and t
-
Have been using Thunderbird for years and it has worked just fine. Have not made any changes to any of the settings. My boyfriend also used T'bird for years but last year it stopped sending messages and he finally had to stop using it. My T/bird is b
-
Full page pull out tray, pull only object workaround
Hi, Is there any way yet, when creating a pull out tray/slider using the scrollable frame, to only have a object within the container pull the content, rather then being able to pull from anywhere within the container? Basically what I am trying to d
-
Sales view / Tax classification upload in material master - LSMW
Hi All, While Creating in LSMW using RMDATIND Batch input method for material mater creation . I am getting an error of "you have not fully maintained tax classification" (M172 error message). LSMW details are as follows: Project, sub-proj, object :
-
Iphoto 06 crashes when importing
Recently, my hard drive on my powermac crashed. I replaced the hard drive and started from scratch. I also have a g4 laptop. Rather than reloading my operating software and files, I transferred the entire laptop's contents to the repaired computer. T