XI JDBC adapter isolation level serializable - Not working properly????

Hi all,
  I have a JDBC sender adapter which perform in Transaction isolation Method serializable(Advance Mode settings) but it seems that it updates the wrong records witch results in records no to be send in XI.
the select statement I am using is
select OwnerCode,DeliveryNo , ErpWarehouseCode, TrtCode, PostGIdate, PostGIdateChangedFlg, DocumentNo, DocumentDate, CancelFlg,  PostGIFlg, TacticalRouteCode, LicenceNo, PackagesQty, CusPickUpFlg, CusPickUpChangedFlg,  RouteChangedFlg, DlvPriority, PickingDate, PickingDateChangedFlg, DlvPriorityChangedFlg, OdtLineNumber, ItemCode,  WmsStatusCode, Lot, ExpirationDate,ProductionDate, TraUnitQty, TraUnitCode, Qty, MainUnitCode, ConvFactor, ConvDivisor, InitQty, DocQty, DeleteLineFlg, ParentLineNumber, ItemType, CusPickUpDescr, CusPickUpChangedFlg2  
from wmsConfDlv2ERP
where flg = 0 and
         DeliveryNo in ( select top 1 DeliveryNo from wmsConfDlv2ERP where flg = 0 )
and the update is
UPDATE wmsConfDlv2ERP set flg = -1
where flg = 0 and
          DeliveryNo in ( select top 1 DeliveryNo from  wmsConfDlv2ERP where flg = 0  )
Any ideas? The DB is an MS SQL 2005... Thanks.

Hi,
As far as I know, the JDBC adapter does not support nested queries (just my experience). I always used SPs to properly handle the situation and flow logic.
VJ

Similar Messages

  • Bootcamp 3.2: Microsoft Virtual WiFi MiniPort Adapter shows "device is not working properly...Code 31"

    Using Windows 7 Enterprise 64-bit, Microsoft Virtual WiFi Miniport Adapter shows the "device is not working properly because Windows cannot load the drivers required for this device. (Code 31).".The device is the Apple iMac10,1 All-in-one computer. Right clicking browse files (for the device) shows the Bootcamp (C:), DVD (D:); and my external hard drives can be selected.
    Internet and WiFi connections all working ok. Am also running MacDrive 8 to access the Mac drives when in the Windows partition, again without any seeming issues.
    Updating the driver simply generates another Code 31 error.
    Appreciate this seems to be a known problem - is the a solution a novice use might be able to follow or should I simply ignore the error message?
    Driver Date us 21/06/2006 and Driver Version is 6.1.7600.16385.

    Hi  ,
    Thank you for visiting the HP Support Forums and Welcome. It is a great site for information and questions. I have looked into your issue about your HP ENVY 4-1204tx Ultrabook and issues with WiFi adapter is not working properly. Error codes in Device Manager in Windows  8.1 could be fixed by deleting any extra drivers. So I would uninstall all that is listed in the Network drivers in the Device Manager, restart the Notebook. Here is a list of Device Manager options, this might help.
    Here is a link to the HP Support Assistant if you need it. Just download and run the application and it will help with the software and drivers on your system that need updating or reinstalling. Hope this helps. Thanks.

  • Sender JDBC adapter -- Update SQL statement NOT work for the last record

    I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter.  I've defined the communication channel for sender
    (1)  The "Query SQL statement"  = select  a_bgn_dt,  a_end_dt from  PX_PXXD WHERE NOT CU_ACTION_CD='P' 
    (2)   The "Update SQL statement"  = update PX_PXXD set CU_ACTION_CD='P'  WHERE NOT CU_ACTION_CD='P' 
    Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
    Any advise.
    Pansy

    Hi Pansy,
    You select and update query is looking like wrong
    kindly check below query,If you are using oracle
    (1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
    (2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE  CU_ACTION_CD !='P'
    Thank you
    Sateesh

  • Access Control Mechanism (data level security) not working properly

    Hi Experts,
    I have done datalevel security for groups by help of a database table. This table contains UserId, Dept. code, GroupName column. UserID are verified by LDAP server during logging into Dashboard. I have made two init blocks for GroupName and Dept.Code .
    Query is :
    SELECT 'Group', GroupName from TABLE
    Where
    UserId = ':USER'
    Similiar query is for Dept Code.
    There are two groups ; 1. CC_User 2. Full_User. I have applied filter in PERMISSIONS for CC_User on Fact table on Dept Code. So, user in this group may see data for Dept Code aligned to him in the table. All_User may see whole data for All Dept Codes as NO filter is applied on this group.
    Dept Code , UserId and GroupName are Varchar.
    Now problem is this when a user have membership of one group , it works fine. For CC_user it shows data for its Dept Code and All_user may see whole data.
    But When A user have permission of both the groups , only data related to CC_User group is visible. But, in my view , maximum permmision out of the both groups must be applied to the user if he belongs to more than one group.
    So , here , he must see whole data, as All_user group can see full data.
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.

    848839 wrote:
    Does least restrictive permmission happens in case of membership of more than one group in OBIEE.Indeed it does. The most restrictive filters get applied if a user belongs to multiple groups that have filters at various levels of data because its always an AND clause in the where condition. This is the sort of behavior in various tools I have seen apart from OBIEE.
    Hope this helps.
    Regards,
    -Amith.

  • Writing BLOB under Trasnaction Isolation level Serializable

    I am trying to update a BLOB datatype using JDBC.
    Steps:
    1. Select the Row FOR UPDATE
    2. Get hold of BLOB Object
    3. Get Binary Ouput Stream
    4. Write to Output Stream
    This is being done inside a bigger Trasnaction. This is working fine when Transaction Isolation level is READ COMMITTED.
    But when I am using Transaction Isolation level SERIALIZABLE, it behave in very inconsistent manner.
    Sometimes it gets updated. Other times, it gives an error stating 'Cannot serialize this Transaction'.
    Whats the reason and possible solution?

    Hi Kamal,
    The SERIALIZABLE degree of isolation has its own limitations and one of them is the ORA-08177 error. This message is displayed whenever an attempt is made to update a row that has changed since your transaction began.
    So probably you should be looking if there are transactions that are simultaneously trying to update the same row. I don't think you need simulataneous access for a row if you are doing SERIALIZABLE transaction.This link would be helpful to you.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:11007064320210057726::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:3233191441609
    perhaps if you post part of your code here which does the update then we might be able to help you more.
    Thanks,
    khalid

  • Problems in using isolation level serializable

    Dear everyone:
    This is the problem I met while using isolation level
    serializable in ORALCE 8.0.3 for Netware:
    Program 1 Program2
    Insert record 1 into table 1
    select record 1 from table1
    commit
    select record1 from table1
    insert record 2 into table1
    select record2 from table1
    commit
    select record2 from table1
    update record2 from table1
    commit
    delete record2 from table1
    commit
    update record1 from table1
    *ORA-8177 cannot serialize
    access for this transaction
    According to my understanding to the serialization isolation
    level, it should not occurs.
    Anyone can give me some ideas?
    Regards!
    null

    Dear everyone:
    This is the problem I met while using isolation level
    serializable in ORALCE 8.0.3 for Netware:
    Program 1 Program2
    Insert record 1 into table 1
    select record 1 from table1
    commit
    select record1 from table1
    insert record 2 into table1
    select record2 from table1
    commit
    select record2 from table1
    update record2 from table1
    commit
    delete record2 from table1
    commit
    update record1 from table1
    *ORA-8177 cannot serialize
    access for this transaction
    According to my understanding to the serialization isolation
    level, it should not occurs.
    Anyone can give me some ideas?
    Regards!
    null

  • RFC adapter in XI 3.0 not working properly with BAPI in R/3 4.6C

    Here is the scenario.
    An XML file is received from our customer. This file contains purchase order information that is used to create a sales order in our SAP 4.6C system. Once the sales order is created an acknowledgement is generated and this is returned back to our customer in an XML format.  This scenario is working perfectly fine in our XI 2.0 system but is not working properly in our XI 3.0 test environment. Our custom function module in R/3 is a wrapper function that uses a standard SAP BAPI to create the sales order. Part of the function module does use the statement
    call function 'BAPI_TRANSACTION_COMMIT'
    The last thing the BAPI does is call another function module that using an RFC destination that will return and order acknowledgement.
    Here is what happens within XI and our SAP system.
    The XML file is received and mapped to our imported RFC. The RFC adapter is called and the information is passed onto SAP where our customer function module executed. The sales order is created within SAP without any problems and the second function module is called which references an RFC destination assigned to our XI 3.0 system. The information is sent back to XI and an appropriate file is created for our customer.  All seems to be working properly except that when the original RFC is sent from XI to SAP,  SAP creates a short dump stating
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:" Then it is put back into the que where 5 minutes later it executes again and trys to recreate the sales order in SAP. (again, this same function module executing from XI 2.0 works fine)
    I believe I have everything configured properly because the SAP side is being executed and I am successfully passing information back from SAP to XI. However the original function module in SAP is failing with the above error message. It appears that the original function module cannot communicate back with XI. I have had SAP looking at this issue and they have not been successful yet in solving this problem.
    Any ideas.
    Thanks,
    Jim d'Hulst

    Hi,
    I think the problem is with the send back of acknowledgement to XI. Does the DeliveryException state something about the sender agreement? I guess you are using a statement like below:
    CALL FUNCTION 'ZABCD'
    destination <tcp/ip destination>
    exporting
    input = ack.
    In that case, check whether the TCP/IP destination is working fine. Also, to be able to exchange message, the structure of the Function Module ZABCD needs to be identified as the sender in XI Configuration (Integration Directory).
    Also, check your config with the blog mentioned below:
    <a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit">/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit</a>
    Regards,
    Amitabha

  • Item level security not working when placed in a portlet page

    I have three page links linking to separate pages and have two of them with item level security turned on for specific groups with view privilges. I have the access for those groups with view privilges in the page level as well. I have published that as portlet and placed the portlet in another page which has view priviliges for the groups specified in item level as well.
    But I notice that when i place the portlet in a page, the item level security is not working.
    Item Level Security Not Working for Items Placed on a page and published as portlet and placed in another page. Is there some work around for this.
    Thanks
    Valli

    Would you please clarify for me? Is the problem that unauthorized people can see the portlet, or that unauthorized people can see the links?

  • I just bought a power adapter and it is not working, says "not charging".   The same for the mobile charger.   Anything I need to do in the setting?

    I just bought a power adapter and it is not working, says "not charging".   The same for the mobile charger.   Anything I need to do in the setting?

    The device is locked to the carrier it was purchased through unless you specifically purchased it as unlocked directly from Apple.
    Only the carrier to whom it is locked can authorize it's unlocking.  To do so, the user much contact them to start the unlock process.

  • HT3231 transfer files to my new iMac system 10.8.3, 9 pin firewire. Apple sold me FireWire 9-6 with a Thunderbolt to FireWire Adapter.  This will not work, do i need a different cable?

    I have a G4 with system 10.4.11 and a 6 pin firewire trying to transfer files to my new iMac system 10.8.3, 9 pin firewire. Apple sold me FireWire 9-6 with a Thunderbolt to FireWire Adapter.  This will not work, do i need a different cable?

    Apple Thunderbolt to FireWire Adapter
    Then it sounds like the FW800 to 400 adapter just gets in the way. You don't have FW800 case? on my MDD G4 I added and used FW800 controller and cases from OWC and Sonnet.
    http://www.macsales.com/firewire

  • Pick activity is not working properly while creating two or more file adapt

    Hi,
    pick activity is not working properly while creating two or more file adapter for bpel process.
    bpel process compiled and deployed succesfully but while observing the wsdl file of deployed process you can find only one file adapter. so it polls only from that location.
    can anybody help on over this? or it's limitation of jdev to use only one file adapter at time while using Pick.
    Thanks
    sagar

    Does anybody tried this?
    Thanks
    sagar

  • My apple usb adapter for iPad dose not work any more

    I use USB adapter before , but can not work any more

    Can you try it with someone else's adaptor to make sure that is where  the fault lies?
    Make sure it is connected directly to the wall socket and not through a two way adaptor.
    Move both ends of the cable slight to make sure there is not a loose connection.

  • Serialization NOT working

    I am trying to serialize an object but it's NOT working.
    Test class:
    public class Test{
         public void f() throws IOException{
              ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream("Untitled.out"));
              ObjectInputStream input = new ObjectInputStream(new FileInputStream("Untitled.out"));
              Test2 t2 = new Test2();
              output.writeObject(t2);
              output.close();
              Test2 newt2 = (Test2)input.readObject(t2);  // <-------------  This line is NOT working
              input.close();
         public static void main(String[] args) throws IOException{
              Test ttt = new Test();
              ttt.f();
              System.out.println();
         }Test2 Class:
    import java.io.*;
    public class Test2 implements Serializable{
         int i = 1;
         String s = "Hello World";
    }Output:
    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method readObject() in the type ObjectInputStream is not applicable for the arguments (Test2)Does anyone know what is wrong with my code?

    EJP wrote:
    I love this as a case of 'Serialization NOT working'.Indeed. Any time I see a post that says "Java feature X not working," I want to tell the OP to reword it to what they really mean: "I have made bogus assumptions about feature X, used it without bothering to fully understand how it works, and on my first try it performed differently than I had guessed it would. Obviously the error is mine, but I don't want to admit that, nor do I feel like doing the work to understand how to use X correctly, so now I'm sticking my fingers in my ears and yelling 'LA LA LA JAVA IS BROKEN!'"
    But I guess that wouldn't fit in the subject line, so I just assume that's what they meant.

  • Satellite Pro U200: VGA output not working properly when AC adapter was connected

    Hi,
    I have a problem with vga output. When I'm working on battery and connect my notebook to external monitor it's ok, but when I connect AC adaptor then start waving also bluetooth and wlan does not work properly. In other case when I remove battery from notebook and connect AC adaptor it works properly.
    thanks in advance

    As long as you use a CRT you should set the refresh rate new, at least 85Hz. Standard is 60Hz as far as I know, and that hurts in your eyes.
    The wireless lan behaviour is quite normal as long as your not right next to the access point. On battery power the wireless lan card reduces its energy consumption thus the connection will be poor if you dont have a perfect signal. You can turn this off in the iNTEL Pro/SET wireless software, where you can configure the adaptor. Try to change the powersafe mode to manual and full power, this should solve your problem.

  • Macbook Air Late 2010 model, 10.6.7, 2.13 4g ram. Trackpad is not working properly and in sometimes not at all.

    Macbook Air Late 2010 model, 10.6.7, 2.13 4g ram. Trackpad is not working properly and in sometimes not at all. Need suggestions to resolve this issue?  I have applied all Mac updates and still having problems with the trackpad.

    The machine has a 1 year warranty, book an appointment with your local Apple Store or AASP to have it looked at.
    You can try doing a SMC reset however I don't think that is the solution.
    SMC RESET
    • Shut down the computer.
    • Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    • On the built-in keyboard, press the (left side) Shift-Control-• Option keys and the power button at the same time.
    • Release all the keys and the power button at the same time.
    • Press the power button to turn on the computer.
    PRAM RESET
    • Shut down the computer.
    • Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    • Turn on the computer.
    • Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    • Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    • Release the keys.

Maybe you are looking for