Cannot trigger exceptions at all

If I put an exception in a method, asynchronous or synchronous using EXIT_RETURN, I can test the method and watch it raise the exception.
If I put the method into a task, and make the exception one of the available paths, the workflow NEVER follows that task, even if I explicitly code the method to guarantee to raise the exception (i.e. not in any conditional code).
I have tried all different levels of exception type, and have now tried to do this by creating three different tasks so that there were no buffering issues; I cannot get exceptions raised.
Help!

Hi Anthony,
What release? What type of SAP system? (R/3, SRM, ?)
Are you using BOR objects or ABAP OO?
Also how have you activated the exception as an outcome in your workflow - this is a critical step as otherwise the workflow will ignore the outcome and pass it to the usual error handling mechanism. 
Critical pieces are this:
1. Exception defined in the "Exceptions" section of the method with an equivalent message id/number. You really want it to be an application error in this case.
2. Exception coded in the method.
3. Task linked to method.
4. Workflow step linked to task - exception will appear as an outcome.  By default that outcome is de-activated - you have to activate that outcome to make it available.
5. Add something in the path following the outcome - a send mail or even a container op will do - something which will make it clear to see in the workflow log that the follow on step has started.
And make sure you expand the task line and scroll to the right when looking at the workflow log - you should see an outcome received text in the log.
If you still don't see anything, check to see if an email notification of the exception was sent to the administrator via the error handling job.
Regards,
Jocelyn
Message was edited by: Jocelyn Dart

Similar Messages

  • Cannot trigger exception in an asynchronous task

    I am trying to get an asynchonous task to follow a control path that it should go down when an exception is raised, but it isn't working.
    Brief description of task: it is  a method that creates a sales order in the background. It is asynchronous because I need the sales order to exist in the database before the next step in the workflow, which uses the order as a reference.
    The exception that I want to raise should happen if I cannot get a sales order number returned from the code (the number is assigned before the order exists in the database); in that case, I want the exception to be raised.
    In the exception path, I want to use a process flow step that marks the current workflow task obsolete, and executes the obsolete path to create a sales order in the foreground.
    Problem is, whenever I try to raise the exception, the asynchronous task just stays in state STARTED. I wonder if this is because the event for completing the task has not been triggered.
    So is it possible to raise exceptions in asynchronous tasks, and make the task obsolete before the terminating event has been received?

    Thanks for the clarification; I must admit that sounds like a bad architectural design flaw to me.
    This case is exactly why; the task uses a method that calls VA01 in background mode. It will not return a value of sales order number if it cannot create the sales order. However, since the task is asynchronous, and the terminating event is to receive the order created event from the BUS2032 sales order business object, it will wait forever to finish this step.
    That's why I want to raise an exception if the sales order could not be created, but as you say, in an asynchronous task, that is not possible.
    So what could be a better alternative? One possibility that I can think of is for the sales order creation task to be synchronous, and then have a follow-up task that checks that the sales order exists in the database before going forward. Does that sound reasonable?

  • ERROR CANNOT OPEN SKYPE AT ALL

    Hello, I have version of skype 6.22 and windows 7 64-bit professional (fully updated) and cannot open skype at all, the message appears is: Application Error: Exception EOIeSysError in module Skype.exe at 0012A0F1. Access is denied.
    I have tried several times to unistall and install skype but no any progress.
    Please advise
    Thanks

    Open Windows Event Viewer -> Custom Views -> Administrative Events. Look for the recent error messages with timestamp corresponding to Skype crash. Copy and paste here the text from the General tab.

  • Air 3.2/3.3 with iOS 5.1.1 & 6.0 SDK Beta on iOS 6 Beta cannot render anything at all

    Hi there,
    I've just tried to run an air app on iOS 6 but all the vistual elements doesn't render properly, e.g. the tab view cannot render tab icons/tab bar, the action bar cannot render anything at all plus all other components...
    Please let me know if you have any idea about that.
    Many thanks.

    Firstly the GPU issue has been fixed but the autoOrients property is still not working with the latest "AIR SDK 3.3.0.3690 SDK + iOS 6 Beta 2 SDK" on an iPhone 4S with iOS 6 Beta.
    I cannot use this combination below, except I take out the second line:
    <autoOrients>true</autoOrients>
    <aspectRatio>portrait</aspectRatio>

  • Songs on the iPods "administrators iPod" cannot be updated because all of t

    When I try to update my mini iPod I get the following message. Songs on the iPod "administrator's iPod" cannot be updated because all of the playlists selected for updating no longer exists.
    Any thoughts on where they have gone? what should I do?

    Have a look at this post by forum member Hudgie it may help explain things: Hudgie - iPod cannot sync because one or more playlists are missing

  • "Songs on iPod 'jerm' cannot be updated because all of the playlists..."

    I recently bought a 1GB iPod Nano from a dude on craigslist and I updated it once, but when I try to update it now a message comes up that reads:
    "Songs on iPod 'jerm' cannot be updated because all of the playlists selected for updating no longer exist."
    Also, when I updated it yesterday, it said that the iPod didn't have room for all of the songs on my iTunes...but I only have like 75 regular-length songs on there and the 1GB is supposed to hold 240. Anyone know what's up with that?
    After it informed me of this last thing, it made me a playlist of a "selection" of songs from the iTunes and updated it with those.
    I deleted that playlist today...may that be related to my first question?
    All of this doesn't make sense. Can anyone shed a little light on the subject?
    Thanks
    Sony VAIO   Windows XP  

    I had this problem with my 4GB iPod nano and I tried everything that you said to try. I did accidentally delete the iPod Selection playlist and I tried to make a new smart playlist. When I did this I got an error message that said "The smart playlist contains one or more conditions which are empty of conflict with one another. This will result in never matching any item. Are you sure you want to save this playlist?" I tried to upload an old library onto my iTunes and it was successful, however, my iPod would still not sync. Do you know what i can do to fix this?
    thank you.

  • Have a 3rd gen nano, when I plug in  I get "Podcasts on this IPOD cannot be synced because all of the podcasts selected for syncing no longer exist." I have no podcasts in my IPOD or queued in library. Help pls. Thx

    Wnen I plug in my IPOD, I gret the error message " Podcasts on this IPOD cannot be synced because all of the podcasts selected for syncing no longer exist. I have no podcasts in my IPOD or queued in I tunes at pfresent. When I did try to sync a current podcast, nothing happened although the podcasts did show in my library. I did play around with podcasts several months ago, but just listened to them on the computer, the IPOD was plugged in at times though, although not set up...thx

    Click here and follow the instructions.
    (27971)

  • "Songs on the iPod "____" cannot be updated because all of the playlists...

    "Songs on the iPod "Harold Kim's iPod" cannot be updated because all of the playlists selected for updating no longer exist."
    Im not sure what this means or how to fix it. any sort of advice or help would be greatly appreciated.

    You get this problem when the option 'Sync Music - Selected playlists' is being used to sync your iPod. If the playlist selected is deleted from iTunes the iPod no longer has a location to sync from and you get an error. (Syncing selected playlists by the way is a useful setting to use when the iPod is smaller than the iTunes library). However you can make a new one or make use of an existing one.
    Open iTunes and create a playlist to update your iPod from, call it -My iPod for example (the dash will position it at the top of the playlists in Sources). You can make it a smart playlist that picks the songs for you or just a normal one and drag whatever content you want to have into the playlist. If you are making a smart playlist limit it to just less than the size of your iPod (for example 3700MB for a 4G iPod Nano. Now connect your iPod and when it appears in the Source list click on the iPod icon to bring up the preference tabs in the main pane. Go to the Music tab and choose Sync Music and the Selected playlists radio button. Choose the playlist you just made from the selection and click Apply. You can also sync from any existing playlists by choosing the same setting, you just need to make sure that the size of the playlists don't exceed the capacity of your iPod:
    How to create a Smart Playlist with iTunes
    Syncing Music to iPod
    To make a random playlist go to File>New Smart Playlist.
    Uncheck "Match the following rule"
    Check "Limit to" put "3700" in the number box, choose "MB" from the first list box, choose "Random" from the next list box. Check "Live Updating"
    When you want to change the selection in the smart playlist just delete everything in it and it will add a new selection. When you want to change the normal playlist just delete out what you don't want and drag in a new selection.
    Syncing selected playlists is just like syncing your whole library only on a smaller scale and more "selectively". When your iPod is is set to sync selected playlists it automatically picks up any changes you made to that playlist in iTunes since you last connected. Anything you added to the playlist will be added to the iPod, anything you deleted from it will be deleted from the iPod. In other words the iTunes playlist and the iPod are kept "in sync".

  • Songs on the iPod  cannot be updated beaucse all of the playlists .....

    I was trying to update my ipod and my ipod only has 52 songs but my libary has 92 songs. i tried to updated it by left clicking where it said my "RISHI"S IPOD" and clicked update...and this message said "Songs on the iPod "Rishi's iPod" cannot be updated becuase all of the playlists selected for updating no longer exist."
    HELP PLEASE WHAT DO I DO!!????

    This should sort out your missing playlist problem: Hudgie - iPod cannot sync because one or more playlists are missing

  • "...(ipod) cannot be updated because all of the playlists selected for

    Please help! I get the error message, "Songs on the iPod
    cannot be updated because all of the playlists selected for updating no longer exist." So it seems that I erased the playlists from my iPod. I have done the "Five Rs."
    Doing the iPod Updater took 2 1/2 hrs. It did not help.
    How can I get my iPod to work?

    See this.
    iPod cannot sync because one or more playlist is missing.

  • Cannot update b/c all playlists no longer exist

    I cannot update my iPod. This is the error message I continually get when I try. 'Songs on the iPod "Aimee's iPod" cannot be updated because all of the playlists selected for updating no longer exist.' I can see the playlists on the iTunes screen but when I tried to update it removed all songs from my iPod completely. I have tried reinstalling the iTunes software and the problem persists. Does anyone have any ideas. I have searched the Apple support website and cannot resolve. Thank you, in advance, for any assistance provided.
    Aimee
    Dell Dimension XPS   Windows XP  

    http://discussions.apple.com/thread.jspa?messageID=607312&#607312

  • "cannot be synced because all of the playlists no longer exist"

    I have a 2nd gen nano. I have had no problems with itunes since I purchased it in July last year. I bought my husband a 3rd gen nano for christmas. I had basically all the songs in my itunes that he wanted so I hooked his new ipod up. It wanted me to install 7.5 and seemed to work just fine. I got everything downloaded to his and was quite proud of myself~thinking that was too easy. Anyhow I then plugged in my 2nd gen in and I don't remember exactly what it said but it created a new playlist for me. I had already created and saved my own earlier that had all my favorites shuffled~just how I wanted it. The itunes created playlist was in order by album and couldn't get it to shuffle so before really thinking about what I was doing deleted the itunes created playlist. UGG! Now when I plug in my ipod it says "songs on the ipod "amys ipod" cannot be synced because all of the playlists selected for syncing no longer exist". I also have no songs on my ipod anymore! What do I do?!?!?

    Click here and follow the instructions.
    (27971)

  • I have a podcast for my running programme on  my new shuffle an access it on 'My Computer' but message on device is 'please use itunes to sync music' . In itunes I message 'cannot be synced because all the podcasts for syncing no longer exist''  Help!!

    Have new nano shuffle for couch to 5K.  Weeks 1 and 2 worked well but week although can be seen downloaded on MY COMPUTER doesn't play and message is 'connect to itunes to sync music'  Tried to sync other podcasts but message is cannot be synced because all the pocastsfor syncing no longer exists.  Any solutions please before I chuck it in the bin. Urrggghhh!

    Well Authorize the Computer...........

  • "One or more songs are not authorized" except they all are?

    I made a play list tonight that I wanted to burn to a CD for a friend. When I went to burn it, I got an error message saying "One or more of the songs in this play list are not authorized on this computer." Apple's help page said I could figure out which songs weren't authorized by trying to play them and that the unauthorized songs wouldn't play...except they all played just fine.
    First I tried rebooting. Didn't help. Then I tried removing each purchased song one at a time. Didn't help. Then I removed all the purchased songs. STILL didn't help. Finally I tried burning a play list that I'd made and burned a month ago. That one burned just fine.
    So I have a play list now made up exclusively of tracks that I imported into iTunes from CDs, none purchased from the iTunes store, and I'm still getting an error message that says "One or more of the songs in this play list are not authorized on this computer." ***? And more importantly, is there any way I can find out which freaking song is causing the problem without trying to burn each one individually to a separate CD?

    Hi,
    It seems that DCPROMO did its work without complaints, still the DFSR references remained in AD. You could refer to the article below to clean up the DFS Replication object.
    How to remove data in Active Directory after an unsuccessful domain controller demotion
    http://support.microsoft.com/kb/216498
    In additional, please refer to the following thread to troubleshoot the issue:
    DFS is not working anymore.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/953be9ef-e9e3-4885-a5c4-47fc475ba562/dfs-is-not-working-anymore?forum=winserverfiles
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT1222 I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!!!!!!

    I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!

    Paldeng, thanks for the suggestion.  I've done all that.  I can connect to the server, but apparently they are not recognizing my ID and password.  I can use the server program if I don't go through Mail (using the same ID and password).  My mother in another state with another provider has had the same email issue, as also my husband on his laptop who uses the same internet connection I do.  His worked fine until we had it repaired at the Apple store and all the original programs reloaded (with the required updates, I assume).  We can receive email in Mail, we just cannot send.
    I contacted my service provider, and we went over my connections.  They said it was not their problem and connected me with Apple, resulting in a charge to me because my warranty is long expired.  Apple swears it is not their problem, it is the provider, so here I sit.  My son was able to fix my Mom's Mail (she's 97) and got my husband's working also, until mine went out, by tweaking connection descriptions and ports remotely.  The thing is, we had not messed with any of those settings, so what changed?  I just did not want to bother my son again, as he has many other demands on his time.
    Since this fiasco with the Mail v4.6 update, I'm wondering if something else was updated that works well with Lion and Mountain Lion, but does not work well with Snow Leopard and Leopard.  I think the problem I had with the Mail update was that my Mail program had been renamed to Mail (original), and therefore was not being recognized by the update.  Perhaps they had another tweak in there somewhere that is affecting outgoing mail connections?

Maybe you are looking for

  • Assigning Business Roles - No such task exists

    I am trying to create a user ID and assign a Business Role in the process.  The attribute that I am using is MXREF_MX_ROLE.  It is defined as a multivalue system attribute with a data type of entry reference and the reference type in MX_ROLE. From my

  • Partner profile LI and unit of measure

    Hi gurus, I am experiencing a weird situation and probably you have any clue about it. I have configured an output to send the Purchase order information via EDI. I have used the standard function and programs to create the output. I have created the

  • Print text in Bold while creating PDF

    Hi, I am mapping data in the XML to a Template designed using LiveCycle Designer ES3. I need to print some of the text in BOLD. For exmple in the following XML, when we display the text in PDF,  person names should be in BOLD. Part of the XML that is

  • Cache Problems after every transport of CMS

    Hi Guys, The messages fail saying "NO_MAPPING_FOUND". We get this error consistently in the target system when ever we transport from Dev to QA or QA to Prod. We need to always do a cache refersh in SXI_CACHE and restart the message. Then all message

  • New nano uploaded or has songs I didnt pick! How do i get rid of them???

    Just plugged in the Nano I got my husband for Christmas, and there's a library of HIDEOUS songs that we didn't buy, upload or otherwise ask for. I THOUGHT I got rid of them when I deleted the library in Itunes, but its still on the Nano and I want th