Issue with getting sequance number from db in EO for a primary key column

Hello Experts,
we are working on ADf 11.1.1.2.
we are facing issue with sequence number in our UAT instance.
dev instance and sit instances did not gave any issues.
We have one EO in that for one attribute we have given the value as
new oracle.jbo.server.SequenceImpl("XXOZF_QA_CODE_S", object.getDBTransaction())).getSequenceNumber()
in order to get the primary key column value from db sequance .
<TransientExpression><![CDATA[(
new oracle.jbo.server.SequenceImpl("XXOZF_QA_CODE_S", object.getDBTransaction())).getSequenceNumber()
]]></TransientExpression>
now the issue is "I have incremented the sequence number through SQL plus from 10 to 20. And created a record on a VO which is based on above EO.
But the sequence iam getting is 11 instead of 21."
This is happening only in our uat instance all other instances are working fine.
Can any one tell us how this frame work is still pointing tho the old sequnce number.
regards
Gayaz

Also make sure that your sequence has NOCYCLE option.
some thing like this:
CREATE SEQUENCE test_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;

Similar Messages

  • Issue with getting the WebServiceContext from webservice in weblogic10gR3

    I am trying to get the run time context information using the WebServiceContext in the web service class. I have done all the necessary changes as required. However the WebServiceContext is failing to get injected. The code is throwing NullPointer Exception on trying to getMessageContext. Is there anything else needs to be done to get the WebServiceContext?
    I am using bottom up approach from java file, getting WSDL auto generated and using the same to invoke the webservice and having this issue
    Any help on this would be greatly appreciated
    Cheers,
    Hari
    Below is the code
    Interface
    package product.bam.webservices;
    import product.bam.xml.sendbenefitalert.SendBenefitAlertRequestDocument;
    import product.bam.xml.sendbenefitalert.SendBenefitAlertResponseDocument;
    public interface BAMServices {
         public SendBenefitAlertResponseDocument sendBenefitAlert(SendBenefitAlertRequestDocument reqDoc);
    Impl class
    package product.bam.webservices;
    import java.util.Iterator;
    import java.util.Map;
    import javax.annotation.Resource;
    import javax.jws.HandlerChain;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.handler.MessageContext;
    import library.logging.Logger;
    import product.bam.xml.sendbenefitalert.SendBenefitAlertRequestDocument;
    import product.bam.xml.sendbenefitalert.SendBenefitAlertResponseDocument;
    import weblogic.jws.WLHttpTransport;
    import weblogic.jws.soap.SOAPBinding;
    @HandlerChain(file="BAMJWSChain.xml", name="BAMWSHanlderChain")
    @WLHttpTransport(serviceUri = "product/bam/webservices/BAMAttachmentServices.java")
    @WebService (serviceName = "BAMAttachmentServices",
         targetNamespace = "http://www.openuri.org/")
    public class BAMAttachmentServices implements BAMServices {
         public BAMAttachmentServices() {
              System.out.println("\n\n\t BAMAttachmentServices Service Instentiated...");
         private Logger logger = new Logger(BAMAttachmentServices.class,"BenefitAlertManagement");
         @Resource WebServiceContext wsContext;
    @SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.DOCUMENT,
    use = javax.jws.soap.SOAPBinding.Use.LITERAL,
    parameterStyle = javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)
         @WebMethod
    public SendBenefitAlertResponseDocument sendBenefitAlert(SendBenefitAlertRequestDocument reqDoc) {
         logger.debug(reqDoc.xmlText(),null);
         MessageContext context=wsContext.getMessageContext();
         Map requestHeaders = (Map)context.get(MessageContext.HTTP_REQUEST_HEADERS);
         Iterator it = requestHeaders.entrySet().iterator();
         while (it.hasNext()) {
         Map.Entry pairs = (Map.Entry)it.next();
         System.out.println(pairs.getKey() + " = " + pairs.getValue());
         return SendBenefitAlertResponseDocument.Factory.newInstance();
    Edited by: user12537291 on Jan 30, 2010 5:38 PM

    Also make sure that your sequence has NOCYCLE option.
    some thing like this:
    CREATE SEQUENCE test_seq
    START WITH 1
    INCREMENT BY 1
    NOCACHE
    NOCYCLE;

  • IOS7 issues with getting unwanted contacts from another person who used to share an iCloud account with me....

    I used to share an iCloud account with my sister (mainly for music/iTunes reasons). After downloading iOS7, I got all her contacts so I made my own iCloud account in order to separate our contacts, calendars, etc. Now her contacts are gone from my phone list but when I text, they still show up when I am selecting a recipient. How do I get rid them?

    Settings > Photos & Camera > Photo Sharing > OFF

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • I am having a issue with getting data useage alerts for my iphone 4s

    I am having a issue with getting data useage alerts for my iphone 4s from AT&T.  I do not download anything huge at all.
    I looked into it and figured out that the phone dials out nightly at 12:29am every night.   I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this.  I then clicked don't send...but I am still getting useage alerts.  Can anyone help me please...
    Thanks

    Honestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
    Little to nothing in that thread indicates an issue beyond inept consumers.  Yes, I read several pages on the incessant gripes.  Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
    So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
    If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement.  Whining will get nothing accomplished.

  • I am trying to "personalize my cs2 software online download with the serial number from my original boxed cd set and it didn't work. I tried using the download serial number and that doesn't work either. Need help!

    I am trying to "personalize" my cs2 software online download with the serial number from my original boxed cd set and it didn't work. I tried using the download serial number and that doesn't work either. Need help!

    I understand that you have also used the download link & serial number from Adobe - CS2 Downloads, if still the CS2 is not working, then please refer to the system requirement for e.g System requirements | Photoshop
    The issue can be that the present operating system might not be compatible with the CS2.
    Regards
    Rajshree

  • Anyone had or having issues with getting nVidia NVS 450 resolution to work?

    Hi all,
    We got a new C20 with a nvidia NVS 450 card--and a ThinkVision monitor. The C20 had Windows 7 preinstalled; the out-of-the-box resolution was 640x480 and we couldn't get it to go higher than that! The ThinkVision and the video card are connected using the DisplayPort cable that came with the unit. After reinstalling the video card driver that came with the unit (on a CD that contains drivers for Windows and Linux), we could never get the resolution to go beyond 640x480. We gave up thinking it must be some quirk with Windows 7. We were going to install Linux on the C20 anyway, so we moved on doing that.
    We installed Fedora 14 (64-bit) installed the nvidia video driver that was on the CD and can't get the display resolution greater than 640x480. After a few days of trial-n-error referencing various online forums, we managed to get the resolution up to 800x600, but not the expected 1900-something resolution the ThinkVision and the video card supports.
    Has anyone had issues with getting the video card resolution to work? If so, were you able to resolve the problem? We thought we'd toss this here instead of calling up Lenovo support first because usually with technical issues, we get more intelligent replies than over-the-phone. Also, waiting for replies on a forum is less frustrating than being put on hold over the phone.
    Chris
    Solved!
    Go to Solution.

    Thank you for your reply.
    I was lucky to get a hold of another monitor and when I connected that, I got the full resolution. After much testing, I determined that it was a faulty monitor and it had nothing to do with the video card. I eventually got a replacement monitor for the one that wasn't giving me the full resolution.
    Afterwards, I went ahead and got the latest nvidia drivers from their Web site. Everything works really well now.

  • Issues with getting the slide button to work after upgrade to iOS 7.02 and 7.03

    Ever since upgrading to iOS 7.02 and 7.03 having issues with getting the slide button to work to open up iPad 2.  Happened last week and was able to restore it to new and get it to work again and it worked great until one week later (this morning) doing the same thing.  Have tried restoring iPad to new 3 times (via itunes) and still unable to get the slide button to move so can use the iPad.  IPad able to charge, able to restore, able to sync with itunes even able to recover but not able to get past first screen where you have to slide to access iPad.  Any help would be greatly appeciated.  Live about 300 miles from nearest Apple store.

    I am beginning to wonder whether there isn't some weird problem with that Home button.
    Try this: Settings > General > Accessibility > AssistiveTouch = On
    This will place a button on the iPad's screen.
    You can move this button anywhere on the screen.
    This button gives you - amongst many other things - a soft Home button.
    To turn your iPad on, you can use the Sleep/wake button or move a small magnet across the bezel of the iPad where the volume controls are.
    If you use the magnet, then: Settings > General > Lock / Unlock = On
    Now should not need to press the Home button anymore.
    If this method allows you to use your iPad without a hitch, then suspect hardware problems with the Home button.

  • Powershell : Issues with user input collection from Multiple InPutBox Form

    I am having issues with getting user input to pass from a form that a user fills out into variables that I can then use in other methods and commands. (ex; SQL Query, SQL Data Add, ... )
    I have attached the Powershell script I am using in it's designed form but I am having issues getting the DataCollection function to grab the content of the InputBox and send it to a variable for later use.
    Note: I'm running this at this time from the ISE so I can actually see what is going on.
    Any help would be appreciated.
    DAS
    [System.Reflection.Assembly]::LoadWithPartialName( “System.Windows.Forms”)
    [System.Reflection.Assembly]::LoadWithPartialName( “Microsoft.VisualBasic”)
    $FormDBA = New-Object System.Windows.Forms.Form
    $FormDBA.Size = New-Object System.Drawing.Size(300,500)
    $FormDBA.Text = "MIS Data"
    $FormDBA.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen;
    function DataCapture
    $SubSID = $InBoxSID.text
    ECHO $SubSID
    $InBoxTxtSID = New-Object System.Windows.Forms.Label
    $InBoxTxtSID.Location = New-Object System.Drawing.Size(25,15)
    $InBoxTxtSID.Text = "Sticker ID : "
    $InBoxSID = New-Object System.Windows.Forms.TextBox
    $InBoxSID.Location = New-Object System.Drawing.Size(130,10)
    $InBoxSID.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtUSR = New-Object System.Windows.Forms.Label
    $InBoxTxtUSR.Location = New-Object System.Drawing.Size(25,55)
    $InBoxTxtUSR.Text = "User Name ; "
    $InBoxUSR = New-Object System.Windows.Forms.TextBox
    $InBoxUSR.Location = New-Object System.Drawing.Size(130,50)
    $InBoxUSR.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCN = New-Object System.Windows.Forms.Label
    $InBoxTxtPCN.Location = New-Object System.Drawing.Size(25,95)
    $InBoxTxtPCN.Text = "PC Name : "
    $InBoxPCN = New-Object System.Windows.Forms.TextBox
    $InBoxPCN.Location = New-Object System.Drawing.Size(130,90)
    $InBoxPCN.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDPT = New-Object System.Windows.Forms.Label
    $InBoxTxtDPT.Location = New-Object System.Drawing.Size(25,135)
    $InBoxTxtDPT.Text = "Department : "
    $InBoxDPT = New-Object System.Windows.Forms.TextBox
    $InBoxDPT.Location = New-Object System.Drawing.Size(130,130)
    $InBoxDPT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCT = New-Object System.Windows.Forms.Label
    $InBoxTxtPCT.Location = New-Object System.Drawing.Size(25,175)
    $InBoxTxtPCT.Text = "PC Type : "
    $InBoxPCT = New-Object System.Windows.Forms.TextBox
    $InBoxPCT.Location = New-Object System.Drawing.Size(130,170)
    $InBoxPCT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMAK = New-Object System.Windows.Forms.Label
    $InBoxTxtMAK.Location = New-Object System.Drawing.Size(25,215)
    $InBoxTxtMAK.Text = "Make : "
    $InBoxMAK = New-Object System.Windows.Forms.TextBox
    $InBoxMAK.Location = New-Object System.Drawing.Size(130,210)
    $InBoxMAK.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMOD = New-Object System.Windows.Forms.Label
    $InBoxTxtMOD.Location = New-Object System.Drawing.Size(25,255)
    $InBoxTxtMOD.Text = "Model : "
    $InBoxMOD = New-Object System.Windows.Forms.TextBox
    $InBoxMOD.Location = New-Object System.Drawing.Size(130,250)
    $InBoxMOD.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtOPS = New-Object System.Windows.Forms.Label
    $InBoxTxtOPS.Location = New-Object System.Drawing.Size(25,295)
    $InBoxTxtOPS.Text = "O.S. : "
    $InBoxOPS = New-Object System.Windows.Forms.TextBox
    $InBoxOPS.Location = New-Object System.Drawing.Size(130,290)
    $InBoxOPS.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDIS = New-Object System.Windows.Forms.Label
    $InBoxTxtDIS.Location = New-Object System.Drawing.Size(25,335)
    $InBoxTxtDIS.Text = "Disposed : "
    $InBoxDIS = New-Object System.Windows.Forms.TextBox
    $InBoxDIS.Location = New-Object System.Drawing.Size(130,330)
    $InBoxDIS.Size = New-Object System.Drawing.Size(120,20)
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.Add_Click({DataCapture})
    $FormDBA.Controls.Add($button)
    $FormDBA.Controls.Add($InBoxTxtSID)
    $FormDBA.Controls.Add($InBoxTxtUSR)
    $FormDBA.Controls.Add($InBoxTxtPCN)
    $FormDBA.Controls.Add($InBoxTxtDPT)
    $FormDBA.Controls.Add($InBoxTxtPCT)
    $FormDBA.Controls.Add($InBoxTxtMAK)
    $FormDBA.Controls.Add($InBoxTxtMOD)
    $FormDBA.Controls.Add($InBoxTxtOPS)
    $FormDBA.Controls.Add($InBoxTxtDIS)
    $FormDBA.Controls.Add($InBoxSID)
    $FormDBA.Controls.Add($InBoxUSR)
    $FormDBA.Controls.Add($InBoxPCN)
    $FormDBA.Controls.Add($InBoxDPT)
    $FormDBA.Controls.Add($InBoxPCT)
    $FormDBA.Controls.Add($InBoxMAK)
    $FormDBA.Controls.Add($InBoxMOD)
    $FormDBA.Controls.Add($InBoxOPS)
    $FormDBA.Controls.Add($InBoxDIS)
    $FormDBA.ShowDialog()

    Change this:
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.DialogResult='Ok'  #<<<<<-------
    #$button.Add_Click({DataCapture})
    Remove function andrun like this:
    if('Ok' -eq $FormDBA.ShowDialog()){
        $FormDBA.Controls|%{$_.Text}
    With names you can get values by control name.
    ¯\_(ツ)_/¯
    This suggestion works for the purpose I needed. 
    If I could, I would attach the file instead of pasting the script so you can see what all I am using this to do.
    But in short, we have a main form we use to pull records from a database and call up an application at the click of a button for remote assistance.  However, we seem to now need the ability to have this application to edit and add new records into said
    database.  That's where this second form came in and also when I hit my issue with the information capture.
    At this time I'm getting this to format the information collected so that I can start using using it with SQL commands.

  • Issue with getting the entire spooled job into the pdf document

    Hi All,
    My scheduled job runs fine and completes successfully but it appears to have some issues with getting the entire spooled job into the pdf document which it sends to a an end user.Has anyone encountered it before.Your kind assistance would be appreciated.
    Thank you.
    Regards,
    John

    Hi,
    Please read below link for your query:-
    http://help.sap.com/saphelp_nw04/helpdata/EN/85/54c73cee4fb55be10000000a114084/content.htm
    Regards,
    Anil

  • I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile b

    I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile by changing the color management settings, the color picker no longer shows true white or black. How do I get elements 12 to honor the new calibrated settings?

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

  • FM to get Personel Number from USER ID

    Hi,
       Is there any FM to get Personel Number from the USER ID(sy-uname).
    Thank you,
    Ramu N.

    Hi Ramu,
    You can find the user-id & Personnel Number in the table PA0105.
    select single PERNR from pa0105 into PERSONEELSNUMMER
    where usrid eq USER_ID
    and   endda eq '99991231'.
    hope this helps!
    best regards,
    Thangesh

  • Is anyone having issues with getting apps.

    Is anyone having issues with getting apps? It keeps taking me to my billing info for some unknown reason. it says (invalid address) when I try to purchase or update apps. Anyone got any answers to help me please??????

      YES I TO THOUGHT I HAD DONE SOMETHING TO MESS MINE UP, AND TRIED FOR 2 DAYS TO GET AHOLD OF SOMEONE TO SEE IF MY CC INFO HAD BEEN HIJACKED BUT WITH TODAY'S SO CALLED TECHNOLOGY YOU CAN NOT TALK TO A LIVE PERSON WHEN DEALING WITH ITUNES SO IT DOESN'T MATTER WHAT HAS HAPPENED YOU WON'T EVER REACH ANYTHING BUT YOUR OWN COMPUTER..LOL
    AFTER I FOUND THIS SITE I SEEN THAT NOT ONLY I AM HAVING THIS SAME PROBLEM, MANY , MANY MORE ARE SO I GUESS WHEN APPLE HAS DECIDED THEY HAVE LOST ENOUGH $$$$$ THEN THEY WILL FIX IT... GOOD LUCK TO YOU!!!!

  • Hoping someone out there can with getting junk mail from my  windows live mailbox ? on my iphone

    Hoping someone could help me with getting junk mail from windows mail to my i phone?, i would only like to get my inbox mail

    Are you accessing your Windoze Live account as a POP account or as an Exchange account with the iPhone's Mail app?
    If as a POP account, received messages that are in the account's Inbox at the incoming mail server will be downloaded.
    If you are accessing the account as an Exchange account, all server stored mailboxes will be available automatically when accessing the account with the iPhone's Mail app. If as an Exchange account, seems like you would want to have the account's junk mailbox available in case a legitimate message is incorrectly marked as junk and moved out of the account's Inbox mailbox.

  • Issue with Executing OS commands from Stored Procedure

    I am trying to execute the scripts provided at :
    http://github.com/xtender/XT_SHELL
    provided by xtender user.
    As required, I have asked my DBAs to grant privileges by executing the following scripts:
    Begin
      --change to needed permissions and execute
      dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
    end;
    /where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
    The error I am facing when I try to execute the following command is:
    select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
    Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
    EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )

    DUPLICATE
    ===============================================================
    Issue with Executing OS commands from Stored Procedure
    ==============================================================

Maybe you are looking for

  • Unable to print from my wireless x2 allow printer

    I have a HP laptop and am running Windows 7. I have printed off this laptop many times in the past. Occasionally we have had problems with communication but it has been easily resolved. This week however, I can print from my desktop, my phone but not

  • How to put Page break in SAP Script

    Hi Experts, Please tell me how to put page break in SAP Script. or give some sample code looking forward for your reply.. Regards, Kali Pramod

  • Creating websites in photoshop and export to dreamweaver

    Ok. I NEED HELP!!! I tend to create complex designs in photoshop, and I can never get my images to line up correctly in Dreamweaver. I had sliced each image in photoshop, and saved them as HTML and Images, I open it up in dreamweaver, and none of my

  • Nokia mail locks email server

    When i assign an email adress to the nokia email app on my  n97 mini i cannot download email messages from my computer. The reply i get is :mailserver locked out by another server. How do i fix this problem?

  • Connecting ms sql server from oracle using db link

    Hi, Source : Oracle 11g on linux destination : ms sql server 2005 i need to create the db link from oracle to ms sql server to view the tables , is it posibble without configuring the gateways( as looks like it is licenced product) Please let me know