WLI2.1 Timed workflow is executing in a loop

In Wbelogic Integrator 2.1 I have created a scheduled workflow.
If you go to the start Task properties and click on the timed radio button and
put a start date for the execution of the workflow.
The worklfow starts at that particular time but never ends.
It keeps on executing the workflow again and again.
Please help.

The problem seems to have resolved itself.

Similar Messages

  • Workflow 2013 execute based upon a date

    I have a workflow 2013 that will need to execute once a month when the day of the month is the 1st working day of the month. The day could actually be the first day of the month. Is there a way that I can setup this kind of a workflow to execute based upon
    start and end dates? Is there some kind of a background process that I can setup?
    Thus can you tell me if this is possible and how to accomplish my goal?

    Hi,
    From your description, my understanding is that you want to execute a workflow once a month.
    If you create this workflow with template SharePoint 2010 Workflow, you could refer to this article:
    Creating a Timed Workflow in SharePoint 2010
    http://blogs.askcts.com/2013/05/14/creating-a-timed-workflow-in-sharepoint-2010/.
    I tried to use this method on a workflow with template SharePoint 2013 Workflow, but I cannot find the workflow under the Active section by following above article. If you create this workflow with template SharePoint 2013 Workflow, there is no a OOB method
    to accomplish your requirement. You could create a custom timer job to accomplish your requirement.
    You could refer to these articles:
    Create and Deploy Custom Timer Job Definition in SharePoint Programatically
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    Starting a SharePoint 2013 workflow programmatically using C#
    http://www.ericgregorich.com/blog/2014/10/1/starting-a-sharepoint-2013-workflow-programmatically-using-c
    Best Regards
    Vincent Han
    TechNet Community Support

  • Want to fire event receiver before workflow is execute while adding File in Document Library.

    Hi,
    I have Event receiver and workflow attached to same Document
    Library.
    Is it possible to fire event receiver before Workflow is
    executed ?
    Regards,
    Milind

    Hi,
    According to your description, my understanding is that you want fire event receiver before workflow is excuted.
    If the workflow for a list is set to auto-start, it will always execute before event receiver by default.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/3147/execution-order-of-event-receivers-and-workflow-on-a-list
    As a workaround, you can set the workflow start by manually. Then , after executing the event receiver, you can start workflow using code at the end of event receiver.
    Here is a demo for your reference:
    http://zimmergren.net/technical/starting-a-sharepoint-workflow-from-code-event-receiver
    More information about start workflow using C#:
    http://jainnitin2411.wordpress.com/2012/07/06/programmaticallystartsharepointworkflow/
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Unable to put a timed structure in a parallel for loop, error -808

    If I try to place a Timed Structure in a Parallel For Loop, the TS needs a different structure name per instance to prevent collisions. However, setting the Structure Name node  to something unique per instance doesn't work, I get error -808. Have I missed something?
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

    That got me thinking - something to do with the number of compiled parallel instances.
    Indeed, the compiler creates a number of parallel instances of the for loop in the compiled code (in my case 8), and uses the number requested at the Parallel Instances terminal (just under the Iterations terminal), which is set to 2. Therefore the compiler has created 8 instances of the Timed Structure, each in its own for loop instance, but they all have the same defined Structure Name. When launched, there is an immediate conflict because they can't share the same name, and error -808 is launched before the set Structure Name function can change it. Hence the error still shows when requesting only one instance, because the other seven still exist.
    I guess this means you can't have Timed Structures (or Timed Loops for that matter too) in a Parallelised For Loop?
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Workflow trf executing for longer time

    Hi All,
    Workflow trfc executing for longer time in transaction SM58. Why will this happen ? Is there any resolution available ? Please advise on this issue. Below are the details :
    Caller: WF-BATCH
    Function Module: SWW_WI_EXECUTE_INTERNAL_RFC
    Status Text: Transaction Executing
    Program: SAPMSSY1
    Kind Regards
    Shiva

    Hi,
    Check if WF-BATCH user is not locked or the pwd changed. The same as the process started, see the event trace if you are triggering any wflow from this. And CLick on the event and see the "REceiver Data" and "Trace Data" if any errors are there.
    Sometimes, if this user got locked for some reason, it results in issues like you mentioned.
    Hope this helps
    venu

  • Why substitution variable &input line don't execute on a loop?

    Hi Group,
    Why the line where substitution variable is assigned doesn't execute over the loop. only the first time.
    SET SERVEROUTPUT ON
    DECLARE
         v_flag NUMBER(1):= 0;
         v_counter NUMBER(1):= 0;
    BEGIN
         LOOP                     
              v_flag := &input;
              v_counter := v_counter + 1;
              dbms_output.put_line(v_counter);
              EXIT WHEN v_counter = 9;
         END LOOP;
    END;
    /thanks.

    Hi,
    user12152340 wrote:
    Thanks for your help... so there's no way to interact with the database inside a loop. I was looking a way that PLSQL block asks for different values.No, sorry. PL/SQL can't do any kind of user interaction. That's what front-end tools, like Apex, are for.
    You can have loops in SQL*Plus, but it's not pretty. See this thread:
    Re: How to give the different values to runtime parameters in a loop?

  • Create Timing Source problem in RT deterministic loop

    I'm updating an old LV 7.1 vi to run with LV10 and DAQmx.  We have a deterministic timed loop driven by an external 10 kHz clock source.  As I understand, it should be possible to set up this functionality using a timed loop and the DAQmx Create Timing Souce vi.  The attached image shows how I wired it up.
    This vi is deployed to a PXI system running LV 2010 with 6608 system timing card (Dev 1).  I'm using counter 1 on the 6608 to create the timing source.  I have an external 10 kHz square wave (5 V p-p)  connected to Src1 (PFI35) on Dev 1.
    The problem:  the loop seems to be using a 1 kHz clock, even though I've specified the counter and input for a 10 kHz source.  If I choose a frequency of 20 Hz (500 edge counts for a 10 kHz clock) the actual loop frequency is only 2 Hz.  But, the loop stops if I disconnect the 10kHz signal, so it is somehow using the specified counter !!??  How can this be?  Is there additional counter configuration needed here??  I've verified the external clock signal is exactly 10kHz with an oscilloscope.
    Thanks for any thoughts.
    Solved!
    Go to Solution.
    Attachments:
    CreateTimingSourceTest.JPG ‏37 KB

    OK.  I solved this one.  You need to wire a "1" constant to the period input node of the timed loop.  The default value of "10" will only execute the loop on every 10th clock pulse, hence the factor of 10 decrease in loop frequency.

  • Closing a serial port after executing a for loop of write and reads.

    Hello,
    Labview is opening and then closing each write to the port. I have tried to leave the close outside of the for loop, but labview wont allow it. What do I need to change to make all the writes and reads execute on 1 open and close of the serial port.?
    Thanks.
    Attachments:
    Controller.vi ‏27 KB

    J_es--
         The program that you posted looks to be ok for the most part, you might consider putting an open after your configure (but that's trivial). The other thing that is a minor issue is the loop tunnel coming out of your for loop is currently being auto-indexed.  This function is used to index data for each interation of the loop.  You are using a static address (not an array) and so you don't need this.  If you right-click and remove the auto-index the broken wire will go away. Other than that it should be ok.
         I would suggest looking at one of the shipping examples that come with LabVIEW.  "Basic Serial Read and Write" is essentially the same thing that you are doing and is tested here and might save you a bit of time.  Anyway, take a look if you have a second. Best of luck with your application!
    John H.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Error in the workflow which executes background synchronous webservice task

    Hi,
    I am very new to SAP Workflows. I created a workflow with one activity step in it. The activity step actually executes a task TS77000300 (synchronous calculation - its an SAP task). When I test it. I get an error "Error when starting the service" with exception 8987, area SWF_HTTP and message 125 - Object WEBSERVICE method PROCESSBATCH cannot be executed.
    I checked in WF_EXTSRV tcode, there is an entry for the background synchronous webservice task.
    I checked in SWLWPTSSID table, there is an mapping between task-id and service id from WF_EXT SRV.
    I am not sure where its going wrong. Any help resolving this issue is appreciated. Thanks a lot.
    Regards,
    Raja

    Gurprit/All
    Thanks Gurprit for the direction.
    Even if I execute the the workflow( WS77000647 from SAP). The first step invokes Process Dialog which asks for three numbers and two operands. When I input all the input params and click calculate button, the second step which is actually the background synchronous task, results in the same error in the workflow log and in the Process Dialog page browser it says "Entries sent for calculation" with the same input screen.
    Am I missing anything here to run background synchronous task? Any help regarding this is appreciated.
    Thanks & Regards,
    Raja

  • Dbma_scheduler job executing procedure that loops through all client schemas in the database rolls back transaction incase of exception

    Hi,
    Needed your inputs on approach to implement a job using dbms_scheduler.
    We have around 2000 schemas. Each schema has a package with 2 procedures.
    The requirement is to create a single job in SYS that would loop through each schema and run the procedures at a specific time ( once a day) and send email notification on success or failure.
    Job script:
    BEGIN
        dbms_scheduler.create_job( job_name=> 'LOAD_EACH_SCHEMA_AUDIT_DATA',
                                   job_type=>'PLSQL_BLOCK',
                                   job_action=>'BEGIN  sys.p_loadaudit;     
                                    END;',
                                   start_date=>systimestamp,
                                   repeat_interval=>'FREQ=MINUTELY;INTERVAL=1',
                                   number_of_arguments=>0,
                                   enabled=> true,
                                   comments=>'Job repeat interval is every 5 mins' );
                                   END;
    Note: for testing purpose i have set repeat interval to minutely.
    Procedure job will be executing:
    Procedure sys.p_loadaudit:
    CREATE OR REPLACE
    PROCEDURE p_loadaudit
    AS
        v_count          NUMBER:= 0;
        lv_error_message VARCHAR2(4000);
        vstmt            VARCHAR2(4000);
    BEGIN
        FOR i IN
        ( SELECT username FROM dba_users WHERE username LIKE 'ABCFIRM%'
        LOOP
            vstmt:= 'begin ' || i.username || '.pkg_audit_info.p_load_coa; end;';
            EXECUTE immediate vstmt;
            vstmt:= 'begin ' || i.username || '.pkg_audit_info.p_load_am; end;';
            EXECUTE immediate vstmt;
        END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
        lv_error_message := 'Error in procedure p_loadaudit: ' || SQLCODE || ' -ERROR- ' || SUBSTR(
        sqlerrm,1,300) || '*' || dbms_utility.format_error_backtrace;
        raise_application_error(-20002,lv_error_message);
    END p_loadaudit;
    Example of one schema: SCHEMA_01
    create or replace
    PACKAGE pkg_audit_info
    AS
    type cursortype
    IS
        ref
        CURSOR;
            PROCEDURE p_load_COA;
            PROCEDURE p_load_AM;
       END pkg_audit_info;
    create or replace
    PACKAGE body pkg_audit_info
    AS
    PROCEDURE p_load_COA
    AS
    BEGIN
    INSERT INTO TABLE1();
    EXCEPTION
    WHEN OTHERS THEN
        lv_error_message := 'Error in procedure pkg_audit_info.p_load_COA: ' || SQLCODE
        || ' -ERROR- ' || SUBSTR(SQLERRM,1,300) || '*' || dbms_utility.format_error_backtrace;
        RAISE_application_error(-20002,lv_error_message);
    END p_load_COA;
    PROCEDURE p_load_AM
    AS
    BEGIN
    INSERT INTO TABLE2();
    EXCEPTION
    WHEN OTHERS THEN
        lv_error_message := 'Error in procedure pkg_audit_info.p_load_AM: ' || SQLCODE ||
        ' -ERROR- ' || SUBSTR(SQLERRM,1,300) || '*' || dbms_utility.format_error_backtrace;
        RAISE_application_error(-20002,lv_error_message);
    END p_load_AM;
    END pkg_audit_info;
    Table1 and table1 exist in schema_01.
    All 2000 schemas have same package.procedures.
    Due to security reasons i have removed the actual code.
    I was able to execute the job successfully. However, when a schema procedure (SCHEMA_01.pkg_audit_info.p_load_COA) throws an exception, the job fails and all transaction is rolled back.
    Is there a way to loop through each schema and execute the related procedures. Even if exception happens, it should rollback only for that schema and continue the other schemas in the loop?
    Please let me know if there is a better way to achieve this. Is the way i am handling exceptions in the job/procedure correct?
    Thanks

    Hi,
    RAISE_APPLICATION_ERROR will cause the program to exit back to the caller, even if you place it in a block within the loop, so the RAISE or RAISE_APPLICATION_ERROR instruction should be placed in your "pkg_audit_info.p_load_AM" and "pkg_audit_info.p_load_coa" procedures. This way, you can use a block inside the loop and log the error.
    FOR i IN
        ( SELECT username FROM dba_users WHERE username LIKE 'ABCFIRM%'
        LOOP
           BEGIN
            vstmt:= 'begin ' || i.username || '.pkg_audit_info.p_load_coa; end;';
            EXECUTE immediate vstmt;
            vstmt:= 'begin ' || i.username || '.pkg_audit_info.p_load_am; end;';
            EXECUTE immediate vstmt;
    EXCEPTION
    WHEN OTHERS THEN  
        --> Log the error in a custom log table otherwise you will not know what happened for that schema: don't forget the username
    END;
    END LOOP;

  • Workflow not executing after PR release of PR through ME54N

    Hi,
    I have a probolem. I have created a workflow for intimation after PR release through ME54N based on release strategy . i.e. an email will go to different persons after releasing of the PR at different levels . My problem when i am releasing through ME54N   the mail is not going to persons but if i execute the workflow directly giving the PR no in that case the mail is flowing . I have used the business object BUS2009 and i have selected the event 'Release Step Created".
    Can any one help me out.
    thanks in

    Hi,
    Try triggering the workflow event by coding (calling the FM to create an event - SWE_EVENT_CREATE) in an enhancement at the time of releasing the PR through ME54N.
    Also check the following scenario for reference.
    Check the organizational data, the release strategy customizing and the event and instance type linkages :
    1. First you must have created in the organizational plan the user names, positions, jobs, etc. that you assign to the release code(s), and must have linked them to the relevant standard tasks with the Task Customizing (transaction OOCU).
    2. When you create the release code(s) that you need for your release strategy and assign the code(s) to your release group, you should indicate that the release code(s) is (are) relevant to workflow (transaction OMGQ for purchase requisitions and transaction OMGS for purchase orders -> Release code).
    The Workflow indicator is also used to control role resolution.
    The Role Resolution with Group, Code and Plant (T16FW) [1] is the standard role resolution.
    The Role Resolution via User Exit [9] allows you to define a role resolution via customer exit.
    Then you should link the release procedure to workflow if you are not using customer exit and assign a processor ID to the workflow-relevant release code(s) (OMGQ or OMGS -> workflow).
    3. For the workflow WS00000038 (Workflow for requisition release) you should have maintained the following events with transaction SWE2 (Change View "Event Type Linkages": Overview) or transaction SWE3 (Change View "Instance Type Linkages": Overview) :
    RELEASESTEPCREATED with SWE2.
                        Object type     BUS2009
    Event          RELEASESTEPCREATED
    Receiver type  WS00000038
    Receiver FM        SWW_WI_CREATE_VIA_EVENT
    Check function
    Receiver type FM
    Destination
    [X] Type linkage active
    REJECTED with SWE3.
                        Object type    BUS2009
    Event           REJECTED
    Receiver type   WORKITEM
    Receiver FM        SWW_WI_COMP_EVENT_RECEIVE
    Check function      ME_REL_CHECK_EVENT_PARAM
    Receiver type FM
    Destination
    [X] Linkage activated
    RELEASED with SWE3.
                        Object type    BUS2009
    Event           RELEASED
    Receiver type   WORKITEM
    Receiver FM        SWW_WI_COMP_EVENT_RECEIVE
    Check function      ME_REL_CHECK_EVENT_PARAM
    Receiver type FM
    Destination
    [X] Linkage activated
    SIGNIFICANTLYCHANGED with SWE3.
                        Object type     BUS2009
    Event          SIGNIFICANTLYCHANGED
    Receiver type   WORKITEM
    Receiver FM        SWW_WI_COMP_EVENT_RECEIVE
    Check function      ME_REL_CHECK_EVENT_PARAM
    Receiver type FM
    Destination
    [X] Linkage activated
    Regards,
    Harish

  • Workflow not executing - No event error no log errors

    Hello experts,
    I finally solved the exceptions i was getting in my work flow and all the thanks goes for all the forum participants in general and to  Sudhindra, and  Glauco specifically,
    Now i have another error that i am clueless about, i want to trigger the workflow when the status of a document changes, so when i change the status nothing happens, in SWEL there are no errors, It says that receiver started correctly, in ST22 there are no errors, but
    the workflow does not execute, the workflow should open a web browser, so it is not opening it. Any ideas as to why this is happening ?
    regards
    Points are awarded

    I have replied to this in the original thread... anyways here is a copy of the same...
    No the background task is executed by the user WF-BATCH and once the function module is called the user transfers the control to the SAP GUI and then the SAP GUI communicates with the OS. In this case if the task is background then how will the OS know where to call the web browser? It will not know the user to whom this request must be dispatched.
    So the bottom line is that you cannot use this functionality in a background task.
    There is one workaround that comes to my mind. What you can do to inform a user that the "Changed" event has triggered is as follows:
    1. Create a workflow which will trigger off from the Changed event of "DRAW"
    2. Create a send mail step and check the checkbox that says "Send Express" and include the URL you want to open in the Mail body and then send it to an outlook user.
    If you use the Send Express flag then the user will be intimated once the event has occured if and only if he uses the SAP GUI. If the user does not use the SAP GUI then you can remove the check but just send the mail to the outlook so that the user receives the email in outlook once the event has triggered!
    Apart from this nothing comes to my mind!
    All the best!
    Sudhi

  • Workflow 2013 execute as a different user

    I have seen references on the internet where workflow 2013 can execute as a different user. This is referred to 'as on the behalf of'. I believe there is somewhere on the main site collection page where this can be setup at. Thus since I am a site administrator
    on my own collection, would you show me from the site administration page where I can setup the access for 'as on the behalf of'?

    Hi jazz, I don't believe there's a way to do this out of the box. You may also be talking about an impersonation step in a SharePoint Designer workflow. See the following link for reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/f2140235-887f-45a7-8264-566372b81fe9/sharepoint-2013-users-work-on-behalf-of-another?forum=sharepointgeneral
    cameron rautmann
    Actually it may be possible, but I haven't tried this:
    https://msdn.microsoft.com/en-us/library/w070t6ka.aspx

  • Meaningful way to identify steps executed in a loop?

    Hello,
    I have a set of tests, where I apply a voltage to many different pins (sequentially) while checking the response for each pin on a CAN bus. I implemented the tests in a loop, like this (pseudo-code):
    paramsArray = initParamsFromFile()
    For_each (params in paramsArray)
    Apply params.voltage to params.pinId
    Test canValue == params.expectedResponse
    End
    paramsArray is an array of 50 containers (LabVIEW clusters), which is populated from values in a file. Each array element contains a pin ID, a voltage to apply, and a value to expect from the CAN bus.
    However, in the log, the tests for all 50 pins end up with exactly the same Step Name and Step ID (I'm using the default TestStand table schemas).
    So my questions are:
    Is this a good way to implement a repetitive set of tests?
    What's a good way to distinguish the different (repeated) steps in my log?
    Thanks!
    Solved!
    Go to Solution.

    Hi,
    1.) It is ok, you can do that because it will keep your sequence small as possible and (fast).
        But you could  also use the For-Each StepType so others will see more better the loop behaviour
        The looping feature is a little bit more "hidden" in the settings-field. In large sequences this is
        is often overlooked. It is just your choise. I am using both stuff.
    2.) Just rename the step name in the PreExpression field by using the LoopIndex
         Step.Name ="MyName:"+ Str(RunState.LoopIndex+1)
    Hope this helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Loop.seq ‏5 KB

  • Workflow step executed mutliple times

    Hi,
    I have takena  copy of the standard PO release WF and added an email step so that once the PO released step has been actioned, and email is sent to the initiator informing them that the PO has been released and attaching the PO document.  The problem is that depending on the release code then multiple approvers need to release the PO, so this email step can be triggered multiple times.  So how do I configure the step to only release once all the approvers have completed their WF task?

    Hello,
    Check in SWEL if there's a particular event that gets created when a PO is finally released (perhaps RELEASED) and have a branch wait for that in the workflow. If it occurs, then send the email. If it doesn't occur (after a few minutes) then complete the workflow. That's just one way to do it.
    regards
    Rick Bakker
    hanabi technology

Maybe you are looking for

  • Can no longer connect to email servers

    Ok, I'm hoping some Mac gurus here can help me out. I've got a primarily Windows-based network here using MS ISA server as a firewall/proxy. Our prepress guys are on various flavors of G4/G5, Panther and Tiger. On Monday, July 5 they suddenly stopped

  • Approval workflow for creation of organization

    Hi, I need to configure an approval workflow for the creation of organization. When the admin tries to create a new org, the approval should go to a admin group. The org should get created only once approval is done. I have configured an approval wor

  • Event in wd abap

    Hi, i am having a event in component controller. event handler is made in first view. Now how can i fire the event from second view, so that event handler in first view wil get trigered. Regards, Pankaj Aggarwal

  • XY graph multi plot live points and colour control

    Hi All, I'm trying to do something that should be simple but is proving to be difficult so far. I have had a good look through previous topics and found things similar but not actually what I want. In my experiment I scan intensity vs wavelength. Ide

  • "Reports" field in Incident Management workcenter

    Hello All, I have a silly question. Ther eis a Reports Tab in Incident management workcenter. In overview tab, I can see there are 10 msg in confirmed status and 3 in proposed sol,etc.. But when I open the Reports Tab, I can see under" Messages for p