AP Invoice Workflow fails when approver is terminated

We are on EBS 12.1.3. I am trying to find out what is the best practice solution for when approvers are terminated while AP Invoice Approval workflow is running.
These are the steps in reproducing the problem:
1. Create invoice and send for approval.
2. Terminate the approver.
3. Let the approval request notification time-out.
4. Workflow tries to send the reminder and errors out.
Error: WFNTF_ROLE
Error Message: 3205 <Employee #> is not a valid role or user name.
Why doesn't the workflow go to the approver's supervisor?
Edited by: manu.mur on May 16, 2013 1:20 PM

While the error presents in the workflow layer the problem actually lays in HR. It is responsibility of HR to find a mechanism to define a user to take over on the responsibilities (respond to notifications) of the expired employee/user.
You can use the API WF_MAINTENANCE.PropagateChangedName(oldUserName, newUserName) so that all the references to the expired user name are changed to the name of a new user name that will be able to respond to the notification - or receive the remainder notification in this case.
Workflow does not use a hierarchy for these cases, though it would be a considerable enhancement request.
Regards.
Alejandro

Similar Messages

  • Workflow fails when page is created through the CreatePublishingPageDialog.aspx. The settings for this list have been recently changed.

    Hi,
    I've created a content type and attached a workflow to it so when I create a publishing page the workflow should run.
    My Page creation is based on the "_layouts/15/CreatePublishingPageDialog.aspx" page in order to be allowed to fill in the required fields on item creation (so I don't have to go to the page afterwards and choose "edit properties").
    On my page library I have "Require content approval for submitted items" and "Require documents to be checked out before they can be edited?" set to YES.
    This design has worked fine before I added my workflow. However now when I click save or check in/publish I get the below error. My guess is that the workflow starts (and blocks) right after I fill in the filename and click next in the "CreatePublishingPageDialog.aspx"
    step to go to the required fields.
    If I go back to my page after I receive the error below I can edit the required properties again and then publish the page correctly.
    How do I avoid this? thank you
    My pages are created through
    Checking the ULS log I get this error:
    Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: The settings for this list have been recently changed. Refresh
    your browser before editing this list.   
    at Microsoft.SharePoint.WebControls.BaseFieldControl.OnLoad(EventArgs e)   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.HandleError(Exception e)   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest()   
    at System.Web.UI.Page.ProcessRequest(HttpContext context)   
    at Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)   
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Hi Jan,
    Thanks for posting this issue, Kindly try out with the hot fixes provided in the below mentioned URLS
    https://support.microsoft.com/kb/2536591?wa=wsignin1.0
    http://elblanco.codeplex.com/releases/view/6856
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Endless Loop in Approval of FI Invoice Workflow

    Hi Everyone,
    I was having a problem with the workflow template WS90400009 - Approval of FI Invoice Workflow.
    When the Proof of Performance approver is trying to approve/reject an invoice, the workflow is getting into an endless loop in the class method CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH.
    This did not occur previously in any of the FI approval workflows and neither is it affecting any other workflow in the system. How could this suddenly happen?
    Eventually, the system times out and the workflow log shows "In Process"...but does not process further!
    Thanks in advance for the help!

    Hi Everyone,
    Thanks for the replies.
    We just corrected the issue with the OSS Note 935994 -
    Symptom :
    In some cases, a timeout that is triggered by an endless loop in the CL_SWF_RUN_WFM->CHECK_CB_IN_DEADL_BRANCH method occurs after you execute a work item.
    The timeout only occurs for workflow definitions with nested loops.
    This issue begun after some modifications were done in a workflow with modelled deadline.
    All workflows were going into a "hang" state.
    Thankfully, issue is now resolved.

  • Invoice Workflow : Dialog work item created

    Hi,
    I am not fully aware of workflow but can manage to check the logs and status.
    My question is: My Invoice workflow status is 'READY' but i dont know how to find to whom the work item it currently held.
    When i check the log it says:
    WF-BATCH                       Dialog work item created
    How can i check, which approver currently held work item so that i can chase them to approve the item.
    There are no agents assigned to the workflow and it is General Task.
    I would apprecaite if you could share me some information about this.
    Thanks,
    Macs.

    Hi,
    About Invoice Workflow :
    WS10400016 – Without approval,
    WS10400017 – One-step approval,
    WS10400018 – Two-step approval,
    WS10400021 – Administrator approval
    The relevant approval workflow is started, depending on completion status, invoice category (credit memo or invoice), creator role, and total value of the invoice.
    You should have maintained approver in your org structure (PPOMA_BBP)
    Please have a look at  :
    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm
    Kind regards,
    Yann

  • Logistics Invoice workflow

    Hi All,
              Requirement is for a Logistics Invoice Workflow
              triggered when 1> Price variance block(P) 2>Qty variance block (Q)
                                    3> when GR not found --- dont know which event this raises
              Also 1 invoice can have associated multiple PO's . The PO's can have different buyers . So the buyers should be sent the workitem with only the details of the Po's that he is responsible for  . Also if there is both a qty block and a price block then he should receive just 1 workitem . I don't think they require functionality as in workflow WS20000397 where the workflow automates the change / delete/verify actions and if change is selected then loops through the PO's in the change mode allowing to change price . This functionality will be performed manually , so the workflow itself is more like a notification .
               This is how I was thinking of tackling this .
               1. Get the list of blocked work items for the current invoice into a multiline.
               2. Get the buyers for each invoice line item via the associated PO Litem
                   into another multiline
               3. Get a list of buyers from pt 2 and remove duplicates . move into another multiline .
               4. call a subworkflow ( once for each line of the multine for  buyers ) .
               5. This subworkflow will get the line items belonging to the buyer
                   it will then call a task which will list the line items ( similar to bus2081-LISTBLOCKEDPRICEITEMDATA ). might have to create another method for  LISTBLOCKEDQTYTEMDATA  and call the task based on whichever event is called . I don't know in which category would the no GR created block fall under ?
    The work item can also contain object references for Invoice and each of the PO's so that he can view them as links and display the invoice and PO's .
                   The task will be completed by a invoice.released event , but if so then all the buyers will have to wait for the invoice has been released . maybe I can check if the relevant workitems have been unblocked . If not then send him another workitem . If the user chooses to reject the workitem the requirement is sent to the Accounting clerk which is fine .The workitem will remain in his inbox until he manually completes the workitem .
                   I hope this would work . The only thing I'm not very clear is how I can get a single workitem for both qty & price variances if they occur at the same time as they are 2 different events and will create 2 different workflows ?
    Any ideas let me know .

    Hi Radha,
    You can trigger a single workflow from different events. Even in this case it will create two workflow instances for the different events that are triggered. I guess you will have to wirte a small function module which can check for the PO properties. If it has both then you can run the workflow for any one branch. This is what comes to my mind.
    For the GR not present scenario you can just have a workflow once an Invoice is created and then run the workflow only if the GR is not present. You can have a check function module for that too.
    Hope this helps,
    Sudhi

  • AME Invoice workflow - When invoice moves from Approval Require to Not Req

    Hello,
    I have a small Issue with AP Prepayment invoice Workflow.Version: 12.1.1
    Issue Des:AME has been configured specifically for Prepayment invoices. however, when Initiate Workflow is clicked, the Approval status changes from Required to Not Required (instead of Initiated).
    AME Setup:
    1.IF supplier amount > O get approval from approval-grp.
    Steps:
    1.Create a invoice with amount 1000 and distributions with 1000 amount.
    2.Validate Invoice
    3.Intiate Approval using actions "Intaiate Approval" the Approval status changes from Required to Not Required (instead of Initiated).
    4.Invoice shows status 'Not Required'
    5. first time the customer was using AME Rule for Prepayment invoice type with approver type as HR People and In the employee form, the supervisor relationship was not defined.
    Any idea on why this is not working will be of great help!
    Regards,
    Venkat

    HI Venkat,
    Check the AME rules, Is the Priority filed have any values set or not.
    The Priority must be set to 1 and try again.
    Regards,
    Sunil

  • Invoice Parking - 2 Level Approval Workflow not working

    Hi,
    I am having trouble making the two level approval work for invoice parking functionality. I have maintained Release Level = 2 and Sub w/f = WS10000053.
    Rest I have configured as detailed in this link http://www.thesapconsultant.com/2008/09/simple-sap-workflow.html
    When i test the above workflow from SWDD it is working fine. i.e., first one user gets the workitem and after he approves/rejects, it is going to second user. This proved that the user assignment i have maintained is correct.
    But when I park the invoice (using "Save As Completed" button) using FV60, it only going to one user. After he/she approves/rejects it is not going anywhere. I checked in SWI1 transaction where no open tasks (error or hanged etc) are seen.
    Can anyone please advise if i am missing anything?

    Dear Rachit,
    There is a dedicated forum for Workflow i.e. SAP Business Workflow
    Post your thread there, you will get fast response.
    I can suggest you one thing check the agent assignment is done or not
    Regards,
    Chandra

  • Invoice workflow   "No Approval available"

    Hi Guys,
      I have an issue with custom invoice workflow...when an invoice is created and a approver is added via add approver...after adding those approvers....the approval preview shows those added approvers as to be approved by...but after posting the invoice...if i see the approval preview...i can see that both added approvers node doesnot reflect the names of the approvers inspite it is showing 'no approver available'....in those added nodes.....and the workflow didn't start....this whole scenario happens...randomly..when user tries to add an approver....
    we are in SRM5.0    sp SAPKIBKT06
    Please help me out to fix the issue....
    Full points will be awarded...
    Thanx in advance,
    Radha

    Hi
    Which SRM version and workflow are you using ? Is it Item-Level Workflow or SC-Level Workflow ? Seems to be a bug or might be due to incorrect workflow configuration settings.
    <u>Please go through the SAP OSS Notes below -></u>
    Note 581191 Who is allowed to insert or replace an approver
    Note 185878 Find approver for web invoice using PO number
    Note 185700 Additional Docu. - SAP Bus.-to-Bus. Procurement 2.0A
    Note 452464 List of re-viewers is not updated
    Regards
    - Atul

  • Restrict editing/deleting item when approval workflow is in progress

    I have a list for contributors to submit documents and activate an approval workflow. The requirement is to restrict all users from editing and deleting the document once the workflow is activated. After the workflow is completed, if the document
    is approved, all users also should not be able to edit/delete the item; if the document is rejected, users should regain the permission to edit/delete the item.
    I had no problem with restricting edit/delete permission after the document is approved by adding a Declare Record action after the content approval status is set to approved in SPD.
    However, the workflow was not able to complete when I added a Declare Record action in the "When the Task Process Starts" step and an Undeclare Record action in the very beginning of the "When the task process completes" step to restrict users from editing/deleting
    the item when the workflow is in progress.
    After I activated the workflow and approved the item, the Workflow status shows Approved but the Approval status still shows Pending. In addition, the "Approval Workflow Task is complete" (shown in the following image) is missing in the workflow history,
    which seems to me that the workflow task is never completed.
    Please advise me the proper way to restrict users from editing/deleting the document while the workflow is in progress. Thank you.

    then use SPD to customize the task process to lock them out upon starting and give them rights again upon rejection.
    http://office.microsoft.com/en-us/sharepoint-designer-help/use-the-task-process-editor-for-approval-workflows-HA101863538.aspx
    Please mark my response as an answer if appropriate.
    Learn.SharePoint.com
    Hi
    How was this resolved in the end. I to want to disable editing of document whilst workflow in progress. In SPD how is this achieved?
    Thanks

  • Custom SRM workflow: task forwarded to last change author when approving.

    Hi experts.
    We encountered this strange behaviour when approving a Purchase Order, previously rejected.
    More precisely: the PO is created by user A, user B rejects it, user C approves it, then the same workitem sent to C is forwarded to B instead of being routed to user D through the flow. I do not want this to happen.
    Is there a way I can modify/customize this?
    Many thanks.

    Short answer: Yes.
    Longer answer: only you know which workflow template you are using. Is it a standard SAP template? If so, which one? Is it your own custom workflow? If so, you have to explain it if we are going to be able to provide any help.
    I won't be surprised if your response is that you are using the standard workflow that you customize with release procedures. But I can't know that, so please (everyone) be specific and informative when you ask questions. The readers here may all have some workflow knowledge, but most of us are not very good at reading other people's minds.
    PS: Version information can also be quite significant. In some cases there are big differences between e.g. R/3 4.6C and ECC 6.0.
    If you have used the release procedure customizing it could be your customizing that causes the behaviour you have observed. Please give some more information about your current setup.

  • How to setup notifications when workflow fails ?

    Hi all,
    new to this, so please help.
    I want to receive notifications when a workflow fails for whatever reason.
    I am using R12 (12.0.4) on linux.
    Is there a way to configure this through OAM perhaps.
    Many thanks in advance.

    Hi;
    Please check and see its helpful for your issue
    Oracle Alert and WF mailer
    Re: Oracle Alert and WF mailer
    plz help me...!!!! Workflow Notification Mailer
    Re: EBS work flow
    Regard
    Helios

  • When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box,

    # Question
    When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box, but goes to some random collection of pages often from months ago. Very frustrating - can anything be done to COMMAND it to save current pages and re-open there? (As I said, I have this box checked in the options, but it does not work ..

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

  • AP Invoice workflow - When no rules matches in the AME

    Hello,
    I have a small Issue with AP Invoice Workflow.
    AME Setup:
    1.IF supplier amount > 600 get approval from approval-grp.
    Data 1:
    1.Create a invoice with amount 700 and distributions with 700 amount.
    2.Validate Invoice
    3.Intiate Approval using actions "Intaiate Approval"
    Able to get the notification and able to track workflow process in workflow Admin
    Data 2:
    1.Create a invoice with amount 500 and distributions with 500 amount.
    2.Validate Invoice
    3.Intiate Approval using actions "Intaiate Approval"
    4.Invoice shows status *'Intiated'*
    Not able to see workflow process in Workflow Admin and no updates in View Invoice Approval History.
    Any idea on why this is not working will be of great help!
    Cheers.

    Hi,
    As per my knowledge, if rules are not matching, then status would be "Not Required" and not "Approved" after initiating approval.
    I was testing some scenarios with AME involving "Prepayments" alone. Hence, if i create an Invoice, then Status would be "Not Required".
    Also, pls login to Sysadmin and check status of the Workflow.
    Also, if AME is not able to find an approver, then the notification will be forwarded to the "Administrator Approver" defined in Configuration Variables Window.
    There we provide the UserId of Administrator Approver. Generally, if nothing is specified, Sysadmin would be the Administrator Approver.
    Is there any other condition which you are using apart from >600 ?
    Regards,
    guru

  • SharePoint Designer Workflow 'Failed on Start', SP Logs has WorkflowValidationFailedException, works ok when recycle IIS App Pool and restart

    Hi there, 
    I know there are a lot of posts about "Failed to Start" errors, but I have yet to see one that describes our problem.
    We have workflows built with SharePoint Designer 2007
    Normally these workflows start ok and work completely
    Occasionally though they will all fail to start, instead showing "Failed on Start (retrying)" in the Workflow Status and the following exception in the SP Logs:
    01/16/2015 15:43:27.28 w3wp.exe (0x15D4) 0x1A00 Windows SharePoint Services Workflow Infrastructure 936l High Engine RunWorkflow: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation. at System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider) at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime) at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime) at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance) at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext con...
    01/16/2015 15:43:27.28* w3wp.exe (0x15D4) 0x1A00 Windows SharePoint Services Workflow Infrastructure 936l High ...text, WorkflowInstance workflowInstance) at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context) at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId) at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId) at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
    What is strange, is that if I recycle the App Pool for the SharePoint site and then restart the workflows, they all work fine for a time. Until the next time they don't =) 
    The workflows must be configured ok since they do work complete at time, but I wonder if there is something with the memory usage of the app pool or something that is being re-compiled when the App Pool is recycled
    The App Pool is set to recycle nightly, and when virtual memory > 1700MB or memory > 1000MB
    Is anyone able to shed any light on this problem?? Or what steps I can take to debug the problem further.
    Thanks in advance
    Miguel Clark =)

    Hi Sudip,
    Thanks for the link.
    The workflows in question are SharePoint Designer workflows using standard actions, so unsure exactly how to check the 'correlation tokens' and 'DLLs', plus the workflow works fine as soon as I recycle the IIS App Pool, so do not see how these could be the
    problem
    As to the 'lodctr' commands, we have tried  these in the past, to no effect. Though may try them again next time the issue comes up just to see if it does the same thing as recycling the app pool.
    My big question here is "why would it suddenly work after recycling the app pool??" I feel like it must be something memory related, since recycling the app pool releases the resources used by the IIS worker process.
    Miguel =) 

  • Which AP Invoice Workflow launched in R12

    Dear experts,
    Here is the background:
    I am looking at a R12 environment, migrating from an 11.5.10 with customisations.
    In both environments I am looking at the workflow's that are lauched following the creation of a simple Invoice under 'Payables Manager' , followed by clicking on the 'Initiate Approval' invoice action.
    In both environments, there is a subscription to the business event: 'oracle.apps.ap.event.invoice.approval' which launches the workflow Item Type: APINV. This set up is identical in both.
    The Problem:
    When I go to Status Monitor I can see the following workflows launched after creating an invoice and initiating the approval:
    1) R12 : 'AP Invoice Approval', Item Type - APINVAPR
    2) 11.5.10 : 'AP Invoice', Item Type - APINV
    Therefore, different workflow's are lauched between the two releases. As APINV is subscribed to ''oracle.apps.ap.event.invoice.approval', why is this not launched in R12? Also, APINAPR does not have an Event item in the workflow - where is it initiated from?
    Could the differences between the two releases be to do with AME set up?
    Many thanks for your anticipated help,
    Mark

    Please see if (R12: Status of the Invoice Becomes Blank After Applying a Prepayment [ID 733006.1]) is applicable.
    Thanks,
    Hussein

Maybe you are looking for

  • Issue in crystalreportviewer

    hi, I have a database field for which i didnt selected the can grow option. so the text is truncated as expected in designer. But when i launched it in the viewer the text overwrites the next row value. it is proper in PDF and Excel output from viewe

  • Accurate time stamp PCI-MIO-16E-1

    Hello, I need measure analogue signal which is acquired after rising edge on TRIG1 is detected. It works well, but time stamp of the waveform's beginning is not very accurate. So I want to ask you about possibilities to increase time precision, becau

  • IWeb counter stopped working

    I have been creating and modifying my website successfully for several days. Suddenly today, the counters have completely disappeared from my website when viewed from any browser. I can successfully re-publish from iWeb but the counters are still mis

  • Photoshop Photography Program - Well Done !!

    I've been a Lightroom user for a few years now and found that as the applications matures, probably 90% of image manipulation can be done within that programme. The other 10% either got ignored or fudged. I've had a Photoshop CC single membership sin

  • Scope of analysis

    Hi all, How do I set the "scope of analysis" in WEBI, when I see in my report the icon is in disable mode. Can anyone let me know how to activate and the purspose of the function? Regards, Preetham