ROLLBACK after failure

I am calling the following FMs in the sequence:
1. BAPI_GOODSMVT_CREATE using movement type 261
2. BAPI_GOODSMVT_CREATE using movement type 101
3. COMMIT WORK to generate a handling unit number.
4. A FM L_TO_CREATE_SINGLE (that unpacks and repacks handling units) uses the handling unit number of step 3.
My requirement is that if the BDC in the 4th step fails, then steps 1, 2 should be be ROLLBACKed.
To my understanding if I have a ROLLBACK work after step 4, then the COMMIT work in step 3 prevents the ROLLBACK of steps 1 and 2.
I cannot remove the COMMIT in step 3 as the HU number is not being generated (which I need in step 4) in case I remove the COMMIT WORK.      
I tried calling the FM in step 4 in UPDATE TASK, but no luck.
Please help, how to go about this problem.

You are using commit work before step 4 because you step 4 is dependent on data provided from previous steps.
My requirement is that if the BDC in the 4th step fails, then steps 1, 2 should be be ROLLBACKed.
Commit work is the last state of a transaction flow and you cannot rollback the previous step. The only way I see is to call BAPI_GOODSMVT_CANCEL and reverse the goods movement.
Please let me know what do you mean by logs exactly. Is it the change documents or something else ?
Kesav

Similar Messages

  • Rollback after DB polling

    Hi all,
    I am using DB adapter to poll records from a table(changing a status flag to processed when the records are read) then write these records to a file, all is running fine but I need to handle rollback if any error occurs ,this means that I want the old status in the status flag instead of the current status(processed).
    I already used rollback before and it works fine but I can't seem to rollback after polling, any ideas??

    Hi,
    To implement rollback scenario in BPEL, you need to use compensate activity and compensation Handler in your process.
    Basically in compensate we define the scope which we want to compensate, and in compensation Handler we define the logic i.e in your case we will write the update statement in compensation Handler.
    Hope I have answered to your doubt.
    Cheers,
    Abhi...

  • Indexes after failure

    When a node fails and other nodes take responsibility of the failed nodes primary data (and ask others to make backup copies). What about the indexes on the failed node? Are they rebuilt? We seem to have performance problems after failure.

    Hi,
    Yes, indexes should be rebuilt on redistribution. Can you give more details about the performance issues you are seeing?
    Thanks,
    Tom

  • What is the proceedure for replacing a hard drive (after failure) for RAID 5 with IX4-300D?

    I have the IX4-300D with 4 hard drives (identical Seagate drives) using RAID 5.
    Someday a hard drive will fail and I and I have to replace it. I read through the users manual briefly and I didn't see any documentation on how to perform a hard drive replacement and not lose any data.
    So here are my questions:
    1) I know per the instructions that Lenovo prefers using identical hard drives. Let's say in 2 years, 1 hard drive fails. Most likely, the same model Seagate hard drive will not be available. So will using a replacement hard drive by the same manufacturer with similar specifications work?
    2) Will the front panel (or the software) tell me which hard drive has failed?
    3) What is the proceedure for replacing a hard drive after a failure occurs? I read that the IX4-300D is not hot-swappable. So do I just power the IX4-300D down, replace the hard drive, and turn it back on?
    Solved!
    Go to Solution.

    Hi exceptionalht,
    It is best to replace the hard drive with one that is the same manufacturer, rotational speed, and capacity, so it does not have to be exactly the same model.
    The front panel should show which drive has failed. If not you can check the web interface to find out.
    That is the basic procedure for replacing a hard drive. You can see a more detailed instructions here: Installing hard drives in an ix4-300d 
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • How to identify and delete objects after failure of registering XML schema

    Hi,
    I have tried to register a XML schema with many global elements but failed.
    I have checked the view DBA_XML_SCHEMA and found that there is an entry for this failed XML schema and the disk spaces would not be freed after the failure of registration as well.
    I have tried DBMS_XMLSCHEMA.deleteSchema() with DELETE_CASCADE_FORCE but failed with ORA-31000: Resource is not XDB document.
    How can I identify and delete the objects for this failed XML schema and free up the disk space ?
    I would not prefer to use 'DROP USER ... CASCADE' since there are other objects owned by this user.
    Thanks in advance.

    you can get them from user_objects.
    but you have to identify them manuallly if your schema has other objects other then created by the xml schema creation process.
    Note these objects will be cases senistitive. so you should enclose them with double quotes during deletion.

  • Import bug (fatal error): SQL Developer 4.1EA2 drops destination table upon rollback after error

    I created a table in the worksheet and then I tried to import data into is using SQL Developer EA2. After error is raised, I was presented with the error on the screenshot below. (Note: Rightmost button stands for "Cancel") By choosing cancel (i.e. Click cancel to cancel and rollback.) my destination table is dropped to recycle bin. Rollback should not undo any DDL even when the table was created using the import wizard. But purging a table that was not created by the import wizard is a fatal error.
    Steps to reproduce:
    create the destination table from worksheet and check if it was created:
    column table_name format a21
    create table test_imp_rollback_bug(dummy number(2));
    insert into test_imp_rollback_bug values (-1);
    commit;
    select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG';
    --Result:
    TABLE_NAME
    TEST_IMP_ROLLBACK_BUG
    import CSV using the import settings attached, To achieve this, utilize the new Restore state of the SQL Developer's import wizard. Note: you might need to adjust schema of the destination table.
    test_imp_rollback_bug_numbers.csv
    test_imp_rollback_bug-import_settings.sdimp
    Upon "Insert failed for rows  1  through  50 " message presented, click Cancel.
    The table does not exists any more:
    select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG';
    --Result:
    no rows selected
    Edit (jmarton, 2015-04-26):
    Software versions used:
    SQL Developer version: 4.1.0.18.37
    Oracle JDK: 1.8.0_31, 64bit, Linux
    Instant client: linux.x64-12.1.0.2.0
    Database: 12cR1 12.1.0.2.0 64bit, Linux, EE, CDB-install

    select table_name from user_tables where table_name='TEST_IMP_ROLLBACK_BUG'; 
    --Result: 
    no rows selected
    >>Note: you might need to adjust schema of the destination table.
    A rollback won't drop a table. Are you sure the tale isn't there? select from dba_tables or all_tables, assuming you had to change the destination schema as indicated in your test notes.

  • JCA AqAdapter on OSB - How to rollback on failure?

    Hi,
    I have an AqAdapter (JCA resource) on OSB.
    So, I generated a ProxyService that calls a BPEL BusinessService.
    If the BusinessService isn't available or some fault occurs in it, how can I get a rollback on AQ?
    Example:
    1. JCA gets a row from AQ and send it to the ProxyService
    2. ProxyService calls the BusinessService
    3. BusinessService fails for some reason
    4. JCA #MUST# rollback the row to AQ <--------- I mean, how can I get this 4th step done??
    Please someone help me.
    Thank you
    Edited by: user12994268 on Apr 11, 2013 1:26 PM
    Edited by: user12994268 on Apr 11, 2013 1:27 PM

    That means it retried 5 times.
    Have a look at this (extracted from: http://docs.oracle.com/cd/E12839_01/integration.1111/e10231/adptr_aq.htm). It seems to be related to what you've described:
    Oracle AQ Adapter Inbound Retries
    If you configure the Oracle AQ Adapter inbound retries to retry for more than 5 times by using the jca.retry.count service binding property for a retryable exception, then ensure that the queue is created with max_retries value that is greater then the value used for jca.retry.count. If nothing is specified, then the queue is created with a max_retries value of 5 which would mean that the message will end up in exception queue after 5 retries and will not be delivered to adapter for further processing. If jca.retry.count is specified with a value of 5 or less, then you do not have to change the queue max_retries property.
    Use the following code to change the max_retries property when creating a queue:
    begin
    DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'RAW_IN_QUEUE_TABLE',queue_payload_type => 'RAW');
    DBMS_AQADM.CREATE_QUEUE ( queue_name => 'RAW_IN_QUEUE',queue_table=> 'RAW_IN_QUEUE_TABLE', max_retries=>1500);
    DBMS_AQADM.START_QUEUE ( queue_name => 'RAW_IN_QUEUE');
    DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'RAW_OUT_QUEUE_TABLE', queue_payload_type => 'RAW');
    DBMS_AQADM.CREATE_QUEUE ( queue_name => 'RAW_OUT_QUEUE', queue_table => 'RAW_OUT_QUEUE_TABLE');
    DBMS_AQADM.START_QUEUE ( queue_name => 'RAW_OUT_QUEUE');
    end;
    Regards,
    Fabio.

  • Photoshop Elements 10 rollback after install

    I have a paid full version of Photoshop Elements/Premier Elements 10 on DVD. My computer runs Windows XP SP3 with current updates. After almost fully completing the installation, the installer will give an error message and roll back the installation. The error message is "The installation process has encountered an error while installing Shared Technologies". The logfile mentions:
    ERROR: DW050:  - Photoshop Camera Raw for Elements 10: Install failed
    I have read most of the forum posts which mention rollback (also for PSE9) and I have tried most of the recommendations, but nothing seems to help, so I would appreciate some advice.
    The installation log file is here: http://dl.dropbox.com/u/14071986/PSE10%20STI%20Installer%2010.0%2001-04-2012.log.gz

    I did some further testing and was finally successfull! The problem was apparently with Adobe AIR.
    Until now I was focused on the 64-bit Camera Raw error messages, but then I read in older posts that these messages are not necessarily fatal. Then I noted that the Adobe Help installation also gave error messages in the logfile, which specifically mentioned the rollback action:
    The csu inventory was not updated for payload {E3794450-8781-11E0-B632-B1904824019B} AdobeHelp 3.5.0.0, value of local var is -1
    Calling the ROLLBACK custom action code for pre-install for payload {E3794450-8781-11E0-B632-B1904824019B} AdobeHelp 3.5.0.0
    I already noted some time before this installation of PSE10/PRE10 that the help Adobe Community Help in my existing installation of PSE9/PRE9 gave error messages after trying to update itself. In addition Adobe AIR which runs Adobe Community Help did not successfully update itself as well. So I decided to tackle this problem first. I was also not able to uninstall Adobe AIR and Adobe Community Help so I used the online Microsoft Fixit to do this and that worked beautifully for both!
    http://http://support.microsoft.com/mats/Program_Install_and_Uninstall/en-us
    I then re-installed the latest version of Adobe AIR and then the Adobe Community Help function. Now the Help worked and it also updated itself again. At this point I ran the PSE10 installer again and now it ran to completion. Note that the error messages about 64-bit code are still there in the logfile, but they apparently were not fatal.
    Finally, I would like to thank all who responded to my initial posting. Although I did find the solution myself, your suggestions helped me to think clearly and kept me motivated to see this debug session through.

  • Session rollback after killing

    Hello,
    I am working on Oracle 11g r2 rac two node on AIX.
    On production database we found out the one user was holding locks on few tables and we killed that user but
    after killing user also it was exist in that database , it was trying to rollback data and until that user will relaese the lock we are not able to
    run job again.
    Other guys are asking us how much time it will take to rollback the data but we are not awere of that .Finally after 20 minutes that user disappared
    and locks got relaesed.
    I want to know how to check if after killing a database user what user is doing and if it is rolling back that data ..how much time it will take to complete it..
    Any idea...

    You can use Audit as Osama said.
    Also you can use V$TRANSACTION to see the status of the rollback.

  • Continue button after failure result

    Hello,
    I want to set the quiz to make the student review the course before retaking the quiz, so I have
    set off the 'retake quiz' button,
    set the "failure" setting to jump to slide starting the course.
    So, continue button on the results slide jumps to the start of course (rather than start of quiz).
    And I have given 3 attempts.
    But when I test this, the clicking the continue button only works on the first two failures. 
    I have to click "rewind" on the third attempt in order to get to the quiz for the 3rd attempt.
    Any ideas why this is? or what to fix?
    Thanks,
    Denise

    Hi there,
      Please try the following work around and let us know it worked for you.
    Workaround 1:
    1. Enable 'Retake Quiz' button from Edit>Preferences>Quiz>Pass or Fail.
    2. Go to the Result Slide, Place the 'Retake Quiz ‘button in top of the Continue button.
    Now whenever the user fails in the Quiz, 'Retake Quiz' button will take the precedence and allows the User to retake the Quiz, and once when the User passes the Quiz 'Retake Quiz' button will disappear and the 'Continue' button will display on the slide.
    Workaround 2
    Otherwise try inserting a slide after the Result Slide with Two buttons(Retake and Continue), Write a small Script(to show and hide the Continue and Retake button whenever user passes and fails the Quiz) and set it as the slide's 'On Enter' action.
    -nsukumar

  • Rollback after commit

    hi
    it possible to rollbak after commit
    is how

    This doesn't make sense. After a commit all changes are persisted into three db, so there is nothing to rollback.
    You can do this, but there is no change.
    Timo

  • Rollback after analyze command

    Hi Everyone,
    My DB version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE    10.2.0.1.0    Production"
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I've inserted 5 rows in a table, but didn't commit the transaction.
    After that I executed following query to update the plan table.
    analyze table <table_name> compute statistics
    Then I query the plan table for the update, it's updated, but after that I rolled back the transaction
    and was hoping that those 5 records will be deleted from that table as I didn't commit the transaction.
    But that didn't happen. So my question is when I was computed the statistics, previous DML statement
    is committed automatically or what happened? Why ROLLBACK is not working for that table?
    Regards,
    BS2012. 

    I tried this in Oracle 11gr2 version and found similar characteristic.
    CREATE TABLE tmp (nm VARCHAR2 (100));
    Table created.
    INSERT INTO tmp
         VALUES ('A');
    1 row created.
    INSERT INTO tmp
         VALUES ('B');
    1 row created.
    INSERT INTO tmp
         VALUES ('C');
    1 row created.
    INSERT INTO tmp
         VALUES ('D');
    1 row created.
    INSERT INTO tmp
         VALUES ('E');
    1 row created.
    ANALYZE TABLE tmp COMPUTE STATISTICS;
    Table analyzed.
    ROLLBACK;
    Rollback complete.
    SELECT COUNT (*) FROM tmp;
    count(*)
    5
    According to documentation:
    COMPUTE STATISTICS instructs Oracle Database to compute exact statistics about the analyzed object and store them in the data dictionary. When you analyze a table, both table and column statistics are collected.
    So Analyze is basically doing a commit into data dictinary in the same session.
    Probably that is the reason why rollback does not work here.
    Its like simple example:
    I inserted 100 rows in a table without commit;
    Created a new table in same session (DDL implicit commit)
    rollback;
    -- that rollback will not have effect on the 100 rows we committed before.
    I guess Gurus will come up with better examples than what I have elucidated.
    Cheers,
    Manik.

  • WLS 5.1 - Tx marked rollback after 30sec.

              In a JMS QueueReceiver class establishes and begins a UserTransaction after which
              there is a sql call that sometimes take > 30 seconds. As a result the follow message
              is received:
              Mon Jun 10 21:37:26 EDT 2002:<I> <TX> Transaction (TxC 214945161, xid = 1023759385810_1,
              timeout = 30, txState = Marked Rollback, root = null) rolled back after 30 sec.
              Is there any way to adjust this timeout period? Also, where is it originating?
              Thanks,
              Dave
              

    For user tx's you can explicitly set the tx timeout using
              javax.transaction.UserTransaction.setTimeout(int)
              Kumar
              Dave wrote:
              > In a JMS QueueReceiver class establishes and begins a UserTransaction after which
              > there is a sql call that sometimes take > 30 seconds. As a result the follow message
              > is received:
              >
              > Mon Jun 10 21:37:26 EDT 2002:<I> <TX> Transaction (TxC 214945161, xid = 1023759385810_1,
              > timeout = 30, txState = Marked Rollback, root = null) rolled back after 30 sec.
              >
              > Is there any way to adjust this timeout period? Also, where is it originating?
              >
              > Thanks,
              > Dave
              

  • Data Committed instead of Rollback after Deadlock Error in SQL Server 2008 R2 (SP2)

    We're having a strange issue which is occurring only with one Customer having SQL Server 2008 R2 (SP2).
    Basically we have multiple threads uploading data and when an error occurs (like deadlock or any other error). The deadlock victim (process/transaction) is rolledback (from .NET). However the rollback command is not reaching SQL Server as it doesn't show
    in the trace (through SQL Profiler).
    To make things worse, not only the transaction is not being rolled back but the INSERTs executed before the error are being somehow committed, leaving the database in an inconsistent state.
    This is only produced in one environment.
    Any idea what the issue could be?

    All statements are executed with in a Transaction. Under the same scenario this code works perfectly fine for 1000s of customers. Only one customer has this issue.
    You need to capture profiler to check transaction scope.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Mac Mini doesn't startup after failure firmware update..

    Hello.
    I have a mac mini.
    Downloaded firmware update and Mac OS X update through MAC OS X Software Update.
    After that my Mini Mac ask me to restart.
    And now my display shows "No signal" message and no startup sound. Indicator lights up, can hear Hard Drive sound and DVD disk sound, optical mouse lights up... and nothing else.
    I tried to reset PMU... nothing again (

    Hey Guys today i updated my macmini from 10.5 to 10.5.2 i downloaded the file 343MB on http://www.apple.com/support/downloads/macosx1052comboupdate.html since i have a slow connection i took me 5 hours to download the file after installed and and saw the success intallation with a green checkmark then restart and it presented me a blank white screen as i was reading the discussion i read that just leave it as the OS is doing it's thing but there is no indication whatsoever just a blank screen. then i saw my SD card reader blinking i remove it thinking that its the cost why there is now indicator that the HD is still reading so ive waited for 30mins without touching a thing and finally i heard the CHIME OF RELIEF the apple logo flashes and I have installed my OS 10.5.2 successfully

Maybe you are looking for