DB Adapter not returing any row

Hi All,
I am select a row from a database table based on a id passed as input.
If no rows are returned by the select statement the database adpater doesnot throw an error.
Can we configure it to throw an error.
Regards
Ashwini

Hi Marc,
I created a Switch case after the invoke in the case statement i used the below xpath expression
ora:countNodes(bpws:getVariableData('Invoke_1_selectSelect_ENO_OutputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp')) != 0
But i am getting a FOTY001 error.
Please help
Regards
Ashwini

Similar Messages

  • Trying to access row values in a table which does not have any rows yet

    try{
                             MappedRecord importParams = recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
                             IFunction function1 = client.getFunctionsMetaData().getFunction(funModGetDet);
                             IStructureFactory strucFact = interaction.retrieveStructureFactory();
                             response.write("try2 :"+pnumber);
                            IRecord structure = (IRecord) strucFact.getStructure(function1.getParameter("PERNR_TAB").getStructure());
                             response.write("try111 :"+pnumber);
                             structure.setString("PERNR",pnumber);
    I am getting the following error "Trying to access row values in a table which does not have any rows yet " where PERNR_TAB is a table containing field "PERNR".
    Can anybody help me out?

    Please re-post this question in the appropriate forum. It seems to have nothing to do with Web Dynpro.

  • Mapping is done ....but it is not inserting any rows

    hi,
    Mapping is validated successfully.
    We will deploy the code in the backend by generating the code.
    When the package is created and executed It.It shows me procedure completed succesfully...But it will not insert any rows.
    I am unable to find the reason for it.Please help me in solving this.
    Thanks,
    kiran

    what is your owb version
    how many rows are there in source
    what is your filter criteria and are any rows returned through simple sql but using that filter criteria.
    what is the loading type of your target table
    the ebst way is to debug the map and find out, i wouldnt recomment using backend code to debug as the ebst option since debug facility is availabe in owb, if that doesnt work then probably you can try using the package code.
    Edited by: Darthvader-647181 on Nov 18, 2008 1:54 AM

  • How to Create a record if vo.executequery does not return any rows

    I would like to update a single record on adf form. However if the record does not exist would like to create a row and save it in the table.
    The user does not want to add a "create" button on the screen. Hence would need to add the create code if vo.execute does not return any rows...
    How to add this and where to add?

    you can have a TF router for for exists and does not exist and based on that execute transient VO and other VO.
    Add a method call activity like below to create a row in transient VO
    public Row createRow()
    ViewObjectImpl tVO = (ViewObjectImpl)getTVO();
    tVO.executeEmptyRowSet();
    Row newRow = tVO.createRow();
    tVO.setCurrentRow(newRow);
    tVO.insertRow(newRow);
    return newRow;
    }

  • Function not returning any rows

    If I run this code with a standard SQL statement it will return (1) row - which is correct. But when I try to use a function it is not returning any records. Could someone point what I'm doing wrong?
    Also, if a use BindByName if get Oracle error: ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol ">". If I comment out BindByName I will not get this error . Thanks!
    C# code:
    string domainuser = 'brockj';
    string ConnectString = ConfigurationSettings.AppSettings["ConnectString"];
    OracleConnection dbconn = new OracleConnection(ConnectString);
    OracleCommand cmd = new OracleCommand("access_admin",dbconn);
    cmd.CommandType = CommandType.StoredProcedure;
    //cmd.BindByName = true;
    OracleParameter p_username = new OracleParameter();
    OracleParameter p_retval = new OracleParameter();
    p_username.OracleDbType = OracleDbType.Varchar2;
    p_retval.OracleDbType = OracleDbType.Int16;
    p_username.Direction = ParameterDirection.Input;
    p_retval.Direction = ParameterDirection.ReturnValue;
    p_username.Value = domainuser;
    cmd.Parameters.Add(p_username);
    cmd.Parameters.Add(p_retval);
    dbconn.Open();
    cmd.ExecuteScalar();
    lblResponse.Text = p_retval.Value.ToString(); -- prints '0', should print '3'
    ********FUNCTION************
    Function access_admin
    p_username IN varchar2
    RETURN number
    IS
    l_accesscode users.access_admin%TYPE; -- number(1)
    cursor c1 IS
         SELECT access_admin
         FROM users
         WHERE username = p_username
         AND active=1
         AND rownum=1;
    BEGIN
    open c1;
    fetch c1 into l_accesscode;
    if c1%NOTFOUND then
         l_accesscode := 0;
    end if;
    close c1;
    RETURN l_accesscode;
    END access_admin;

    Turn the function call into a standard SQL statement:
    SELECT access_admin FROM dual;
    Here's how you use BindByName:
    adapter = new OracleDataAdapter();
    adapter.SelectCommand = new OracleCommand("SELECT * FROM emp WHERE sal >= :SAL OR empno = :EMPNO", conn);
    adapter.SelectCommand.BindByName = true;
    adapter.SelectCommand.Parameters.Add(new OracleParameter("EMPNO", OracleDbType.Int32, 0));
    adapter.SelectCommand.Parameters["EMPNO"].Value = 7788;
    adapter.SelectCommand.Parameters.Add(new OracleParameter("SAL", OracleDbType.Int32, 0));
    adapter.SelectCommand.Parameters["SAL"].Value = 2000;
    -- Tom

  • Sender File Adapter Not Picking Any File

    Dear Expert,
    I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
    1. Source Directory ..\file\log\test_q.txt
    2. Target Directory  ..\file\log\xml\test_q.xml
    Transport Protocol : NFS
    Message Protocol : File Content Conversion
    Adapter Engine    : Integration Engine
    I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
    Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
    Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
    Thank you very much in advance.
    Best Regards,
    Y

    Hi Yonisiwa,
       Things you should check here are:
    1) If the sender file adapter is active or not.
    2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
    3) The file name/mask is correct or not.
    4) The polling interval is too long.
    Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
    There you can see the reason for the file not being picked up.
    Also check the Communication Channel status in the Component Monitoring link in RWB.
    Regards,
    Ravi Kanth Talagana

  • Oracle Apps adapter not displaying any Business Events

    Hello
    We have configured a Business Event in Oracle ebs R12 instance. Now we are trying to configure Oracle Apps Adapter in Oracle Jdeveloper. The version is 11.1.1.3.
    The apps adapter wizard; after connecting to the ebs instance; does not display any tables/Business events.
    The connection to the ebs instance is done by a normal user i.e. 'apps' user credentials are not used. We are not provided with 'apps' user credentials due to security reasons. We need help in figuring out the privileges that shld be granted to the 'normal' user so that we can browse and select the Business event in Jdeveloper and also the apps adapter can create the subscriptions and queues successfully in ebs.
    Any pointers will be greatly appreciated...
    Thanks
    Edited by: Ruplim on Jun 7, 2012 10:15 AM

    Hi Ruplim,
    I am new to this topic and dont really know how to go about this. So can i assume from your post that the oracle apps adapter can subscribe to an event in EBS. If yes, can you tell me how i can do this?
    Thanks

  • Query not returning any rows?

    hi experts,
    My query running long but not returning any result. i have data , no locks on the tables.
    i have bigger ( hardware ) database on different server , where I can get results with same query.
    Can you tell me what are the DB settings i have to look at to resolve this issue?
    ( any sql query that can monitor these parameters ?)
    (the tabels involved in this query has 33milliions, 2millions, 7 milllions )
    Thanks ..
    Edited by: 642877 on Sep 21, 2011 6:46 PM

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    ==========================================================
    Plan hash value: 3185710999
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
    | 0 | SELECT STATEMENT | | 3 | 423 | 24592 (2)| 00:05:45 | | |
    | 1 | HASH GROUP BY | | 3 | 423 | 24592 (2)| 00:05:45 | | |
    | 2 | NESTED LOOPS | | | | | | | |
    | 3 | NESTED LOOPS | | 3 | 423 | 24591 (2)| 00:05:45 | | |
    | 4 | NESTED LOOPS | | 3 | 345 | 24585 (2)| 00:05:45 | | |
    | 5 | NESTED LOOPS | | 1 | 84 | 21916 (2)| 00:05:07 | | |
    | 6 | NESTED LOOPS | | 1 | 67 | 21915 (2)| 00:05:07 | | |
    | 7 | PARTITION LIST ALL | | 2 | 60 | 21913 (2)| 00:05:07 | 1 | 11 |
    |* 8 | TABLE ACCESS FULL | ART_CRDT_ACCT_FACT | 2 | 60 | 21913 (2)| 00:05:07 | 1 | 11 |
    |* 9 | TABLE ACCESS BY INDEX ROWID| ART_PRTFOL_GRP_DIM | 1 | 37 | 1 (0)| 00:00:01 | | |
    |* 10 | INDEX UNIQUE SCAN | ART_PRTFOL_GRP_DIM_INDEX1 | 1 | | 0 (0)| 00:00:01 | | |
    | 11 | TABLE ACCESS BY INDEX ROWID | W_MONTH_D | 1 | 17 | 1 (0)| 00:00:01 | | |
    |* 12 | INDEX UNIQUE SCAN | UQ_W_MONTH_D | 1 | | 0 (0)| 00:00:01 | | |
    | 13 | PARTITION LIST ITERATOR | | 3 | 93 | 2669 (2)| 00:00:38 | KEY | KEY |
    |* 14 | TABLE ACCESS FULL | ACCT_CLTRL_RLTNP | 3 | 93 | 2669 (2)| 00:00:38 | KEY | KEY |
    |* 15 | INDEX UNIQUE SCAN | UQ_ART_CLTRL_DIM | 1 | | 1 (0)| 00:00:01 | | |
    | 16 | TABLE ACCESS BY INDEX ROWID | CLTRL_DIM | 1 | 26 | 2 (0)| 00:00:01 | | |
    -------------------------------------------------------------------------------------------------------------------------------

  • Cursor with in clause in not fetching any rows (happens rarely)

    Hi Experts,
    Applications: Oracle Apps 11.5.10.2
    Data base version: 11.2.0.1.0
    we are running concurrent programs (scheduled every day),
    we obsereved one of cursor is not fetching any records (happens rarely);
    please refer the cursor below.
    CURSOR LCU_GET_ADJ_JN_CAT_DET IS WITH LCU_GET_ROWS_DETAILS AS(
          SELECT <columns1, columns1_1, columns1_2>
            FROM (SELECT <columns2> from table1 <conditions>            
                   GROUP BY <columns>
                  UNION ALL
                  SELECT <columns3> from table2 <conditions>
                  GROUP BY <columns>)
           WHERE (columns1_1 <> 0 OR columns1_2 <> 0)
           GROUP BY <columns>)
          SELECT *
            FROM (SELECT ROW_DET.* FROM LCU_GET_ROWS_DETAILS ROW_DET),
                 (SELECT COUNT(1) TOTAL_RECORDS,
                         SUM(columns1_1) TOTAL_CLOSING_DEBIT,
                         SUM(columns1_2) TOTAL_CLOSING_CREDIT
                    FROM LCU_GET_ROWS_DETAILS ROW_SUM)
           ORDER BY <columns>;

    Please enable trace/debug and check the log files then.
    How To Get Level 12 Trace And FND Debug File For Concurrent Programs (Doc ID 726039.1)
    How to enable and retrieve FND debug log messages (Doc ID 433199.1)
    Thanks,
    Hussein

  • ACS Report - User_Usage_Logon - not returing any data and the report never finishes

    Hi,
    i'm trying to run the User Usage report, but not getting any data output.
    i tried to open the report in the report builder to check the query,, but the query is in XML format and i'm not able to figure out the actual query that pulls out the data.
    i need help on the below :
    1. way to check , if the ACS database , does actually have any data.
    2. to pull out the actual query from the  XML data.
    thanks,
    Sameer

    Hi,
    As we only have one report experienced this timeout issue. Given this situation, we can try the following steps to narrow down the issue:
    1.Run the report directly through SSRS report manager URL to test if we still get this issue.
    2.If yes, increase the timeout limitation for this single report.
    3.As for further investigation, we can enable SSRS verbose logging by referring to the following steps:
    Enabling verbose log in Reporting Services Instance :
    To enable the verbose logging for the Reporting Services instance you have to follow below steps.
    Go to location
    C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
    Find the ReportingServicesService.exe.config
    file, make a copy first, and then open it in editor and change the below configuration.
    <system.diagnostics>
        <switches>
          <add name="DefaultTraceSwitch" value="4" />
        </switches>
      </system.diagnostics>
      <RStrace>
        <add name="FileName" value="ReportServerService_" />
        <add name="FileSizeLimitMb" value="32" />
        <add name="KeepFilesForDays" value="14" />
        <add name="Prefix" value="appdomain, tid, time" />
        <add name="TraceListeners" value="file" />
        <add name="TraceFileMode" value="unique" />
        <add name="HttpTraceFileName" value="ReportServerService_HTTP_" />
        <add name="HttpTraceSwitches" value="date,time, clientip,username,serverip,serverport,host,method,uristem,uriquery,protocolstatus,bytesreceived,timetaken,protocolversion,useragent,cookiereceived,cookiesent,referrer"
    />
        <add name="Components" value="all:4,reportrendering:4,http:4" />
      </RStrace>
    You have to restart the Reporting Services from Reporting Services configuration manager.
    4.After enable the verbose logging, reproduce this issue again by running the report, record the timestamp when we start the report, when the error popped up.
    5.Then check SSRS log files at the following path, in the file which contain the issue time, check if there is any error message.
    C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\LogFiles
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].

  • Wireless adapter not showing any available networks

    I've recently discovered that my Intel Centrino Advanced-N 6235 wireless adapter in my Asus Zenbook UX32VD running Windows 7 64 bit is not working as it won't show any available networks while my phone can find plenty in the same area. 
    So far I've:
    -Re-installed the driver. Before I did this the adapter wouldn't even show when trying to change adapter settings. When I looked at the adapter in device manager I found an error code 52 which disappeared after I re-installed the driver.
    -Re-installed the client for windows networks installed for the adapter which did not make a difference.
    -Temporarily turned off my AVG-free anti-virus which did not make a difference. 
    When looking at the adapter after clicking change adapter settings in the networks and sharing center it says it's not connected, but as stated above it doesn't show any networks to connect to.
    Also, when I try to use the networks diagnostics tool I get the following error message:
    Windows cannot find
    '::{26EE0668-A00A-44D7-9371-BEB06...\resultPage?keywords=+Network;NetworkDiagnostics'.
    Make sure you typed the name correctly, and the try again.
    Any possibly solutions I've not already tried are welcome. Thanks in advance for any help.

    Hi,
    Locate to Services and check all services relating to wireless and network are enabled: Wireless Zero Configuration and WLAN AutoConfig, etc.
    Also, make sure your NIC is working correctly from device manager.
    http://kb.linksys.com/Linksys/GetArticle.aspx?docid=108496d0924847afaf9c4a7bb72110b5_5646.xml&pid=80&converted=0
    Have you tried manually connecting to wireless?
    http://kb.linksys.com/Linksys/GetArticle.aspx?docid=8fd9ee85a0bf42f0986ed23390be8c66_19850.xml
    Andy Altmann
    TechNet Community Support

  • Date function not returning any rows

    I am trying to pull back rows for data of people who were born in the 90s
         a.birthday >= to_date('01/01/90','dd/mm/yy')
         and     
              a.birthday <= to_date('31/12/90','dd/mm/yy')
    I know that there is definately users born in the 90s in my database but it returns 0 rows with the above ouptut Date format is like "05-FEB-93", have tried using dd/mon/yy but that gives an error

    user8652681 wrote:
    I am trying to pull back rows for data of people who were born in the 90s
         a.birthday >= to_date('01/01/90','dd/mm/yy')
         and     
              a.birthday <= to_date('31/12/90','dd/mm/yy')
    I know that there is definately users born in the 90s in my database but it returns 0 rows with the above ouptut Date format is like "05-FEB-93", have tried using dd/mon/yy but that gives an errorFirst off to_date('01/01/90','dd/mm/yy') is Jan 1, 2090. You need to use a four digit year.
    Secondly a.birthday >= to_date('01/01/1990','dd/mm/yyyy') and a.birthday <= to_date('31/12/1990','dd/mm/yyyy')
    is not everyone born in the 90's, it's everyone born in 1990. If you want everyone born in the 90's you need:
    a.birthday between to_date('01/01/1990','dd/mm/yyyy') and to_date('31/12/1999 23:59:59','dd/mm/yyyy hh24:mi:ss')I realize your birthdays are most likely trunc'ed so the time portion probably isn't necessary but I included it just to be safe.
    Edited by: kendenny on Jul 22, 2009 6:13 AM

  • Toplink generate the SQL statement correctly but it does not return any row

    Hi
    I faced an strange problem when using Toplink as JPA provider. Following snippet shows how I create and execute a query using Toplink JPA:
    q = em.createQuery("SELECT B FROM Branch B WHERE B.street LIKE :street");
    q.setParameter("street", "'%a%'");
       List<Branch> l = q.getResultList();
      System.out.println("List Size: " + l.size());The SQL statement resulted by this query is as follow (according to the generated log file)
    SELECT ID, STREET FROM BRANCH WHERE (STREET LIKE CAST (? AS VARCHAR(32672) ))
      bind => [%a%]Problem is that List size is always 0, independent of what I provide as parameter. I tried and executed the generated SQL statement in the SQL manager and I got some tens of record as the result. The SQL statement i tested in the SQL manager is like:
    SELECT ID, STREET FROM BRANCH WHERE (STREET LIKE CAST ('%a%' AS VARCHAR(32672) ))Can someone please let me know what I am missing and how I can fix this problem?
    Thanks.

    Hi,
    Thank you for reply.
    All data are stored in lower case so, the case sensitivity is not a problem. I am wondering how the generated query works fine when I execute it in the sql manager but it return no result when it is executed by the JPA.
    Thanks for looking into my problem.

  • New SP Custom List results in Power Query Error: Expression.Error: The key did not match any rows in the table.

    Hi,
    I'm running into something that seems to be a bug in Power Query. I've got my Power Query tables from SharePoint lists into Excel and Power Pivot data model. (Making sure the SharePoint site is in English and I replace MMD columns with normal columns). 
    But then, when I close down Excel, add another custom list to SharePoint, open the Excel workbook and want to add that new custom list using the same connection (via recent data sources).
    It shows the newly added custom list in the explorer but with an error:
    Nothing I can do to fix this; restarting Excel or PC; nothing. 
    The only way I got around this was by removing all my existing data sources and re-create them.. 
    after that, the same SharePoint custom list WAS read with Power Query without an issue.
    Thanks,
    Jeroen

    Its because of recent updates to Power Query.
    In recent updates internally their is some change in syntax for reading particular table from list (I faced this issue while reading data from Excel file, i.e After applying recent update of Power Query my Queries which were working fine before starting
    throwing same error that yo are facing).
    As solution their is small tweak to be done in existing queries, instead of recreating all queries. If you can provide me your complete old query from Advanced editor then I can point to tweak that need to be done.
    Thanks,
    Sagar K

  • Can not see any Data in OKE.OKE_K_FUND_ALLOCATIONS

    I am looking in this table with SQLPlus and TOAD and can not see any rows.

    Hi Hussein;
    First I ran:
    select fu.user_name, fr.responsibility_name
    , fu.user_id, fr.responsibility_id resp_id
    , furg.responsibility_application_id resp_appl_id, furg.security_group_id sec_group_id
    from apps.fnd_user_resp_groups furg
    , apps.fnd_user fu
    , apps.fnd_responsibility_vl fr
    where furg.user_id = fu.user_id
    and upper(fu.user_name) = upper('&User_Name')
    and furg.responsibility_id = fr.responsibility_id
    order by 1, 3
    Passing in SYSADMIN
    Taking this row:
    SYSADMIN,General Ledger Super User,0,20434,101,0
    I ran:
    I ran exec fnd_global.APPS_INITIALIZE (0,20434,101,0);
    I still get no rows returned.
    Is thier a way in the App to ensure the SYSADMIN,General Ledger Super User can see this data? Or am I missing something else?

Maybe you are looking for