No data found despite data in the table

hello All,
I have a problen with a function. I get "no data found" exception despite the rows in the table exist. the code is pasted below
create or replace
FUNCTION GET_POT_NAME
RELATED_TYPE IN VARCHAR2,
PARENTID IN NUMBER
RETURN VARCHAR2 IS
POTNAME VARCHAR2(100);
sqlst VARCHAR2(100);
BEGIN
IF PARENTID > 0 then
SELECT POTENTIALNAME INTO POTNAME FROM CRM_POTENTIAL WHERE potentialid = PARENTID;
Else
POTNAME:='';
END IF;
RETURN POTNAME;
I have verified that the data exists in the table for a paretid 322. However I get the exception when the function is called with 322. I fire a select statement in the SQL developer query window and get the row displayed. This is happening with few of the tables and the function work ok on some other tables.
Please help.

908776 wrote:
please note that same code works on some table and not on some.Any chance tables where it doesn't work have column PARENTID? If so, column name is SQL statement always takes precedence over variable name and condition:
potentialid = PARENTIDwill compare column potentialid to column PARENTID. It is always a good idea to prefix PL/SQL variable. E.G. P_PARENTID (P for parameter, since it is SP parameter) or v_POTNAME (V for variable).
SY.

Similar Messages

  • Failed to read data from report file Reason: The table could not be found.

    BO Enterprise XI R2, cannot publish crystal reports using the publishing wizard.
    Failed to read data from report file Reason: The table could not be found.
    Any ideas to get around this would really help out.
    Regards

    Connection used Views, ODBC System DSN is setup properly.
    Approach for import from business view manager and import wizard.  both methods failed to import the Business View and underlying reports.
    I figure I may have imported the Business View wrong? From Business View Manager I exported from my dev server then imported to prod server.
    Apparently I learned exporting my business view also includes the Data Connections that the Business Views are dependent upon.
    So which ever folder you specify it copies it there. Originally the all Data Connections Resides on the root folder. To return it to the original location. I deleted what I had exported. Exported this time to the root folder, then only deleted the business views, foundation, elements. Then exported again to the folder where I intended then only deleted the Data Connection.
    Makes any sense? So I then had to re point the business views and all the dependent objects to the data connection that resides in the root folder.
    I tested the connection, it works fine. I properly updated my crystal reports to the business view in production. Did a sample extract it works as expected.
    However when i try to publish, either from Crystal or Publish wizard i get the same error?
    As a work around i am thinking, after updating the business view in the crystal reports, shall i re map the fields?? or reexport the business views again?
    Any help will be surely appreciated.

  • While loading transaction data into cube what are the tables generats

    Hi,
    while loading transaction data into cube what are the tables normally generats.

    Hi,
    Normally datas will be loading to 'F'- Fact tables (/BIC/F****) *** - cube name..
    When you do compress the request the data will be moved into E tables.
    Regards,
    Siva.

  • *Urgent*How to insert data from MS SQL to the table that create at the adobe form?

    Hi,
    I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
    I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
    Thanks

    Tou need to do a couple of things
    1. On the Essbase server, set up an odbc system connection to your MySQL database
    2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
    The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it

  • Getting 'No Data found' Error when clicking the edit link to edit a record.

    Application Express 4.2.0
    Database: oracle 11g
    Hi Guys
    I am getting an error whenever i try to edit some of my entries by clicking the edit link, i have a composite Primary key attributes of three columns ( Budget Year ('YYYY'), Training Name('VARCHAR') and Emp Code ('VARCHAR')
    Some records will load when i click Edit but some wont and return 'ORA-01403: no data found' error.
    Any help will be appriciated.
    Thanx
    MATT

    Hi,
    Please create example about problem to apex.oracle.com and share developer login details to workspace.
    Regards,
    Jari

  • Date field is missing in the Table maintainance generator

    Hi,
      A table is created. A date field is there in that table. I tried to create a table maintainance generator for this table using 2 screens. Table maintainance generator is  created. But when I go to SM30 , I am unable to see this <b>DATE</b> field in the SM30 , in the first screen. But when I go to maintainance screen , I am able to see this field. This particularly happening with date field.
    Could you please help me.
    Regards,
    Satya

    go to se11 and type the table what you want.
    utilities, table maintenance generator.
    you config the options that you need.
    press F6 and go to sm30.
    its only this.
    Regards

  • How to identify which data has been inserted  to the table in specific date

    Hi,
    i created one table without data column.. i am inserting data in that table.
    i want which data has been inserted today..
    Please help.
    Thanks,

    If you are in Oracle 10g you can use ORA_ROWSCN.Note that unless the table was created with ROWDEPENDENCIES enabled, though, ORA_ROWSCN is tracked at the block level rather than the row level. So a block with one new row and many old rows could appear as having all been entered today.
    Justin

  • Transfer Data from a JTable to the table model

    Hi
    I' looking for a simple method to transfer the last user input in a table to the table model.
    For example:
    In a Dialog the user insert in a JTable a few values and leaves with OK. But the last input is not saved in the model. It is just saved after selecting a new field in the JTable before leaving the Dialog.
    Is there a call to transfer all input to the model?
    Thanks
    Guido

    class MyJTable extends JTable (
    public boolean validateInput() {
    if(isEditing()) {
    return cellEditor.stopCellEditing();
    return true;
    Call this method whenever you want the input value to be stored in the table model. The return value can be false if the input isn't valid, this will depend on the cell editor.
    The idea is:
    Ask if the table has an editor activated. (isEditing())
    If so, request the editor to store the value in the model.
    I haven't prouved the code, sorry, but I hope you get the idea and helps.

  • Get data from view and displaying the table data into Excel  pivot table

    Hi All,
    I have a small reqirement inthat When i get the data from the View that would displayed as Excel Pivot table.
    For displaying gerneral data to Excel I have followed Binarcy cachey
    Please suggest me in this.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Try this:
    http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref681
    Specifically code sample 8-10 for accessing the AM object.
    Then use the findView method to get a pointer to the VO.

  • Data is not updating in the tables

    Hi all,
    I am facing a problem while creating customer and material, after creating and saving the customer and material, if i am going in the change mode, then system is giving awkward message;
    "The material '##' is not been created yet or it has not been activated ",
    in case of customer also it is giving the same error, saying "the customer '#######' is not been created yet"
    please help me solving this problem, as i am not able to understand why this is happening.
    Thanks
    Edited by: saur06_80 on Jul 1, 2010 12:34 PM

    Check your workplace, use TCODE SBWP.
    If SAP fails to store the newly created material/cusrtomer in the database, then the user usually receives an exception message (which is so cryptic that noone understands this mail and just ignores it). This message is just telling you that there was a posting failure. You can then analyze the reason for the failure in SM13.
    Hope this can assist you.
    Thanks & Regards
    JP

  • No data found error on Form on a Table with report

    Hi Everyone, I'm using Application Express 4.1.0.00.32 on Windows 7. I built a Form on a table with report. Earlier I was using rowid as a passing parameter but then I had to change it to primary key column from report to form.
    So in the "Fetch row process" I changed the "Items containing primary key value" and "Primary Key column" to P1004_PERSON_ID and PERSON_ID respectively. Which is my primary key.
    My Form is working exactly fine but at on point it throws "no data found error".
    I have a required date field in the form. So if the user doesn't fill in the date field and try to save the form, it throws the "Feild required error" and then when user enters date and try to save then it throws the error "No data found.". here is the snapshot... snapshot
    How can I fix this error.I'm really stuck.
    I checked debubber..it is as follows... in debughger it's still showing rowid. I don't know why. How can I fix that.
    Execution
    Message
    Level
    Graph
    0.00233
    0.00932
    S H O W: application="101" page="1004" workspace="" request="" session="123235901404364"
    4
    0.01161
    0.00102
    Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    4
    0.01261
    0.00046
    alter session set nls_language="AMERICAN"
    4
    0.01307
    0.00042
    alter session set nls_territory="AMERICA"
    4
    0.01348
    0.00053
    NLS: CSV charset=WE8MSWIN1252
    4
    0.01401
    0.00042
    ...NLS: Set Decimal separator="."
    4
    0.01443
    0.00053
    ...NLS: Set NLS Group separator=","
    4
    0.01495
    0.00050
    ...NLS: Set g_nls_date_format="DD-MON-RR"
    4
    0.01545
    0.00051
    ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"
    4
    0.01597
    0.00050
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.01647
    0.00079
    ...Setting session time_zone to -05:00
    4
    0.01726
    0.00046
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.01772
    0.00060
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.01832
    0.00092
    ...NLS: Set g_nls_date_format="DD-MON-YYYY"
    4
    0.01924
    0.00049
    ...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH24.MI.SSXFF"
    4
    0.01973
    0.00083
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.02056
    0.00099
    NLS: Language=en-us
    4
    0.02154
    0.00157
    Application 101, Authentication: PLUGIN, Page Template: 5091946581246503
    4
    0.02312
    0.00065
    ...fetch session state from database
    4
    0.02377
    0.00106
    fetch items
    4
    0.02483
    0.00065
    ...fetched 103 session state items
    4
    0.02548
    0.00194
    Authentication check: NTLM (NATIVE_CUSTOM)
    4
    0.02742
    0.00188
    ...Execute Statement: begin declare begin wwv_flow.g_boolean := f_ntlm_page_sentry_parm; end; end;
    4
    0.02930
    0.00050
    ... sentry+verification success
    4
    0.02980
    0.00042
    ...Session ID 123235901404364 can be used
    4
    0.03021
    0.00114
    ...Application session: 123235901404364, user=VARMAN01
    4
    0.03135
    0.00162
    ...Check for session expiration:
    4
    0.03297
    0.00075
    Session: Fetch session header information
    4
    0.03372
    0.00113
    ...Setting session time_zone to -5:00
    4
    0.03485
    0.00080
    Branch point: Before Header
    4
    0.03565
    0.00598
    Fetch application meta data
    4
    0.04165
    0.00081
    ...metadata, fetch computations
    4
    0.04245
    0.00076
    ...metadata, fetch buttons
    4
    0.04321
    0.00086
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.04406
    0.00058
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.04464
    0.00049

    Just an observance... SQL is still showing the rowid instead of the P1004_PERSON_ID ??
    where "PERSON_ID" = :p_rowid;
    should it not be :
    where "PERSON_ID" = :P1004_PERSON_ID:
    thx, Bill

  • Not displaying the data in to the table..wht is the issue

    I have problem for the displaying the RFC Model object date in to the table.
    I have created the Table in the view, Then  i have choosed  the "create  binding" option in the outLine window to map the perticular RFC model object to the Table to display. The data is not displaying in the table . But the RFC model object contains data. when i am trying to display with MessageMaganger.reporSuccess(). it is diplaying the data.
    Can any one tell me what is the issue.

    First, in your view layout in NWDS,  look at the tableview,  do you see fieldnames in the columns and rows.  If so, then I believe that you have bound correctly.    Also, in your executeBAPI method,  make sure that it looks something like this.
        public void executeBapi_Gl_Acc_Getlist_Input( )
        //@@begin executeBapi_Gl_Acc_Getlist_Input()
        try{
             wdContext.currentBapi_Gl_Acc_Getlist_InputElement().modelObject().execute();
        catch (Exception ex)
                  ex.printStackTrace();
    <b>    wdContext.nodeOutput().invalidate();</b>
        //@@end
    Regard,
    Rich Heilman

  • Can I filter the table being profiled in the Data Profiling task, or know of a work around? SSIS2008r2

    Hi,
    I import several files into a staging table.  Inside a foreach loop, after the data flow task I have a Data Profiling task that profiles the table so we can give feedback to those who sent us the file.
    I just relalized that after the first loop, there is more than one file in the staging table, hence more than one file is being profiled.
    At first glance it doesnt appear I can add a "Where" clause to the table.  I do have a column that states which file the data came from, but with only being able to profile a view or table, I can't filter.
    Anyone have any ideas?
    Mike

    Catching outliers seeing how much of what kind of data exist, deviations, distribution, you get some sort of a historgram in essence with the Data Profiling.
    It is normally a preamble to doing data ingress (or egress) into a new target.
    Now patterns are in Fuzzy Lookups/matching or grouping. Having RegEx used is hard in SSIS! I admit, I proposed to have it included into SSIS VNext. I remember there was a component or two on CodePlex:
    http://ssisctc.codeplex.com/ see if any makes sense, I recall I tried one just out for fun.
    Arthur My Blog

  • No data Exists error while retrieving the data from a table

    Hi Everyone!
    I am getting "No Data Exists" error while retrieving the data from a table....where i need to check...if possible please give me example link.....please help me regarding this

    Hi !
    thanks for ur response...
    I have written vo.executeQuery for the table...My page is running but i m not getting the data....I have to select two LOV's and when I click on Go button the data has to display in the table...After the selection of LOV's when I click on Go in the table "No data exists" message is appearing...the table has the data and the query is also executing...please give info where i did the mistake....

  • Display 'No Data Found' if the records doesnot match the parameter

    Can anyone pls answer this question.
    I have just one parameter, if i select a value from the parameter and the results matches then the report shows records which is obvious but IF no data is matching to the value I selected in parameter, Can I didplay NO Data Found when I run the report??
    I want Display No Data found on my report, I just get a blank page with report title, date and PageNof M
    Someone pls suggest
    I am using CR 11.5

    hi,
    thanks for the suggestion but I am not clear about this part, i am sorry aboiut that:
    Create a text object with No Data Found in it.
    Conditionally suppress the text object with a formula similar to the following;
    {@countdbfieldformula} 0
    Where should i exactly drop my text box.
    I have parameter on 'Project Name'
    Pls suggest me something with steps...i would highly appreciate it

Maybe you are looking for

  • Flash crashing on Nightly and 6.0 when new tabs are opened

    Say I open a YouTube video, it works fine until I open a new tab or open a new instance of Firefox. Flash will then crash. It doesn't resolve itself by removing and reinstalling flash, or updating Firefox in any form. This has only happened as of tod

  • Is it possible to switch the left-right scrolling behavior in Prelude?

    On my Apple magic mouse I can scroll left and right with the flick of a finger for items that are too wide to fit on the screen, such as the list of columns in the Project pane. The behavior in Prelude is to move opposite to the finger flick - in oth

  • Beehive 2.0.1.4.0 JDK JAXB error

    I'm developing a module that communicates with Beehive. From what I understand there aren't SOAP webservices on version 2, only REST?! I'm trying to follow the BDK sample client (http://www.oracle.com/technetwork/middleware/beehive/java-bdk-082633.ht

  • Sent messages can not be seen by other members in BBM Group Chat

    Hi, Need help to overcome my current problem with BB Messenger .... My sent messages cannot be seen by other members in all BB Group chats, but I receive all chats from members ...  I can still chat with the same members on one-on-one basis (not in g

  • I forgot my iphone passcode, it's disabled now, and I can't restore??

    Hey guys, I've had an iphone for about 3 weeks. All of a sudden today I couldn't remember the lock code. Stupid I know! Anyhow I panicked and entered what I thought was the password way too many times. In short, it's now disabled now. I read on how t