Table error ' can not analyze the SQL query!

Hi all

I created a view on my database called VIEW_MEMBER_PARTIC_PROJECTS

If I run a query showing the results of the view:

SELECT * FROM VIEW_MEMBER_PARTIC_PROJECTS

I get the following data

ProjectsParticipants
131 S
241
319
43
53
61
72

Now, I wanted to represent this diagram in the APEX so I created a graphic region and entered the Source query generator and the manufacturer produces the following code

Select null, label projects, value1 Participant link

of "SCHEMANAME." "" VIEW_MEMBER_PARTIC_PROJECTS ".

With this code, I get an error:

Cannot parse the SQL query!

Select the link null, label projects, value1 "SCHEMANAME Participant." "" VIEW_MEMBER_PARTIC_PROJECTS ".

Some queries can be run when you run your application, if your query is syntactically correct, you can save your query without validation (see options below the source of the query).

The code looks OK, but I do not see to save options as the error code is mentioned.

No one knows how to fix this?

Thank you

JaReg wrote:

I finally found the problem.

I looked at the code for the view and changed the start of:

CREATE OR REPLACE FORCE EDITIONABLE VIEW "SCHEMANAME." "" VIEW_MEMBER_PARTIC_PROJECTS "("Participant","Projects")

AS

TO

CREATE OR REPLACE VIEW "SCHEMANAME." "" VIEW_REPEAT_PARATIC ".

AS

And that seemed to fix it. I'm not entirely sure why though.

The view was created using the quoted identifiers for column names. This makes them sensitive and means that they must always be referenced using double quotes. In the absence of quotation marks, Oracle is not case insensitive and automatically converts all uppercase identifiers. The application of graph:

Select the link null, label projects, value1 "SCHEMANAME Participant." "" VIEW_MEMBER_PARTIC_PROJECTS ".

has therefore been interpreted by Oracle:

SELECT THE LINK NULL, LABEL, VALUE1 "SCHEMANAME PARTICIPANT PROJECTS." "" VIEW_MEMBER_PARTIC_PROJECTS ".

and PROJECTS and PARTICIPANT columns were not recognized because the columns defined for the view have been 'Participant' and 'projects '. The graphic request should have been:

Select the link null, the label of "Projects", "Participant" value1 "SCHEMANAME." "" VIEW_MEMBER_PARTIC_PROJECTS ".

As you have now discovered, quoted identifiers are a source of nothing but obscure bugs and should never be used for database objects. He also pointed out the reason why you should always use a standardized, form tiny, coding style as it is faster to type, easy to read and less prone to errors.

Tags: Database

Similar Questions

  • Startup error: DLL Load error can not load the resource dll: REPLRES. RLL the specified module could not be found

    Original title:

    ReplSync.dll - error loading DLL cannot load resource dll: REPLRES. RLL the specified module could not be found

    I get this error message whenever I start my computer: replsync.dll - DLL Load error can not load the resource dll: REPLRES. RLL specified module is not found Help please?  Thank you!

    Hello
    You did changes to the computer before the show?
    Method 1:
    Step 1:

    You can try to start in safe mode and check if the problem persists.

    The Advanced Boot Options screen lets you start Windows in advanced troubleshooting mode. You can access the menu by turning on your computer and pressing the F8 key before Windows starts.

    Some options, including the mode safe mode, start Windows in a limited State, where only the essential is started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic device drivers and services as a possible cause.

    Advanced startup options
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    Step 2:

    If the problem does not occur in safe mode, and then try to perform the clean boot and see if the problem still occurs. Clean boot helps eliminate software conflicts. For more information, see the following link:

    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the article mentioned above.

    Method 2:

    You can run Windows Defender Offline tool.

    See the following link for more information about the same:

    What is Windows Defender in offline mode?

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

    Windows Defender Offline: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows/Windows-Defender-offline-FAQ

    Note:
    data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    Method 3:

    Try the SFC (System File Checker) scan on the computer.

    SFC/scannow is a very useful command that you can use in any version of Windows. When the SFC (System File Checker) command is used with the/scannow switch, the tool analyzes all the important files of Windows on your computer and replace if necessary.

    Missing and the corruption of the operating system (like many DLLs) files are probably the main cause of the major problems of Windows. In view of this, plus the fact that the SFC/scannow is completely automatic and very easy to use, the tool should be usually one of your top not troubleshooting.

    Reference:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Let us know if it helps!

  • Classic report shows wrong "could not parse the SQL query: ORA-00942" error after migrating app to the new environment

    After migrating my APEX 4.1 application to a new environment, one classic report displays a "cannot parse the SQL query: ORA-00942: table or view does not exist" error when the page is displayed. Change the region to report SQL source to somehow (e.g., remove spaces, changing the order of the variables in the WHERE clause) immediately solves the problem, but by returning to the source of the region causes the report error again (the source region valid code without error, however).

    Throw the error message:

    Select v.id,

    v.Col1

    of view_vw v

    where (: P1_FILTER is null or)

    v.col2 = :P1_FILTER)

    Do not throw error:

    Select v.id,

    v.Col1

    of view_vw v

    where (:P1_FILTER is null or)

    v.col2 = :P1_FILTER)

    Changing the order of column in the report has the same effect; i.e. He arranges, but return back to the original column order causes the error to display.

    It's as if a cached result for the correct select statement used by the report is displayed. However, the application does not use the caching of page/region. Any ideas of what could be the cause?

    He solved. Ultimately, all that was necessary was to clear the DB cache using:

    alter system flush shared_pool;

  • date picker default value appears only not in the sql query

    Hello

    I have a page as a table with a query similar to the following:

    Select emp_name, salary of emp_table where (hire_date) trunc = trunc (to_date (:P42_START_DATE))

    where P42_START_DATE is the name of a date picker.

    I put the date picker, "only when the current value in session state is null" and the value of being "select trunc (next_day(sysdate,'MON')-7) from dual;"-essentially the Monday of the current week, the type of source. I updated the date to 5 selector and the sequence of the region 10. Now, when I opened this page, no data gets pulled. I checked the source of the page and the value of the entry date picker is used to "November 17, 2008", but is not somehow reflected in the sql query.

    Data get retrieved if I put manually the date in the date picker, but I would like that it by default on Monday of this week. What I am doing wrong?

    Thank you

    Hello

    >
    "Article 1 of the Expression value is NULL" where is expression 1
    P42_START_DATE
    >

    Yes, that's correct - No. colon is required here as we don't not using the item as a variable binding, just name for the condition. In my tests, I put the calculation for:

    Name of article: P31_HIREDATE (put your P42_START_DATE here instead)
    Type: SQL query
    Point calculation: before header
    Calculation: SELECT TO_CHAR (TRUNC (SYSDATE, 'DAY'), 'DD-MON-RR') FROM DUAL

    My report SQL statement is:

    SELECT EMPNO,
    ENAME,
    HIREDATE
    FROM EMP
    WHERE NVL(HIREDATE, TRUNC(SYSDATE)) < TO_DATE(:P31_HIREDATE,'DD-MON-RR')
    

    My datepicker object has no special parameters - so:

    Name: P31_HIREDATE
    Display: Date Picker (DD-MON-RR)
    Source: Only when...
    Source type: static...
    The source value or expression: (empty)
    Default: (empty)

    And that's what I did to get: http://htmldb.oracle.com/pls/otn/f?p=55041:31

    Change the date that you like or click Reset to clear the cache (the calculation will be then reset the date to the current date and refiltrer the report)

    Andy

  • Microsoft Visual C ++ Runtime Error - can not see the path of the file.

    When I get the runtime at startup error, I don't see the destination of the file. It is very annoying that I can not see the program that gives me the problem.

    All it says, this is:

    Runtime error!

    Program: C:\Program F...

    How can I extend the above so I can see the path of the actual file?

    Also going to go for a 2 for 1 here...

    Immediately after the closure of the runtime error box, I get the message that search settings stopped working.  I close who and everything is fine until I reboot (by making the error happen) but I'd rather not have the problem in the first place.  I run Windows 7 Ultimate.

    Error information:

    Signature of the problem:
    Problem event name: APPCRASH
    Application name: SearchSettings.exe
    Application version: 4.5.0.2
    Application timestamp: 4e04ab86
    Fault Module name: MSVCR90.dll
    Fault Module Version: 9.0.30729.4940
    Timestamp of Module error: 4ca2ef57
    Exception code: 40000015
    Exception offset: 0005beae
    OS version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Information additional 1:9956
    More information 2: 995611374799875ff43c42d4b1b84d70
    3 more information: 3d4b
    Additional information 4: 3d4b4db0455ea2295d172b959897673c

    Maybe just download a new MSVCR90.dll but I would like to hear what you have to say.

    Hello

    ·         Did you the latest changes on the computer?

    We must first identify to identify the program that is causing startup problems.

    Step 1:

    Check if the problem persists in safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Restart the computer to return to normal mode.

    If the problem does not persist in safe mode, then it is possible that some third-party programs installed on the computer is causing the problem.

    Step 2:

     

     

    I suggest that you put the computer in a clean boot state and check.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • How can I write the SQL query for this requirement?

    Hello

    I have a table that looks like this:

    NAME | ANNUAL |     VALUE
    ==== | ====== | =====
    execno |     480.     000004
    step |      480.     0400
    SCNA |     480. cd_demo
    System |     480.     D47-010
    type |     480.     step
    free_text |     480.     stage 400
    rbare |     480.     RBA-1
    execno |     482. 000004
    SCNA |     482. cd_demo
    System |     482.     D47-010
    free_text |     482.     step 300
    step |          482.          0300
    type |      482.     step
    rbare |     482.     RBA-1
    execno |     483.     000001
    type |     483.     step
    rbare |     483.     rke1
    SCNA |     483.     rke10
    step |     483.     0240

    Now, say that I want to fetch ONLY annual with execno = '000004' and '400' = step and scna = "cd_demo" and system = "d47-010' and type = 'step', how to write SQL code?
    At first, it seemed like a simple writing query but I've been struggling with it for hours without success. I must admit though that I'm not strong in SQL :-)
    There, can anyone help? Please...

    Thanks in advance.

    Emmanuel

    Published by: user12138559 on October 30, 2009 03:05

    Hi, Emmanuel.

    Welcome to the forum!

    Here's a way to do what you asked:

    SELECT       doc_id
    FROM       table_x
    GROUP BY  doc_id
    HAVING       SUM (CASE WHEN name = 'execno' AND value = '000004'  THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'step'   AND value = '400'     THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'scna'   AND value = 'cd_demo' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'system' AND value = 'd47-010' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'type'   AND value = 'step'    THEN 1 END) > 0
    ;
    

    If you think that a WHERE clause would be used, but WHERE does apply to a single line. You need a condition that checks several rows in the same group.
    WHEN has an effect something like WHERE.

    Published by: Frank Kulash, October 30, 2009 06:26

    This solution assumes that (name, annual) is unique.

  • Update iTunes errors, can not find the file iTunes6464.msi

    Try to update iTunes on PC.

    Windows 7 (64-bit) with Intel i5 processor.

    During an update of base, update errors trying to find the file "iTunes6464.msi" he says is not available.

    I tried to delete all the software Apple on PC, but the file final iTunes will not uninstall because of the same file.

    The new apple software download now error with the same error.

    How can I solve this problem?

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    Start by missing error MSI.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • ColdFusion error: can not find the file /CFIDE/administrator/index.cfm

    I know, you can google this question and get a lot of responses to this topic, but none of them does not seem to work for me.

    I have a new server, RHEL5, with the latest installation of the LAMP on it, and I just install Coldfusion 9.

    When I visit my site, I get the Coldfusion error saying


    File not found: /index.cfm

    If I navigate to an HTML or php is very good, they server properly. And the error I get is the blue/gray coldfusion, then the coldfusion server is running.

    And I've narrowed the problem to this...

    /var/www/vhosts/site.co.uk/index.cfm - this is served

    but the root of my site is really

    /var/www/vhosts/site.co.uk/httpdocs/index.cfm - coldfusion cannot see this file!

    I found this

    /var/www/vhosts/site.co.uk/index.cfm

    in the cfserver.log. But I can not find anywhere which refers to "/ var/www/vhosts/site.co.uk/" as root.

    JRun - Web.xml is a system path to /var/www/vhosts/site.co.uk/httpdocs and inside "bin/coldfusion" the DOCROOT is set to the value

    "/ var/www/vhosts/site.co.uk/httpdocs".

    What I am doing wrong?

    I got it fixed, the problem was the RUNTIME_USER variable has been defined in various places to "nobody".

    I managed to solve the problem through this blog entry

    http://nzflew.blogspot.com/2009/04/changing-user-of-ColdFusion-on-Linux.html

    The "nobody" user had no rights of access to view the files. I did the mistake of installing with the default value of 'nobody' user name too.

    Thanks for your help anyway.

  • Installation installation of Win Vista Home premium error Windows errors can not reset the deployment engine. to install windows, restart the installation.

    Original title: Error Installing Win Vista Home premium.

    I have a PC with Windows Vista Home Premium.  Suddenly, it wouldn't start.  I changed the boot CD ROM and put my Vista disc in and tried to do a "repair" that it came with missing engine or something like this.  After several attempts, I gave up and formatted hard drive losing all my data and programs (rather difficult to backup files when the computer does not start).  So, I tried a complete installation.  I put in the license code and he started the installation.  After a few minutes, the message came;  "Windows Setup could not reset the deployment engine.  to install windows, restart the installation.  I tried several times including completely turn off the computer for several minutes and try again.  I tried several times.  I thought oh well, I will install my Windows 7 program (this and never used).  Error on this installation was: your CPU is only good for 32 bit and Win 7 I have is a 64-bit version.  I'D RATHER INSTALL VISTA BUT need help on the error regarding the deployment engine.  Thank you, Lloyd

    Hello

    See if this solution works for you:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_install/Windows-Setup-could-not-reinitialize-the/f9e6f3e6-EA80-487F-8d86-36c793f7c152

    See you soon.

  • An error occurred opening the file. Flash can not analyze the document. "

    flash error.pngI'm working on an animation keyframe for a customer.  It was working up until the recent patch of flash player. Now, the file is corrupted and does not work.  I have the back four files on two different hard drives, still no luck.  I can't afford to keep re-creating the files when it should be probably save in the first place. Is there any way to recover the files correctly? This terrible I really need help.  Thank you

    Hello

    This problem is caused by an incorrect addition of empty frame (s) to one or many of the assets of the library cause the XML to be corrupt structure and thus the error. To resolve this problem, update your Flash CS5 for the last available build of Flash CS5.

    1. launch Flash.

    2. go to the Help menu > updates...

    3. make sure the box for Adobe Flash Pro CS5 is checked in the Adobe Application Manager dialog box.

    4. click on refresh. You will probably be asked to stop Flash while the update is running.

    After a successful update, you should be able to open the file without error.

    Thank you!

    Mohan

  • Can not analyze the request. (SBL-EAI-04308)

    Error during the service call 'political determination Server Automation', method 'Evaluate' in step 'call determination Server '. (SBL-RPR-00162)
    --
    Operation "Rate" of the Web Service 'http://oracle.com/determinations/server/10.0/server/types.DeterminationServer' port 'AdminSmokeTest' failed with the following explanation: "cannot parse request. "Reason: application contains no element root expected: global instance. (SBL-EAI-04308)

    Quick Note: I changed the endpoint and action for the 10.3 to trigger this error in the smoketest

    OK I compared applications of

    http:// < Server > /Siebel-determinations-Server/assess/SOAP/Generic/10.3/AdminSmokeTest

    and

    http:// < Server > /Siebel-determinations-Server/assess/SOAP/Generic/10.0/AdminSmokeTest

    and I noticed that the structure is definitely different...

    This means if I want to use the "policy of automation assess Workflow" relying on 'politics of automation mapping entity view' I need TO use the old endpoint or did something to not spend by in my upgrade?

    BrasilWill wrote:
    This means if I want to use the "policy of automation assess Workflow" relying on 'politics of automation mapping entity view' I need TO use the old endpoint or did something to not spend by in my upgrade?

    Your upgrade seems to work very well.

    The OPA Siebel connector 10.3 using the old interface for server of determinations. You can always create rulebases to 10.3 and use all the features of rule 10.3, however, you must use the 10.0 endpoint during the call to Siebel.

  • XP SP3 "error can not clear the ARP cache.

    had problems connecting to play online on the server, so I fix the connection got msg "repair cannot clear the ARP cache.

    XP SP3 IE 8

    Hello

    Maybe this can help.

    http://www.tech-FAQ.com/clear-ARP-cache.html

  • Error: can not find the drivers for network control device when configuring a wireless connection

    Original title: what to do now?

    Hello! I'm trying to get my work wireless for vista, but it won't happen it tells me it cannot find the drivers for the control of the hierarchical network... what to do?

    Hello

    ·          It worked before?

    Step 1: Try the procedure described in the following article:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    Step 2: See also the article below:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-adapter-problems

  • Unable to load the query in Crystal Designer: error "Could not load the Query builder compenent."

    Hi all
    I am using Crystal report 10 which was an upgrade of crystal 7 and 8.5
    I can open the crystal report and can do everything but I could not display the SQL query option
    It gives me an error message
    "Failed to load the Query builder compenent."
    I also reinstalled the application twice as a sysadmin even then I get this message
    Please, can someone suggest me what should I do?

    Contact technical support for Crystal Reports or watch in their forums. This is not a product of MS and is not related to the installation, upgrade and activation of Windows XP.

  • Can not access the rows of an item of table no-netsed in execution of the embedded R

    Hi all

    I am running a script R (R running embedded) oracle database

    I use under request

    Select *.
    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))
    "select 1 id, 1 double val,"
    'myRandomRedDots2'));


    I want to save the result in a variable. So under anonymous block has written


    declare

    ID number (10);

    Val number (10);

    Start

    SELECT id, val in id, val

    table (rqEval (cursor (select 'divider' 50, 500 "numDots" of the double),))

    "select 1 id, 1 double val,"

    'myRandomRedDots2'));

    end;

    /

    But I get the error "can not access an element of no nested table lines.

    The one you suggest please how to fix this.

    Thank you

    Billa


    Billa,.

    You see the error "can not access the lines of a no nested table element" of PL/SQL, because rqEval (..., ' select 1 id, 1 double val ',')

Maybe you are looking for