Background method set to Error

Hi,
I have a background step in my workflow which was working fine before. suddenly this BG step going into ERROR status. But if try to execute it using SWPR after some time it is working successfully.
Sometimes I hav to try for many times to make it successful.
I have tried executing the method separately.It is working fine. Also i tried to debug the code during runtime after error. that also is working fine.
Then why the workitem is set to ERROR. Can anyone help me in solving this?
thanks,
Sivagami

Hi,
Still the problem is not solved. It was working fine before. Suddenly this step is going to error. I hav tried the following:
1) Executed the method from the Bus.object with the same values. It is working fine
2) Checked the binding between the task and the method container
3) Refreshed the buffer using SWU_OBUF.Sometimes it works. but not all times
4) Included the code for debugging at runtime in my code and executed.Its working fine
5) Included the WAIT stmt thinking tht it may work if thrz a delay. But of no use.
6) Restarted the workflow using SWPR. Sometimes it works. but not all times
The method is developed using a ZFunstion module. It is a instance independant method.
Any clues wht shld I chk now?
Thanks,
Sivagami

Similar Messages

  • How to set Background Activity state as error

    HI Experts,
                    In case of foregruond activities,i know we can make the status as ' in progress' by exit_cancelled.What I want to do is,in case of background activity, if some error comes,i should be able to generate some sort of message, seeing which administrator can come to know that there is some problem.If I use exit_cancelled ,that doesnt solve the purpose.I think something should be there but I'm totally unaware.Please help me know how is that done .

    Hello Vivek,
    position your cursor in the object builder on the method declaration; then push the button "Exception".
    Declare an exception 9001 or greater, which is marked as "Application" or "System" error (both of these types will result in a error state of the work item, later on). Choose some useful message id.
    In the implementation of the object's method, use the macro
    exit_return 9001 <var1> <var2> <var3> <var4>.
    If you're not using any variables, use SPACE.
    Instead of setting the error state for a work item immediatly, you could also set the exception type to "temporary". If you do so, the workflow runtime system will re-execute the work item 3 times after every 20 minutes (if you're using the SAP standard settings). Only after the third exception the work item will be set to error state.
    Best wishes,
    Florin

  • How to programmatically set an error message for a validation rule of an EO

    Hello,
    Is there a way to programmatically set an error message when validating any data on an EO?
    It seems the API of the EO interface does not have any method to be defined for my needs..
    thanks

    The other option is that for the error message you can define a groovy expression to call an EO method.
    I documented this on my blog
    http://blogs.oracle.com/grantronald/entry/dynamic_error_messages_from_a
    Regards
    Grant

  • Setting step error during Post-Step substep execution

    There is custom step type, which defines Post-Step substep:
    void __declspec(dllexport) __stdcall PostStep(struct IDispatch* pSeqContextDisp)
    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    PropertyObjectPtr spThisContext=pSeqContextDisp;
    try
    return PostStepEx(spThisContext);
    catch(_com_error& xComErr)
    void PostStepEx(PropertyObjectPtr& spThisContext)
    SequenceContextPtr spSeqContext=spThisContext;
    StepPtr spStep=spSeqContext->GetStep();
    PropertyObjectPtr spResultStep=spStep->AsPropertyObject();
    bool fSomeCondition=false;
    // Evaluate fSomeCondition
    if(fSomeCondition)
    spResultStep->SetValBoolean("Result.Error.Occurred", 0, VARIANT_TRUE);
    spResultStep->SetValString ("Result.Error.Msg", 0, "Some error message");
    spResultStep->SetValNumber ("Result.Error.Code", 0, -1);
    return;
    // Continue ...
    When step of this custom step type is beeing executed and fSomeCondition evaluated to true, the error is displayed:
    Details:
    "Error executing substep 'Post'.
    Some error message"
    How to instruct TestStand to not to add prefix "Error executing substep 'Post'." ?
    thanks.misha

    Hello Misha,
    If you do not want the "Error executing substep 'Post'." string added to the beginning of your error message, you could use the following method. 
    You can set only the Error message (Error.Msg) and Error code (Error.Code) and not the Error Occurred Flag (Error.Occurred) in the post step code module.  In the post-expression of that step, you can then detect whether the error code is non-zero and set the Error.Occurred flag to True if necessary.  See the screen shot below.
    Let me know if you have any questions implementing this solution.
    Message Edited by JettR on 03-27-2008 02:00 PM
    Best Regards,
    Software Engineer
    Jett R
    Attachments:
    ScreenShot.jpg ‏88 KB

  • RMMR1MRS-When run in background cause update failure errors looking

    hi,
          RMMR1MRS report when run in background cause update failure errors .
    There are few  below reason for the error log.
    1.  for the PO invoice already generated -  (its right if already invoice generated. should not happen again)
    2.  In  MIGO,  entire  quantity has been reversed  and also invoice generated with zero value - ( its right , should not happen invoice again )
    3. Particular PO line item deleted -  (its right if the PO line item deleted. ERS settlement not require)
    For the all above reason, the update error occurs.  But the mean time  the program  "RMMR1MRS"  should not through the update error log. 
    Note: The job was not terminated due to this update error and also no harm because of the error log
    can you please help on this update failure why it occurs.

    Have you found a solution already? If so, please, share it with the community and close this thread.

  • Cure for "501 Method Not Implemented" error at site in Firefox but not Chrome or IE?

    I am receiving a "501 Method Not Implemented" error message at a site in Firefox but not in Chrome or IE. How can this be cured?

    Do you get that error if you access the site or if you click a link to got to another page?
    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • ORACLE_HOME_LISTNER is not SET dbstart error Oracle Enterprise Linux

    ORACLE_HOME_LISTNER is not SET dbstart error Oracle Enterprise Linux
    Hallo!I am a newbie in Oracle 10g having installed Oracle 10g in Oracle Enterprise Linux version 4 update 7.
    I am trying to automate the startup of the Listener,Database,Enterprise Manager and isqlplus during boot.
    I have tried running the dbstart script but an error resulted.After research,I found out that I am supposed to edit line 78 of the dbstart script from
    ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
    To
    ORACLE_HOME_LISTNER=$ORACLE_HOME
    Even after this,when I run the dbstart script,I receive the error below.
    [root@joey-oel ~]# cd /u01/app/oracle/product/10.2.0/db/bin/
    [root@joey-oel bin]# ./dbstart
    ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
    Processing Database instance "orcl": log file /u01/app/oracle/product/10.2.0/db/startup.log
    When I view the log file startup.log,the information is as below
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 9 21:20:33 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> ERROR:
    ORA-12546: TNS:permission denied
    SQL> ORA-12546: TNS:permission denied
    SQL>
    ./dbstart: Database instance "orcl" warm started
    ./dbstart: Starting up database "orcl"
    Sat Aug 14 15:30:25 EAT 2010
    How do I resolve this?
    Thanks.

    The results of the env | sort command is as below
    [oracle@joey-oel ~]$ env | sort
    _=/bin/env
    EDITOR=gedit
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=joey-oel.com
    INPUTRC=/etc/inputrc
    KDEDIR=/usr
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
    MAIL=/var/spool/mail/oracle
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db
    ORACLE_HOSTNAME=joey-oel.com
    ORACLE_SID=orcl
    PATH=/u01/app/oracle/product/10.2.0/db/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/oracle/bin
    PWD=/home/oracle
    QTDIR=/usr/lib/qt-3.3
    SHELL=/bin/bash
    SHLVL=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    TERM=vt100
    TMPDIR=/tmp
    TMP=/tmp
    USER=oracle
    I am trying to run the dbstart as the oracle user.When I try doing this as below
    [oracle@joey-oel ~]$ $ORACLE_HOME/bin/dbstart $ORACLE_HOME
    chmod: changing permissions of `/u01/app/oracle/product/10.2.0/db/startup.log': Operation not permitted
    Processing Database instance "orcl": log file /u01/app/oracle/product/10.2.0/db/startup.log
    Even when I try changing the permissions of startup.log as below,
    chmod 777 startup.log
    the error still appears.

  • Background method in workflow hangs

    Hi All,
    I have a background method in workflow which calles a report. Actually the report calles smartforms and I am storing OTF data on application server. I am not displaying the print preview. I am just stroring the OTF data on application server.
    When I explicitely execute the report from SE38 in background (using F9) file is getting generated on application server. But when I call this report from method of a workflow, method execution remains in process. And file is not generated.
    I have used the RETURN statement while calling it from workflow method. What could be the reason for this??
    Thandks in advance,
    Neha Yeralkar.

    Hi,
    Calling transaction and Submit programs are usually reserved for dialog methods, where essentially all the workflow needs to do is take the agent to the transaction or program where the user can complete the business activity. For background methods usually call function modules or BAPIs are used where the business activity is performed automatically without any user involvement. Moreover it will help you in handling exceptions returned from Function modules. Also define the method exception explicitly based on the exceptions of FM, inorder to track it down if it occurs.
    Regards, Saud

  • ODI-01266: Agent {0} detected Session as stale session and set to error

    Hi
    I am a beginner in odi
    I scheduled a package to run . but this error came up :" ODI-01266: Agent {0} detected Session as stale session and set to error status"
    what is this error and what should i do???
    thanx
    medi

    Cleaning Stale Sessions
    Stale sessions are sessions that are incorrectly left in a running state after an agent or repository crash.
    The Agent that started a session automatically detects when this session becomes stale and changes it to Error status. You can manually request specific Agents to clean stale sessions in Operator Navigator or Topology Navigator.
    To clean stale sessions manually:
    Do one of the following:
    From the Operator Navigator toolbar menu, select Clean Stale Sessions.
    In Topology Navigator, from the Physical Architecture accordion, select an Agent, right-click and select Clean Stale Sessions.
    The Clean Stale Sessions Dialog opens
    In the Clean Stale Sessions Dialog specify the criteria for cleaning stale sessions:
    From the list, select the Agents that will clean their stale sessions.
    Select Clean all Agents if you want all Agents to clean their stale sessions.
    From the list, select the Work Repositories you want to clean.
    Select Clean all Work Repositories if you want to clean stale sessions in all Work Repositories.
    Click Clean to start the cleaning process.

  • Resource registration is failing - Couldnt run method tag. Error in execve

    Hi,
    We have solaris cluster setup with two nodes and a resource group exists which contains a zfs resource which could be mounted on to one of the nodes in the cluster.
    Our application is installed on one of the directory in the zfs file system. The file system and the application would be to be on one of the nodes and if somethings goes bad, it shoud failover to other node.
    I used Agent Builder to create new resource type for managing our application part of sun cluster and used the ksh mode providing it start/stop/probe scripts. I have left validate script as blank.
    When I try to register this new resource type, (resource time generated folder/util/start* script,
    nodex /u2/appx/cluster/ResourceType_01/XYZSolarisAPPXClusterL0/util % ls -ltr
    total 71
    -rw-r--r-- 1 appowner appowner 13960 Jan 12 07:36 startSolarisAPPXClusterL0 <---
    -rw-r--r-- 1 appowner appowner 8281 Jan 12 07:36 removeSolarisAPPXClusterL0
    -rw-r--r-- 1 appowner appowner 7316 Jan 12 07:36 stopSolarisAPPXClusterL0
    -rw-r--r-- 1 appowner appowner 2300 Jan 12 07:36 SolarisAPPXClusterL0_config
    # Resource group creation was successful (SolarisAPPXClusterL0-harg)
    # Virtual Host resource creation was successfull
    # It got added to the new group created
    # But it is failing when it is attempting to create resource for the new resource type - SolarisAPPXClusterL0-hars
    Error:
    Jan 17 14:52:01 nodex Cluster.RGM.global.rgmd: [ID 224900 daemon.notice] launching method <SolarisAPPXClusterL0_validate.ksh> for resource <SolarisAPPXClusterL0-hars>, resourcegroup <SolarisAPPXClusterL0-harg>, node <nodex>, timeout <300> seconds
    Jan 17 14:52:01 nodex Cluster.RGM.fed: [ID 838032 daemon.error] SolarisAPPXClusterL0-harg.SolarisAPPXClusterL0-hars.2: Couldn't run method tag. Error in execve: No such file ordirectory.
    Jan 17 14:52:01 nodex Cluster.RGM.global.rgmd: [ID 699104 daemon.error] VALIDATE failed on resource <SolarisAPPXClusterL0-hars>, resource group <SolarisAPPXClusterL0-harg>, time used: 0% of timeout <300, seconds>
    The new resource type files are available on nodex and nodey. When we try to remove and start it again, the error occurred on the other nodey with similar error.
    Jan 17 14:33:52 nodey Cluster.RGM.global.rgmd: [ID 224900 daemon.notice] launching method <hafoip_validate> for resource <failover-clus1>, resource group <SolarisAPPXClusterL0-harg>, node <nodey>, timeout <300> seconds
    Jan 17 14:33:52 nodey Cluster.RGM.global.rgmd: [ID 515159 daemon.notice] method <hafoip_validate> completed successfully for resource <failover-clus1>, resource group <SolarisAPPXClusterL0-harg>, node <nodey>, time used: 0% of timeout <300 seconds>
    Jan 17 14:33:53 nodey Cluster.RGM.global.rgmd: [ID 224900 daemon.notice] launching method <SolarisAPPXClusterL0_validate.ksh> for resource <SolarisAPPXClusterL0-hars>, resourcegroup <SolarisAPPXClusterL0-harg>, node <nodey>, timeout <300> seconds
    Jan 17 14:33:53 nodey Cluster.RGM.fed: [ID 838032 daemon.error] SolarisAPPXClusterL0-harg.SolarisAPPXClusterL0-hars.2: Couldn't run method tag. Error in execve: No such file ordirectory.
    Jan 17 14:33:53 nodey Cluster.RGM.global.rgmd: [ID 699104 daemon.error] VALIDATE failed on resource <SolarisAPPXClusterL0-hars>, resource group <SolarisAPPXClusterL0-harg>, time used: 0% of timeout <300, seconds>
    Are there other logs than /var/adm/messages to check for errors ?
    What is causing this error ? Any help is appreciated.
    Thanks in advance!

    See if adding the execute permissions to the scripts solve the problem.
    In general, I just use the SUNW.gds resource type directly rather than use the agent builder. If you want to build something a little more complex, then I would recommend sub-classing the SUNW.gds agent. There are a number of Oracle supplied agents that do this, for example, the HA-LDoms, and HA-obiee agents. Have a look at how they work.
    Regards,
    Tim
    ---

  • In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. Help

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

  • OAF pages open up with error when FND_VALIDATION_LEVEL profile set to ERROR

    Hi,
    We get error “You have insufficient privileges for the current operation. Please contact your System Administrator.” when we access the OAF page on a click of a link .
    On a click of a link in a OAF page a new OAF page should open up. This is achieved by following piece of code
    String javaS = (new StringBuilder()).append("javascript:openWindow(top, 'OA.jsp?page=/XXX/oracle/apps/cs/XXX/XXX/webui/ViewRulesPG&paramRoot=RULES&reportname=").append(strViewRepName).append("&retainAM=N&addBreadCrumb=N','modal'").append(",{width:screen.width,height:screen.height-30,top:0,left:0").append(",resizable:false},true, 'document', null);void(0);").toString();
    bodyBean.setOnLoad(javaS);
    This works fine when the FND_VALIDATION_LEVEL is set as 'None' but gives the error when the profile is set as 'Error'. We can't go with this work around.
    Please suggest
    Regards,
    Mrugesh

    FND_VALIDATION_LEVEL is a profile option that should always be set to ERROR. It is not advisable to set it to NONE, just to enable your javascript. The profile ensures that the page is well secured when accessed through Oracle Applications, applies the necessary security similar to seeded OAF pages. OA Framework does not support javascript functionality such pop-ups (you can do it but ) but does not guarantee that the page is secure from outside world (web traffic or cross-browser attacks) when the FND_VALIDATION_LEVEL=None. Work with Dialog pages instead of pop-ups or otherwise limit the page functionality, as javascripting is not recommended in OAF pages.
    -Vikram

  • Redirect to another page and set the error or success message from process

    I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
    Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
    begin
        -- some code here
    exception when others then
        owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
    end;

    >
    Please update your forum profile with a real handle instead of "973239".
    I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
    Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
    begin
    -- some code here
    exception when others then
    owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
    end;
    Use the <tt>f</tt> function's <tt>notification_msg</tt> parameter to pass the error message in the URL:
      owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::&notification_msg=' || apex_util.url_encode(l_error_msg)); 
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)

  • Cannot create application - 405 Method Not Allowed error

    Installed 11.1.2.1. Tried using EPMA to deploy app. Getting abort with the Method Not Allowed Error. Tried using Classic and getting the same error. Some of the details says "Server Error in Application "DEFAULT WEB SITE/HFM", "The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used." Any thoughts on possible causes?

    Hi Fsotto,
    The below document would resolve the issue.
    New Install on IIS 7, Cannot Access HFM from Workspace 404.3 Error in IIS Logs on HFM Web Server (Doc ID 1285684.1)
    Hope this helps,
    Please feel free to mark the answer as Helpful Answer/ Correct Answer should you find the relevant posting helpful so that it also helps us in keeping track of the answered queries.
    Thank you,
    Charles Babu J

  • Manager in mate becasue all method get  and not method set???

    In mate they use this technology what I do not still have clear is that because always in the managers methods go only get and not set????? Because??
    [Bindable (event="sqPhotoDBCountChanged")]
            public function get sqPhotoDBCount():uint {
                //trace("PhotoManager.sqPhotoDBCount(), 'sqPhotoDBCount' event response, sqPhotoDBCount = "+_sqPhotoDBCount);
                return _sqPhotoDBCount;
    And not this method set because????????

    In your servlet, you have written doget() method but it should be doGet().

Maybe you are looking for

  • Report for Inventory Status for Serialized Materials

    I am trying to generate a report which would display the material #, all serial #s related to that material and the stock type for each of these serial#s. I currently following this approach, I will fetch all the material number from MARC for a parti

  • Itunes error -54 after mountain lion upgrade

    Has anyone else suffered this error since upgrading from lion to mountain lion?

  • Trying to understand how MIDI Clock works in Logic

    Hi, I'm syncing a Roland MC-909 Groove Box with Logic.  I'm also using a MOTU MIDI Express interface.  The MC-909 syncs to Logic, thus it is in Slave mode. Under Preferences->Sync->MIDI Sync Project Settings, I've discovered something odd, and I'm tr

  • Can I set the MTU size for the Airport Extreme?

    Can I change the MTU size setting of the Airport? How would this be possible? In my Linksys router I was able to change this.

  • Ufsdump and zones solaris 10

    We do a backup daily via a script of the our zone using ufsdump.Sometimes the backup goes through each file system and other times the entire process is repeated three times. I have also checked that there is no instruction entry specified in the scr