DB Adapter: Polling For New Records returns the First record multiple Times

I Polling for New or Chnaged Records against DB2 on iSeries. The DB Adapter returns the first record from the Table multiple Times. If the Table has 5 records it displays the first record 5 times. I am using BPEL 10.1.3.1 Can anyone help me with this.

Hi there,
please check out the DBAdapter trouble-shooting guide:
http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/app_trblshoot.htm#CIHFEHFA
I am copying an entry from there into here:
A.1.21 Some Queried Rows Appear Twice or Not at All in the Query Result
Problem
When you execute a query, you may get the correct number of rows, but some rows appear multiple times and others do not appear at all.
This behavior is typically because the primary key is configured incorrectly. If the database adapter reads two different rows that it thinks are the same (for example, the same primary key), then it writes both rows into the same instance and the first row's values are overwritten by the second row's values.
Solution
Open Application Sources > TopLink > TopLink Mappings. In the Structure window, double-click PHONES. On the first page, you should see Primary Keys. Make sure that the correct columns are selected to make a unique constraint.
Save and then edit the database partner link.
Click Next to the end, and then click Finish and Close.
Open your toplink_mappings.xml file. For the PHONES descriptor, you should see something like this:
<primary-key-fields>
<field>PHONES.ID1</field>
<field>PHONES.ID2</field>
</primary-key-fields>
Thanks
Steve

Similar Messages

  • Oracle Forms returns the first record in the database when performing query

    Once in a while when we query for a record on a form, say by first name Tom, then it returns the first record in the database. Other times it return the Tom's record. It only happens once in a while and if you close the form and reopen it and requery for Tom, then it brings Tom's record.
    Does anyone know the issue what could be happening. It just happens every now and then that it's hard to reproduce.
    ORacle Forms 10GR2
    ORacle Application Server 10.1.3
    thanks

    then it returns the first record in the databaseI'm not sure if i understand you correctly. Do you mean forms ignores the searc-condition you entered? I would check SYSTEM.LAST_QUERY at the moment this happens to check if the condition gets somehow lost.

  • How do I blank my BI Pub report parameter from returning the first record when output to HTML?

    Hi all.
    I have a report that has several parameters A, B, C D.
    I include these at the head of the rtf report.
    I run the report WITHOUT entering anything for parameters A & B.
    When the report generates (returning all the expected correct records), it enters into parameter fields A & B at the top of the report the first records’ A & B fields when they should be blank.
    IS there something I need to do in the rtf form field Help text along with the field name?
    ThanksForLoooking..
    Malc

    within the rtf of the report, within the form-field-help-text, this should work..
    <?xdofx:decode(<parameter name>,'','',<parameter name>)?>
    if the parameter is left blank, then don't put anything in the rtf field, otherwise put in anything that is selected in the parameter.
    or this..
    <?xdofx:if <parameter name>='' then 'All Params Included' else <parameter name> end if?>
    ..yet, when the parameter is left blank, the parameter field in the report generated is populated with whatever is in the first line of the parameter in the report.
    I also can't find anything in the old rdf that is causing this either.  Help!

  • How can I do a multiple record data merge, but specify that a specific text frame with variable data only merges on the first record?

    I'm doing a multiple record data merge, I have 2 frames both with variable data placed inside.
    I would like to specify that one of the text frames only merges once(first record) and the other frame multiple times for each record in the data file.
    Is it possible?
    I thought that perhaps if I place the text frame that must merge once on the master page, it would work.  But you are not allowed to place variable text on the master and on the document page.
    I'm going to try it through scripting next, but thought that perhaps there is an easier way that I'm not aware of.
    Thanks,
    Suzanne

    Suzanne,
    If you were trying to post a screen shot, you would need to return to the forum and post it using the "camera" icon at the top of the post editing windows.
    I use a plug-in from Em Software called InData. One of the benefits for what I do is there are no individual frames on a page to deal with post-merge. Individual frames are great for simple merges (address labels, post cards, etc.). But I typically do more other types of merges.
    That said, there is a drawback--one needs to come to an understanding of writing expressions that actually parse the incoming data. So in the spice price list example, that looks like:
    It's reasonably easy once one does it a few times. And it can be far more complicated. The above is from Em Software's samples that has been tweaked. The best thing I can recommend would be to download the trial and see for yourself. They are good at responding to specific questions if you get stumped.
    I imagine this all could be scripted somehow in ID. But I have no idea how and the plug-in just lets me keep working.
    Mike

  • External video projector - How can I hook up my Mini DisplayPort to DVI Adapter onto my new MacBookAir if the machine does not have a mini port (but only 2 USBs and 1 Thunderbolt)?

    Hi
    How can I hook up my DVI Adapter onto my new MacBookAir if the machine does not have a mini port (but only 2 USBs and 1 Thunderbolt)?
    Is there a DVI adaptor already for Thunderbolt?
    Thanks,
    JFR

    The Mini Display port and Thunderbolt port use compatible connector bodies. Your current Mini Display to DVI or VGA adapter will still work as before on the newer Thunderbolt capable machines.

  • I have a new iPhone 5C, have the sounds alerts set up. But I'm not getting sound alerts for new voicemail, only the red circle on the screen.  How can I make the sound alert work?

    I have a new iPhone 5C, have the sounds alerts set up. But I'm not getting sound alerts for new voicemail, only the red circle on the screen.  How can I make the sound alert work?

    I have had this same problem for weeks now with my 4S.  I just got a new 5S after being extremely frustrated and the same thing - no sounds.  After searching posts all over, I couldn't find a solution. I just told my friend of the issue and he asked "Do you have the Do Not Distrub on?"  I didn't even know such a function existed.  Upon looking that was exactly the issue.
    To resolve, go to Settings> Do Not Disturb> Manual.  If it is green, turn it off.  You will now get phone calls and text alerts.
    This functionality is also on your quick access utility menu (slide up menu).  I assume this is how it was enabled on my phone.
    I will post on other sites since I searched for weeks for this solution and didn't see it anywhere.  Good luck!

  • HT201250 Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in and if so, do I really need all the old backups on my smaller ext

    Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in and if so, do I really need all the old backups on my smaller external drive?

    50maz wrote:
    Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in
    Yes, it will do a full backup.
    and if so, do I really need all the old backups on my smaller external drive?
    Only if you want to be able to go back in time to those previous Time Machine backups.  When you plug in the new larger external drive, you will only be able to go back as far as the first day you plugged it in and ran the first Time Machine backup on it.

  • I downloaded the new version of Mozilla and tried to install an add-on to allow me to set the home page for new tabs. The app says it has downloaded but does not open new tabs as my home page (google) - any suggestions what I can do?

    I downloaded the new version of Mozilla and tried to install an add-on to allow me to set the home page for new tabs. The app says it has downloaded but does not open new tabs as my home page (google) - any suggestions what I can do?

    I've been working on this all day!!! I've tried everything I know of and can't get it to load either. Sounds like lots of people are having problems. Here is what I have so far...I have uninstalled EVERYTHING on my pc from apple and reinstalled itunes to no avail. I have tried all sorts of things I've read as fixes online. NOTHING has worked. Here is something interesting that i have noticed though. my main pc (which is the one i have always managed my itunes account with for years) is a 32 bit system running windows 7. Yesterday I installed itunes for the first time on my new netbook which is a 64 bit (windows 7) system and it works just fine. i have three other laptops (all window 7) in my household that are all 64 bit operating systems and ALL have updated to 10.5 and THEY ALL work fine. this is FOUR 64 bit systems ALL updated w/10.5 that work and ONE that is a 32 bit that will not. Can't get any help from apple. their suppot *****! I want to get someone on the **** phone or a live chat but cant. *** APPLE????? please let mw know if you find SOMETHING i can try next. I'm out of ideas and patience!

  • How to return to the first record of a multiple row cursor (Forms 6i)

    Hi all,
    I had a bit of a search through here, but couldn't quite find the answer I'm after.
    I have a multiple row cursor, which I feed into a multi-row block in Forms 6i. I have the following code:
    OPEN CURSOR;
    LOOP
       FETCH CURSOR INTO :FIELD1, :FIELD2, :FIELD3, :FIELD4;
       ... do other code not related with cursor
       EXIT WHEN CURSOR%NOTFOUND;
       NEXT_RECORD;
    END LOOP;Now, I use the Forms built-in NEXT_RECORD to move down through the records on the form and fill in each row from the db. However, once the block loads (this works correctly), the current item (ie where the typing cursor is left) is on the last record.
    Obviously, I need the current item (after loading) to be on the first record. I tried using the Forms built-in FIRST_RECORD after the END LOOP command, but that gives me an ORA-06511 error (An attempt was made to open a cursor that was already open).
    Does anyone know how I might be able to return to the first record of the block correctly?
    Thanks in Advance,
    Chris.

    Ok, I feel like a bit of a dolt.
    I found that all cursors had to be closed before navigating back to the first record.
    Case closed! :)

  • Report without the first record using JasperReports

    Hi everyone,
    I�m using JasperReports127 but the first record is not being showed...
    I really don�t know why... Does someone had the same problem?!
    I follow this tutorial:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/reports.html
    Gustavo Callou

    I forgot to say that what ir really interesting is that in the iReport Aplication the report works fine... but in the jsc not...
    my setor.jrxml is bellow:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Created with iReport - A designer for JasperReports -->
    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport
              name="classic"
              columnCount="1"
              printOrder="Vertical"
              orientation="Portrait"
              pageWidth="595"
              pageHeight="842"
              columnWidth="535"
              columnSpacing="0"
              leftMargin="30"
              rightMargin="30"
              topMargin="20"
              bottomMargin="20"
              whenNoDataType="NoPages"
              isTitleNewPage="false"
              isSummaryNewPage="false">
         <property name="ireport.scriptlethandling" value="0" />
         <property name="ireport.encoding" value="UTF-8" />
         <import value="java.util.*" />
         <import value="net.sf.jasperreports.engine.*" />
         <import value="net.sf.jasperreports.engine.data.*" />
         <queryString><![CDATA[select *
    from tb_setor
    where tb_setor.incodigosetor > '0'
    order by tb_setor.vanome
    ]]></queryString>
         <field name="INCODIGOSETOR" class="java.math.BigDecimal"/>
         <field name="VANOME" class="java.lang.String"/>
         <field name="VARAMAL" class="java.lang.String"/>
              <background>
                   <band height="0" isSplitAllowed="true" >
                   </band>
              </background>
              <title>
                   <band height="50" isSplitAllowed="true" >
                        <staticText>
                             <reportElement
                                  x="61"
                                  y="5"
                                  width="412"
                                  height="40"
                                  key="staticText"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement textAlignment="Center">
                                  <font size="28" isBold="true"/>
                             </textElement>
                        <text><![CDATA[Setores]]></text>
                        </staticText>
                        <line direction="TopDown">
                             <reportElement
                                  x="0"
                                  y="48"
                                  width="534"
                                  height="0"
                                  forecolor="#000000"
                                  key="line"
                                  positionType="FixRelativeToBottom"/>
                             <graphicElement stretchType="NoStretch" pen="2Point"/>
                        </line>
                        <line direction="TopDown">
                             <reportElement
                                  x="0"
                                  y="3"
                                  width="534"
                                  height="0"
                                  forecolor="#000000"
                                  key="line"/>
                             <graphicElement stretchType="NoStretch" pen="2Point"/>
                        </line>
                   </band>
              </title>
              <pageHeader>
                   <band height="9" isSplitAllowed="true" >
                   </band>
              </pageHeader>
              <columnHeader>
                   <band height="20" isSplitAllowed="true" >
                        <rectangle radius="0" >
                             <reportElement
                                  mode="Opaque"
                                  x="1"
                                  y="1"
                                  width="534"
                                  height="17"
                                  forecolor="#000000"
                                  backcolor="#999999"
                                  key="element-22"/>
                             <graphicElement stretchType="NoStretch" pen="Thin"/>
                        </rectangle>
                        <staticText>
                             <reportElement
                                  x="0"
                                  y="1"
                                  width="267"
                                  height="16"
                                  forecolor="#FFFFFF"
                                  key="element-90"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement>
                                  <font fontName="" size="12"/>
                             </textElement>
                        <text><![CDATA[Setor]]></text>
                        </staticText>
                        <staticText>
                             <reportElement
                                  x="267"
                                  y="1"
                                  width="267"
                                  height="16"
                                  forecolor="#FFFFFF"
                                  key="element-90"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement>
                                  <font fontName="" size="12"/>
                             </textElement>
                        <text><![CDATA[Ramal]]></text>
                        </staticText>
                   </band>
              </columnHeader>
              <detail>
                   <band height="19" isSplitAllowed="true" >
                        <line direction="TopDown">
                             <reportElement
                                  x="0"
                                  y="17"
                                  width="535"
                                  height="0"
                                  forecolor="#808080"
                                  key="line"
                                  positionType="FixRelativeToBottom"/>
                             <graphicElement stretchType="NoStretch" pen="Thin"/>
                        </line>
                        <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
                             <reportElement
                                  x="0"
                                  y="1"
                                  width="267"
                                  height="15"
                                  key="textField"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement>
                                  <font fontName="Times-Roman" size="12"/>
                             </textElement>
                        <textFieldExpression class="java.lang.String"><![CDATA[$F{VANOME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
                             <reportElement
                                  x="267"
                                  y="1"
                                  width="267"
                                  height="15"
                                  key="textField"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement>
                                  <font fontName="Times-Roman" size="12"/>
                             </textElement>
                        <textFieldExpression class="java.lang.String"><![CDATA[$F{VARAMAL}]]></textFieldExpression>
                        </textField>
                   </band>
              </detail>
              <columnFooter>
                   <band height="0" isSplitAllowed="true" >
                   </band>
              </columnFooter>
              <pageFooter>
                   <band height="27" isSplitAllowed="true" >
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
                             <reportElement
                                  x="325"
                                  y="4"
                                  width="170"
                                  height="19"
                                  key="textField"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement textAlignment="Right">
                                  <font fontName="Helvetica" size="10"/>
                             </textElement>
                        <textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" >
                             <reportElement
                                  x="499"
                                  y="4"
                                  width="36"
                                  height="19"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  key="textField"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
                                  <font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
                        </textField>
                        <line direction="TopDown">
                             <reportElement
                                  x="0"
                                  y="1"
                                  width="535"
                                  height="0"
                                  forecolor="#000000"
                                  key="line"/>
                             <graphicElement stretchType="NoStretch" pen="2Point"/>
                        </line>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
                             <reportElement
                                  x="1"
                                  y="6"
                                  width="209"
                                  height="19"
                                  key="textField"/>
                             <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                             <textElement>
                                  <font fontName="Times-Roman" size="10"/>
                             </textElement>
                        <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
                        </textField>
                   </band>
              </pageFooter>
              <summary>
                   <band height="0" isSplitAllowed="true" >
                   </band>
              </summary>
    </jasperReport>

  • The detailRegion is always forced to populate the first record from the Master region

    Hi fellow Spry enthusiasts,
    My question is in regards the undesirable data population of
    the regiondetail on initial load. I have 2 sections, one which is
    my master region (which goes out and retrieves a bunch of records),
    and a related detailregion which reacts based on the master.
    However, every time I initiate a query of the master region to
    retrieve records, the detail region also responds and automatically
    grabs the FIRST record of the master region (which is undesirable
    in my case because I do not want the detail region to react UNTIL I
    select a record in the master region). Let me know if this makes
    sense.
    Psuedo Code:
    var moveRequestor = new
    Spry.Data.XMLDataSet("cfc/QueryThatReturnsABunchOfEmployeeRecords")>
    <span spry:region="moveRequestor">
    {EM_ID}
    {NAME}
    <span spry:detailregion="moveRequestor">
    {EM_ID}
    {NAME}
    {PHONE}

    This question was posted a while ago, and was one of the
    search results that came up when I was looking for my own answer. I
    had a nearly identical question and answered it here:
    Disabling
    default linked region and detailregiondisply until click
    Hopefully it will help others too!

  • Does re-running a MDM Initial Load restart from the first record?

    Is there a way to restart an Initial load?  I was running a new initial materials load in my ECC system for MDM (MDM_CLNT_EXTR) which was running a very long time (5 days).  The background job hit a bad piece of data and crashed.
    My question is: when I re-run my initial load job, will it start over from the first record, or will it pick up from the last material/IDOC and resume processing?  I would prefer not to re-process all 1.7M materials since the job was very near the end before it crashed.
    Thanks,
    Denis

    Hello,
    There are two modes which are available in Client Extractor, Initial and Delta.
    If you select Initial it will start from the first record, that you mention in the selection Criteria.
    In Delta mode, any new records created will be sent to MDM.
    For your issue, in the initial mode, select the Material Number from and to, which have not been updated in MDM.
    This is will ensure, that only the records that have not been sent.
    Regards,
    Abhishek

  • Select the one record with the latest record

    I have the following table called tblSales:
    SKU   TransDate   Color
    ===   ======  ====
    123   1/1/2015    Red
    123   1/2/2015    Red
    123   1/5/2015    Red
    123   1/1/2015    White
    123   1/2/2015    White
    123   1/3/2015    White
    123   1/1/2015    Blue
    123   1/2/2015    Blue
    123   1/5/2015    Blue
    I need to create a query along the lines "SELECT the latest record FROM tblSales WHERE Color = 'White''
    In this example, the record dated 1/3/2015 would be the result.  I know that MAX(TransDate) is used here, but not sure how.
    Thanks.
    Ken

    Karl,
    I had already tried that.  It returns all 3 records having SKU = 123 and Color = White.
    Worst case scenario is I can always search for White 123s using a query with TransDate DESC and then get the first record.  I was just hoping for something a bit more elegant.
    Thanks for your help though.
    Ken

  • Return the First row

    Table: ABC
    Column: Changed_Date DataType:Date
    Need a query which will sort the records by changed date in descending order and retrieve the latest record.
    For instance.
    1 13/05/2010 14:56:00
    2 13/05/2010 14:56:00
    3 13/05/2010 14:55:56
    4 13/05/2010 14:55:54
    Query should return the first row; The changed Date column is of Date datatype and not Timestamp.

    Sudhakar_B wrote:
    Is this what you want?
    select * from
    (select * from some_table
    order by changed_date desc)
    where rownum < 2
    ;vr,
    Sudhakar B.this is certainly a good solution, but ... if we are talking about "latest record" what if there can be two records with exactly same time?
    select * from some_table where changed_date = (SELECT MAX(changed_date) from some_table)

  • How can I get Numbers to return the first row in a group of VLOOKUP query results instead of last one?

    I'm trying to query from one table (call it Table1) a batch of rows in another table (Table2) using VLOOKUP on a date specified in the first table (Table1). My problem is it's returning the last incident in Table2 of the requested date instead of the first incident. This really breaks the OFFSET scheme I'd like to use to collect the rest of the items for that date. Is there some way to compel VLOOKUP to return the first row of query results, not the last?
    NOTE: I see I've asked this before, but forgot to go back and look at responses given. It's been a while and I've limped along until now with the way things were. I'm actually trying to delete this questions, so if you see it, ignore it. I suppose if someone can tell me real quick how to delete a stupid question, that might be helpful.

    you cannot delete a post yourself.  You can flag the post an request a moderator remove.

Maybe you are looking for

  • How do I connect to server after an upgrade?

    I connected to my computer/windows & downloaded iOS 7.1.1 software for my 4S yesterday, but didn't upgrade. Now, when I go to upgrade phone, it reads 'not available' because phone cannot connect to server. I know it has to do with setting up email on

  • Hyperlink not responded in Reader 9.0

    Hi all, I have installed Adobe Reader 9.0 recently. But in hyperlink that points to another PDF document has not been responded. No error message has not been given even. It worked with Acrobat Reader 7.0 also. In Acrobat Reader 7.0 if you click the

  • B109n all in one

    Hi I can't install HP sw and drivers for B109n on my notebook with Win 7 32 bit. Who can help me? please! During installation i recieve an "errore irreversibile" message. The installer wizard sends to HP server the error information and downloads on

  • TO ALL THE PEOPLE WITH A MICROPHOTO 8GB...how to get it recogni

    basicly, download SP + SP2 from the microsoft website...install them once u have installed both SP packs, go to ''DEvice manager" den click 're-install drivers' select the option to search the net and after a while it will find the driver and be in w

  • Is the samsung infuse supported for mobile printing?

    I am having difficulty trying to set up my samsung infuse with the hp eprinter app