JCA adapter doesnt update MarkReadColumn with correct value

Hi,
I've created a JCA adapter in the SOA suite which polls a certain database. The poll works perfect only during configuration I set it to do a logical delete. My JCA looks like:
<adapter-config name="SchoolFitListener" adapter="Database Adapter" wsdlLocation="../WSDL/SchoolFitListener.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
  <connection-factory location="eis/DB/SchoolFit" UIConnectionName="SchoolFit" adapterRef=""/>
  <endpoint-activation portType="SchoolFitListener_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
      <property name="DescriptorName" value="SchoolFitListener.PollSchoolfitPolltable"/>
      <property name="QueryName" value="SchoolFitListenerSelect"/>
      <property name="MappingsMetaDataURL" value="SchoolFitListener-or-mappings.xml"/>
      <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
      <property name="MarkReadColumn" value="MESSAGE_READ"/>
      <property name="MarkReadValue" value="READ"/>
      <property name="MarkUnreadValue" value="UNREAD"/>
      <property name="PollingInterval" value="60"/>
      <property name="MaxRaiseSize" value="1"/>
      <property name="MaxTransactionSize" value="10"/>
      <property name="NumberOfThreads" value="1"/>
      <property name="ReturnSingleResultSet" value="false"/>
    </activation-spec>
  </endpoint-activation>
</adapter-config>When I look in the log, it does the update only with the wrong value:
UPDATE POLL_SCHOOLFIT_POLLTABLE SET MESSAGE_READ = ? WHERE (((((((((((((MESSAGE_TYPE = ?) AND (MESSAGE_READ = ?)) AND (EMPLID = ?)) AND (SF_ID = ?)) AND (VOORNAAM = ?)) AND (ACHTERNAAM = ?)) AND (VOLLEDIGE_NAAM = ?)) AND (STRAAT = ?)) AND (HUISNR = ?)) AND (POSTCODE = ?)) AND (WOONPLAATS = ?)) AND (GEBOORTEDATUM = ?)) AND (BSN = ?))
[2011-06-15T15:34:17.067+02:00] [osb_server1] [TRACE] [] [] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000J2JW9fx7y0G_yx0FyW1Dvr150008l6,0] [SRC_CLASS: org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism] [APP: JCA Transport Provider] [dcid: ae78371b7bf314eb:253fe233:1306f4ea111:-8000-00000000000149e2] [SRC_METHOD: executeBatchedStatements]      bind => [UNREAD, C, UNREAD, SF9905731, 131983, John, Doe, John Doe, DowningStreet, 79, 57112, NY, 15-3-1994, 1234567890]Can anyone tell me why it does an update with the wrong value?
Much thanks!

Found it. Marked too many fields as PK's during wizard so it couldn't find the right row for the update.

Similar Messages

  • J_1IRG23D Table was not updated With Correct Values While Doing MIGO

    Hi Friends,
    I am new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values (i.e 10% ),but in the table it was not updated correctly (J_1IRG23D) only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL the EXBED it was with correct value 10% of the Base value
    But In table -J_1IRG23D the EXBED,ADE,CESS It was updated with 0.06% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi,
    Go to T Code - J2I5 (not 215 it is j 2 i 5) enter details and select register PLA Check box and execute. This can be extracted many times - no problem.
    After J2i5 balance will update in registers including tables.
    Ramesh

  • Updating PK with same value - effect on CASCADE UPDATE

    Hello,
    I would like to understand how sql server 2008 deals with cascade updates
    For example I have
    Parent table: Employee with column Id as varchar(20) primary key
    Child table with IdEmployee as varchar(20) foreign key
    I set up Cascade Update for those two tables, meaning any change to primary key in Employee table will cause update in child table rows that match affecting Id
    Scenario 1:
    Update Employee
    set Id = 'ABC',
    Name = 'something new'
    where Id = 'CCC'
    Result of child table: all rows with foreign key IdEmployee and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    Update Employee
    set Id = 'ABC',
    Name = 'something new 2'
    where Id = 'ABC'
    This time, i am doing something different. I am beside update of column Name with new value, also update primary key but
    with SAME value
    Question is: what is going to happen to child rows? Are they ALL going to UPDATE due to CASCADE UPDATE
    So far, what i did in order to find solution is:
    1. I put an timestamp column in child table that should update each time row gets updated
    2. I put a trigger for update event on child table that will write something to some log table
    *After I set up those two I ran example like above just to be sure timestamp gets changed as well trigger is being fired
    Results of updating PK with same value:
    1. Timestamp didnt change
    2. Trigger didnt fire
    Is this enough to make conclusion that updating primary key with same value ALONG with updating some other columns won't
    affect child tables with UPDATE CASCADE ON
    Update:
    Database is CI AS collation
    If i do following
    Update Employee
    set Id = 'abc',
    Name = 'something new'
    where Id = 'ABC'
    1. Timestamp will change
    2. Trigger will fire
    Conclusion: Case sensitive is important here!
    Thank you very much in advance
    Milos

    >>  would like to understand how sql server 2008 deals with cascade updates <<
    Your posting has a number of conceptual errors. 
    1. The terms “parent” and “child” are not RDBMS; they are used in network databases. We have “referenced” and “referencing” tables; they can be the same table.
    2. A table models a SET of things, so there is no “Employee” table unless you truly have a one-man company. We want a collective or plural name for the SET/table. A better name is “Personnel” for this table. 
    3. Her is no such thing as a generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Identifiers are usually fixed length 
    4. It is very, very rude not to post DDL on a forum. You also do not know the ISO-11179 Rules for data element names. They do not change names from table to table! Does your name change whenever you use it in a new place?? NO! Same principle with data. 
    5. The ISO standard uses “<property>_<attribute property>” syntax, no the old PascalCase.
    6. Why did you post a useless narrative? How do we compile “I SET up Cascade UPDATE for those two tables,..” to test it?? 
    CREATE TABLE Personnel
    (emp_id CHAR(20) NOT NULL PRIMARY KEY,
     emp_name VARCHAR(25) NOT NULL,
    CREATE TABLE Health_Plan
    (health_plan_acct CHAR(20) NOT NULL PRIMARY KEY,
     emp_id CHAR(20) NOT NULL 
     REFERENCES Personnel(emp_id)
     ON UPDATE CASCADE
     ON DELETE CASCADE,
    Scenario 1:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new'
     WHERE emp_id = 'CCC';
    Result of child table: all rows with foreign key emp_id and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new 2'
     WHERE emp_id = 'ABC';
    This time, I am doing something different. I am beside UPDATE of column emp_name with new value, also UPDATE PRIMARY KEY but
    with SAME value.
    >> Question is: what is going to happen to child [sic: referencing]  rows? Are they ALL going to UPDATE due to CASCADE UPDATE. <<
    SQL uses a set-oriented model, so the whole table is updated as a unit of work in theory. 
    So far, what I did in order to find solution is:
    >> I put an timestamp column in child [sic: referencing] table that should UPDATE each time row gets updated <<
    Why? It is not in the SET clause list; it cannot change. As an aside,  The T-SQL TIMESTAMP is not the ANSI/ISO TIMESTAMP; it is DATETIME2(n) in T-SQL. The old TIMESTAMP is being deprecated because it stinks both in concept and implementation. 
    >> I put a trigger for UPDATE event on child [sic: referencing] table that will write something to some log table.<<
    TRIGGERs are fired by what is called a “database event” shown in the ON [DELETE | UPDATE] clause. T-SQL adds INSERT as an event. An update to any value or to no value at all is still an update. Depending on the collation, case may or may not matter in the final
    outcome. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Update column with ROW_NUMBER() value

    I have a column that I would like to update with a ROW_NUMBER() value partitioned by a specific column.
    CREATE TABLE ##tmp (id INT NULL,
    value1 VARCHAR(10),
    value2 VARCHAR(10))
    INSERT INTO ##tmp (value1,
    value2)
    VALUES ('A', 'asdfasdf'),
    ('A', 'asdf'),
    ('A', 'VC'),
    ('B', 'aasdf'),
    ('C', 'sdfgs'),
    ('C', 'xdfbhsdty'),
    ('C', '23sdgfg'),
    ('C', '234')
    -- update the ID column with the values below
    SELECT ROW_NUMBER() OVER (PARTITION BY Value1 ORDER BY Value2),
    Value1,
    Value2
    FROM ##tmp
    I have 14 million records.  Can someone explain the best way to do this?  Does the ORDER BY destroy performance for this many records?
    Thanks!

    CREATE TABLE ##tmp (id INT NULL,
    value1 VARCHAR(10),
    value2 VARCHAR(10))
    INSERT INTO ##tmp (value1,
    value2)
    VALUES ('A', 'asdfasdf'),
    ('A', 'asdf'),
    ('A', 'VC'),
    ('B', 'aasdf'),
    ('C', 'sdfgs'),
    ('C', 'xdfbhsdty'),
    ('C', '23sdgfg'),
    ('C', '234')
    -- update the ID column with the values below
    ; with cte as (
    SELECT ROW_NUMBER() OVER (PARTITION BY Value1 ORDER BY Value2) as RowNumber,
    Value1,
    Value2
    FROM ##tmp
    update cte
    set Id = RowNumber;
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Problem populating date dimension with correct values

    Hi all,
    I have a 'simple' problem, but can't get it solved! The YTD calculations in the cube don't 'reset' at the right moment in time (they should 'reset' on the FISCAL year, but it actually seems to happen on the normal calendar year).
    Our dimensions and cubes are MOLAP. There is a relational table, containing columns with values for both a CALendar hierarchy as well as for a FISCAL year hierarchy. This table populates the date dimension (only the fiscal hierarchy as in MOLAP we only have a fiscal hierarchy). The result looks correct in the data viewer.
    The cube is populated from relational sources as well. One view provides the measure values and the CODE (business identifiers) values for each dimension involved. In case of the date dimension, it provides the code value for the involved level at which we load the cube (month).
    I made a very simple testcase with only 1 dimension (date) and 1 small cube. The cube uses only the date dimesion (to load cube on the fiscal hierarchy at month level) and has 1 base measure that is loaded with a simple number and 1 calculated measure that calculates the YTD value for this base measure. The calculated measure is added in the OWB cube designer using button "Generate Calculated Measures" and choosing the "Year to Date" function.
    When populating the cube and using the data viewer to check the results, the YTD measure values don't 'reset' at the fiscal year end. They seem to reset at the normal CALendar year end!?
    After some testing, I have concluded it has to do with the values I supply to populate the date dimension, but I can't figure out what the modification should be and I can't find any examples anywhere.
    Does anyone out there have a working YTD calculation in MOLAP?
    Any help much appreciated.
    Regards,
    Ed

    Sorry David, I am not sure I've got this right yet. I am looking at using the cumsum function, but I am not sure how to apply this. That is, I can see examples (cumsum(measure, total_dim, reset_dim)), but I think I cannot put such formula directly into the expression editor for a cube measure in OWB?
    Until now I have been using the standard available calculated measures in the OWB measure editor and I think they insert an xml template? I'll get the Excel Calculation Tool from OTN, to see if I can create the correct formula and paste that in OWB in the expression editor for the measure. (Does that tool need a ROLAP workspace or does it need / can it work with a MOLAP workspace?)
    Thanks and regards,
    Ed
    Edited by: EdSp on Jan 13, 2009 1:57 PM
    I have downloaded the Excel sheet and can see how it works, but it seems to "insert" the calculated measures straight into the AW. However we deploy the AW from OWB so I will be looking at getting something to enter/paste in the expression editor of OWB...

  • Update layout with var value

    Hello all.
    I have a dropdown list with values and a button on page1, and I have an layout on page2.
    The problem is that I want that the layout on page2 could be updated depending on the value of page1.
    Could anyone help me!!
    Vitor Ramalho

    you can pass the value of Page 1 to Page 2 via Navigation->SET_PARAMETER(name = 'your_variable' value = 'Value') &
    then based on the value u received from Page 1, update the Page 2. can you be more specific to help you more.
    TO show values in Layout use below syntax:
    <%= your_variable %>
    Note: DOnt forget to set the "Auto" checkbox in Page2 parameter.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Apps will not update even with correct password

    My Apps icon on my iPhone 4 currently says I have 37 updates available.  I am unable to update them individually OR all at once.  After pressing the UPDATE button it asks for my account password like normal.  I type it in correctly and it shifts back to the app icons, showing all of the apps with the update progess bar at the bottom of them.  Then a popup appears saying:
    Sign in the the iTunes Store.
    If you have an Apple ID sign in with it here, AOL members can sign in using their AOL username and password.
    Cancel   Buy
    If I cancel nothing happens.  If I hit BUY and type in my password again it just gives me the same error popup again.
    However, if I try to download a new app from the app store using the same password it lets me.  The new app downloads and installs just fine.
    What is with this error message and what do I need to do to fix this?  FYI I have no AOL account and have never had one in the past.
    Thank you,
    MaestroC

    Finally got this solved by taking it to the genius bar at the Apple store.  They too had never seen anything like it before, but managed to solve the problem by having me turn on iCloud backup there at the store.  The phone backed up my settings and information to iCloud and then the guy took it to the back room and did a restore on it using that same iCloud backup data.  Thus it saved my settings and app info but is downloading new, updated versions of all of the apps as it restores itself from iCloud.  It seeme to have fixed the AOL login popup problem.
    He seemed to think that somehow my backups here on my home PC are getting corrupted somehow but none of the techs had any idea what was going on.

  • Can't update apps with correct Apple ID!

    For months now, I have been unable to update my apps either on my computer or on my iPhone. Attempting to update apps, whether all at once or individually, on my iPhone results in the error "Cannot access iTunes store." However, I am able to download new apps just fine through the store. In the Apps section of iTunes on my computer, it says "43 updates available" in the bottom right. When I click that, it says "No updates are currently available. To check for updates with another Apple ID, sign in with that Apple ID." I know the apps need to be updated because 1) it tells me so on my phone and 2) the version numbers have been superceded. I don't have another Apple ID. Besides that, I checked "Get Info" on every single app and every one of them was downloaded with the Apple ID that I am signed into iTunes with on both my computer and my phone. I have signed in and out of my account multiple times on both my computer and my iPhone. I have rebooted both. Today I did a reset and restore on my iPhone using my latest backup, from earlier in the day. I put my apps back onto my iPhone. Nothing has changed.
    I don't know what else to do! Can anyone help?
    Here is all the info on my gadgets and systems:
    MacBook Pro running MacOS X 10.6.8
    iTunes 10.6.3
    iPhone 4 software 5.1.1
    Verizon Wireless

    Update:
    I just re-downloaded all of my free apps through the iTunes Store on my computer. It behaved as if I had never downloaded the app before. The apps all synced up just fine with my iPhone and have disappeared from my Updates list in the AppStore on my phone. The count of my apps needing updates has gone down in iTunes as well. But I still can't update the apps I haven't downloaded again. I don't want to repurchase my paid apps, many of which I use every day!

  • Updating apps with correct apple ID account

    I keep getting this error when trying to update my apps.
    "To update this application, sign in to the account you used to purchase it."
    I only have one apple ID that I am signed in on.  At one time I was associated with another computer (MAC book Pro) but I disassociated myself from that device all together.  The updates do apply to my current device when comparing the current version for each app.
    I was able to update itunes at one point, but I cannot update imovie, iphoto or keynote.
    Help please!

    Has nothing to do with the machine.  You need to use the same AppleID in the app store as you used originally to purchase those apps.  Purchases are tied to an AppleID, not a device.

  • How to update iterator with popup values

    Hello all,
    I've got a question regarding updating my iterator tableview (non-mvc bsp application).  I've used some javascripting to open a popup window and retrieve the selected value back into a hidden input field on my cart page.  Now, what I need to do is get the value into the appropriate field in the iterator tableview.  Any ideas?  (Right now, there is no event fired in the cart page after the popup is closed).
    Thanks in advance,
    Lisa

    Hi Lisa,
    You need to fire an event when the popup closes by placing the following in the the cart page:
    <bsp:htmlbEvent id   = "closing_event"
                    name = "closing_event"
                    p1   = "closing_event" />
    This event is fired when you close your popup by using the following JavaScript:
    window.opener.closing_event('POPUP');window.close( );
    Regards,
    Patrick.

  • Sales forecasting-updating opportunities with booked values

    Hi,
    we have a need where a user creates an opportunity for a large deal (say worth 6M USD) which will be realized over say 6 months. each month from the day the oppty is created say 1 MUSD worth orders will be created.
    how do we incorporate this scenario in the monthly sales forecast. challenge here is that one opportunity will result into multiple orders each month. how will the sales forecast know that against the large deal of 6 MUSD, some amount is already realized/booked and it should subtract that amount from forecast report. need is to avoid double forecasting in such scenarios.
    is there a standard report which takes care of such scenarios?
    i am sure this is not a unique situation in almost all B2b sales this should be a need.
    any pointers will be appreciated
    thank you.

    I referenced the post below.
    http://social.msdn.microsoft.com/Forums/en-US/6f68404d-82f3-4df0-b5b9-00e353cbcf68/conditional-split-expression-evaluates-to-null?forum=sqlintegrationservices
    it is not working for me.  I don't understand the approach of using derived column to get rid of NULLs neither.  Can you help?
    Thank You Warmest Fanny Pied

  • My auto-complete has recently stopped working and I am getting a message saying: "You sent invalid values. Please send a request with correct values." - Why??

    The error message is appearing where the auto-complete options should be appearing

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • J_1IRG23D is not updating with Correct Excise DED Value,

    Hi Friends,
    I am  new to the Excise duty , facing a proble in CIN -While doing MIGO, the Excise Calculation are coming correct values          i(.e 10% ),but in the tables it was not updated correctly (J_1IRG23D)   only one entry is showing wrong ,the other entries in the table are correct.
    In table -J_1IEXCDTL  the EXBED it was with correct value 10% of Base value
    But In table -J_1IRG23D  the  EXBED It was updated  with 0.006% on the base value .its gives wrong value
    Kindly help in this issue.
    Regards
    Siva

    Hi Siva,
    J1IG is to create depot excise invoice.
    you can update J-1IRG23D table in two ways-
    MIGO > Create Rg23D
    OR MIGO > No excise entry and then create RG23D entry via J1IG.
    For more information on the same please gothrough  -
    http://help.sap.com/erp2005_ehp_06/helpdata/en/09/ebf138cdd78a4be10000000a114084/frameset.htm
    Regards,
    Brinda

  • How to update a column with different values but all other row values r sam

    Hi,
    I have a table like this.
    Col1 col2 col3 col4
    10 20 30
    10 20 30
    10 20 30
    i need to update col4 with different values coming from other table like this
    Col1 col2 col3 col4
    10 20 30 xxxx
    10 20 30 yyyy
    10 20 30 zzzz
    how can i update the table. pls let me know how to use the where condition in the update stmt.
    thanks,
    jay
    Edited by: user2558790 on Nov 20, 2009 12:26 PM

    what is the logic for this kind of update...????
    Greetings,
    Sim

  • JCA Adapter for JDE XE

    We have JDE XE a version prior to 8. Question is can we use JCA Adapter for JDE 8?
    Thanks,
    Channu

    Yes. There is a JCA Adapter that is compatible with JDE-XE SP19 to SP24.

Maybe you are looking for