Query Cannot be Parsed Within Builder

Hi,
I'm trying to parse different Oracle database connections so users can do a search by database. I am setting this up in the HTML DB and have set up the appropriate Item which is P"(_HUB and within this I have set up the List Of Values.
However, I get the following error:
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. The query can not be parsed, the cursor is not yet open or a function returning a SQL query returned without a value.
declare
v_sql varchar2(4000);
pshub varchar(15) := 'P29_HUB';
begin
v_sql := 'SELECT CLIENTACC.CLIENTID, CLIENTACC.ACCOUNT, CLIENTACC.ACCOUNTDESC, CLIENTACC.BACKOFFACCOUNT from CLIENTACC@'||pshub||'';
end;
Can someone please advise.
Cheers.

As I see in the query(v_sql) , you missed the quotes ;
Try this now :
declare
v_sql varchar2(4000);
pshub varchar(15) := 'P29_HUB';
begin
v_sql := 'SELECT CLIENTACC.CLIENTID, CLIENTACC.ACCOUNT, CLIENTACC.ACCOUNTDESC, CLIENTACC.BACKOFFACCOUNT from CLIENTACC@''||pshub||'' ';
end;

Similar Messages

  • Query cannot be parsed within the Builder ORA-00900: invalid SQL statement

    Why am I getting the error message "Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00900: invalid SQL statement"
    If I run the query in sqlplus it comes back with "no rows selected" which is what I want.
    The function is valid and the user has privileges to run it.
    Is there something I can do about it?
    If I only have any field instead of the function the error goes away.
    Can someone explain what is happening? I'm using 2.0.
    select
    F_TOTAL_AMOUNT_PAID('fees',a.acct_fee_id,0) "Fee Paid"
    from fee_component a, fee b, license c
    where a.acctfee_id = b.acctfee_id
    and b.license_id = c.license_id
    and b.fee_status = 'U'
    and c.client_id = :P301_CLIENT_ID
    Thanks I really appreciate any help I can get.

    Does your parsing schema have direct granted privileges to execute the function or privileges via a role? If it is through a role, you need to directly grant execute on the function to your parsing schema.
    Mike

  • File Upload Download Application- Query cannot be parsed within the Builder

    Posting for those who encounter this problem.
    In the section "Store the Document in a Custom Table", you will encounter a problem with the SQL:
    if ( :P2_FILE_NAME is not null ) then
    insert into file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
    select id,:P2_FILE_NAME,:P2_SUBJECT,blob_content,mime_type
    from wwv_flow_files where name = :P2_FILE_NAME;
    delete wwv_flow_files where name = :P2_FILE_NAME;
    end if;
    The problem is that the BLOB_CONTENT column has not been initialised with and empty BLOB locator.
    I modified the SQL as follows. If there is a better way of doing this please post.
    if ( :P2_FILE_NAME is not null ) then
    insert into file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
    select id,:P2_FILE_NAME,:P2_SUBJECT,EMPTY_BLOB(),mime_type
    from wwv_flow_files
    where name = :P2_FILE_NAME;
    insert into file_subjects(blob_content)
    select blob_content
    from wwv_flow_files
    where name = :P2_FILE_NAME;
    delete from wwv_flow_files where name = :P2_FILE_NAME;
    end if;

    Does your parsing schema have direct granted privileges to execute the function or privileges via a role? If it is through a role, you need to directly grant execute on the function to your parsing schema.
    Mike

  • Query cannot be parsed....

    I am completing the Day application express and I am having a basic problem in Modifying the Department report (p38 and 39 of the PDF documentation).
    We're supposed to change the sql code by the following:
    SELECT d.DEPARTMENT_ID,
    d.DEPARTMENT_NAME,
    (select count(*)from oehr_employees where department_id = d.department_id)
    "Number of Employees",
    substr(e.first_name,1,1)||'.'||e.last_name "Manager Name",
    c.COUNTRY_NAME "Location"
    FROM OEHR_DEPARTMENTS d,
    OEHR_EMPLOYEES e,
    OEHR_LOCATIONS l,
    OEHR_COUNTRIES c
    WHERE d.LOCATION_ID=l.LOCATION_ID
    AND l.COUNTRY_ID=c.COUNTRY_ID
    AND d.DEPARTMENT_ID=e.department_id
    AND d.manager_id=e.employee_id
    AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_
    SEARCH,d.department_name)))>0
    When I apply changes I have the following message:
    Query cannot be parsed, please check the syntax of your query. (ORA-00909: invalid number of arguments)
    Any idea ?
    Thanks in advance for your help.

    Hi,
    It looks like there is a new line in wrong place:
    SELECT d.DEPARTMENT_ID,
    d.DEPARTMENT_NAME,
    (select count(*)from oehr_employees where department_id = d.department_id)
    "Number of Employees",
    substr(e.first_name,1,1)||'.'||e.last_name "Manager Name",
    c.COUNTRY_NAME "Location"
    FROM OEHR_DEPARTMENTS d,
    OEHR_EMPLOYEES e,
    OEHR_LOCATIONS l,
    OEHR_COUNTRIES c
    WHERE d.LOCATION_ID=l.LOCATION_ID
    AND l.COUNTRY_ID=c.COUNTRY_ID
    AND d.DEPARTMENT_ID=e.department_id
    AND d.manager_id=e.employee_id
    AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_  --- <-- !!!
    SEARCH,d.department_name)))>0it should be:
    SELECT d.DEPARTMENT_ID,
    d.DEPARTMENT_NAME,
    (select count(*)from oehr_employees where department_id = d.department_id)
    "Number of Employees",
    substr(e.first_name,1,1)||'.'||e.last_name "Manager Name",
    c.COUNTRY_NAME "Location"
    FROM OEHR_DEPARTMENTS d,
    OEHR_EMPLOYEES e,
    OEHR_LOCATIONS l,
    OEHR_COUNTRIES c
    WHERE d.LOCATION_ID=l.LOCATION_ID
    AND l.COUNTRY_ID=c.COUNTRY_ID
    AND d.DEPARTMENT_ID=e.department_id
    AND d.manager_id=e.employee_id
    AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_SEARCH,d.department_name)))>0Lev
    Edited by: le on Jul 2, 2010 10:14 AM

  • Query cannot be parsed(ORA-00903: invalid table name)

    Hi all,
    I am creating a report on a remote table using a database link which connects to the system schema so it can access any schema tables in the link.
    But the schema name and db_link name is variable which is passed on by the "parent" table which has column "schema" and "db_link".
    So the link report base sql query is
    SELECT * FROM :P2_SCHEMA.EMP@:P2_DB_LINKIs this not allowed? Can I have a workaround for this?
    Thanks a lot,

    jozef_SVK wrote:
    declare
    stmt varchar2(32767);
    begin
    /* some stuff preparing sql query string */
    stmt := 'SELECT * FROM '&P2_SCHEMA.||'EMP@'||&P2_DB_LINK.'
    return stmt;
    end;
    This exposes SQL Injection vulnerabilities.
    <li>Do not use <tt>SELECT *</tt> if the column names are known: use a column list.
    <li>Do not use <tt>&P2_SCHEMA.</tt> string substitution in SQL and PL/SQL: use bind variables (<tt>:P2_SCHEMA</tt>) or session state functions (<tt>v('P2_SCHEMA')</tt>)
    <li>Validate variables contain what they're supposed to using <tt>dbms_assert</tt>:
    return 'select empno, ename, job from ' || dbms_assert.simple_sql_name(:p2_schema) || '.emp@' || dbms_assert.simple_sql_name(:p2_db_link);
    /* Using dbms_assert.simple_sql_name instead of dbms_assert.schema_name as schema is on a remote DB */

  • Using V9 C++ parser within shared library (Solaris)

    I am trying to use the latest C++ version of XML parser within a shared library on Solaris (v8) but I am having a problem with an unresolved symbol when the shared library is loaded.
    ../bin/Release/xxsd: fatal: relocation error: file /space/xxs/bin/Release/libxxtOracle.so: symbol __0fJXMLParserHxmlinitPUcPFPvPCUcUi_vPvP6IxmlsaxcbTDTB: referenced symbol not found
    Compiler is Forte V6.
    We currently successfully use the previous version of the parser on Solaris (oraxml8) with same build settings within our application.
    I am able to build and run the sample demo successfully.
    Any suggestions as to what the problem is and how to get round it?.
    Mike

    All works fine!...
    $ mkdir /tmp/xxx
    $ cat > dllfile.c
    $ cat > dlluser.c
    $ gcc -fPIC -c dllfile.c
    $ gcc -shared -W1,-soname,libdllfile.so.1 -o libdllfile.so dllfile.o
    $ gcc -o prog dlluser.c -ldl
    $ ls -l
    total 56
    -rw-r--r-- 1 xxxxxx users 80 &#1040;&#1087;&#1088; 8 17:04 dllfile.c
    -rw-r--r-- 1 xxxxxx users 908 &#1040;&#1087;&#1088; 8 17:15 dllfile.o
    -rw-r--r-- 1 xxxxxx users 368 &#1040;&#1087;&#1088; 8 17:03 dlluser.c
    -rwxr-xr-x 1 xxxxxx users 5260 &#1040;&#1087;&#1088; 8 17:15 libdllfile.so
    -rwxr-xr-x 1 xxxxxx users 6412 &#1040;&#1087;&#1088; 8 17:16 prog
    $
    $ file *
    dllfile.c:     c program text
    dllfile.o:     ELF 32-bit MSB relocatable SPARC Version 1
    dlluser.c:     c program text
    libdllfile.so:     ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped
    prog:          ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
    $
    $ su
    Password:
    # mkdir -p /root/shared_library/
    # cp libdllfile.so /root/shared_library/
    # exit
    $ ./prog
    With the changes
    library loaded
    Inside function
    $

  • Query not running in report builder 3.0

    hi, i can run my query in mgmt studio (version 2008R2) and within the query designer of report builder 3.0 but it will not run from report builder. i get a generic error message of "an error has occurred during report processing. (rsProcessingAborted)".
    the query uses report parameters and is written with dynamic sql (using a pass-through to oracle). any ideas why the query doesn't execute in report builder ? thanks a bunch,

    Hi KanataPablo,
    According to your description, it seems that you are using linked server to pass value to oracle. Seeing that the query is worked well in Management Studio, you may have the permission to connect to oracle (In this scenario, make sure the users to run the
    query in SSMS and Report Builder are the same user). So this issue can be caused by the user’s permission to connect to report server, the credential of data source and the dynamic query.
    We can add the current user as a Login, then click Properties and navigate to User Mappings page, enable ReportServer and ReportServerTempDB options.
    We can try to type user name and password, and enable “Use as Windows credentials” as the credential used to connect to data source.
    Try with dynamic query:
    ="Select column1, column2 From tableName where ID IN (" + JOIN(Parameters!param1.value, ",") + ")"
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Cannot access Adobe Folio Builder using Indesign (CS6) on Windows 7, error message is 'An error has occured while trying to sign in to the Folio Builder Panel' [IMS_ERROR_FAILURE]

    Cannot access Adobe Folio Builder using Indesign (CS6) on Windows 7, error message is 'An error has occured while trying to sign in to the Folio Builder Panel' [IMS_ERROR_FAILURE]

    Yes, I can open the DPS portal via the Folio Builder panel within InDesign. Although I have created Folios locally within InDesign CS6, the DPS portal is empty and everthing greyed out with just the text "There are no folios to display. Create folios with the folio builder in InDesign".
    If I try to sign in within the Folio Builder panel in InDesign, I get the error message [IMS_ERROR_FAILURE] . In addition I am also not able to access the "Help" menu from within InDesign although I am connected to the internet.
    To complicate it even further, I am working in the UK whereas all internet control (firewall) and licences are handeled by head office in Germany. I am not sure if this is a firwewall issue or not but if the IT department in Germany could get support from Adobe to understand the access requirements, this may help.
    Hopefully using the forum someone out there will know the answer.

  • Please help me fix error " Application descriptor file cannot be parsed "

    I start with Flash - AIR for Android
    When i publish :
    A notice :
    "Error creating files
    Application descriptor file cannot be parsed"
    File XML by Flash created :
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.2">
      <id>com.adobe.example</id>
      <versionNumber>1.0.6</versionNumber>
      <versionLabel>1.0.6</versionLabel>
      <filename>example</filename>
      <description/>
      <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
      <name>example</name>
      <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
      <copyright/>
      <initialWindow>
        <content>example.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
        <autoOrients>false</autoOrients></initialWindow>
      <icon>
        <image36x36>icon/icon36.png</image36x36>
        <image48x48>icon/icon48.png</image48x48>
        <image72x72>icon/icon72.png</image72x72>
      </icon>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
      <android>
        <manifestAdditions>
          <![CDATA[<manifest>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    </manifest>]]>
        </manifestAdditions>
      </android>
    </application>
    I don't pubslish apk ?
    Please hellp me  fix error

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

  • Error:  Due to a lock, query cannot be executed at the moment

    Hi,
    I am getting the following error when executing my query:
    Error:  Due to a lock, query cannot be executed at the moment
    Abort System error in program SAPLRSDRC and form /BIC/ZABC_01
    The query has been running fine for the past few months.
    Can anyone explain why this error occured and what can I do to avoid this?
    Thanks in Advance!!
    Regards,
    Swapna

    Hi Swapna,
    make sure that the BW system (e.g. another user, process, ...) does not have currently access to the data e.g. like maintain data. In this case the BW sets a lock so that the current user gets exclusively access to the table.
    Check the table if there are any locks on it. Call transaction SU53 and check your table for any locks.
    Check this thread, perhaps you will find some more information there:
    https://forums.sdn.sap.com/click.jspa?searchID=3180428&messageID=1088573
    Hope this helps.
    Regards,
    Marco

  • Newbie: Application descriptor cannot be parsed error 100

    Here's my descriptor file:
    <?xml version=1.0" encoding ="UTF-8"?>
    <application xmlns="http://ns.adobe.com/air/application/1.5.1">
        <id>myTest</id>
        <filename>myTest</filename>
        <description>A simple AIR hello world application</description>
        <version>0.1</version>
        <initialWindow>
            <content>myTest.html</content>
            <title>AIR Hello World</title>
            <systemChrome>standard</systemChrome>
            <transparent>false</transparent>
            <visible>true</visible>
            <minimizable>true</minimizable>
            <maximizable>true</maximizable>
            <resizable>true</resizable>
        </initialWindow>
    </application>
    and here's the error I'm getting
    /Volumes/My Book/Air Applications/myTest.html: error 100: Application descriptor cannot be parsed
    Can anyone help?

    Stupid error.  Forgot a quote in the first line.  Fixed it, but I have another problem now that I'll ask in another thread.

  • Text File opened in Wordpad cannot be parsed on OBPM 10GR3

    Hi all,
    Text File opened in Wordpad cannot be parsed on OBPM 10GR3
    Why is that?
    I use the following code to parse a file:-
    textFile = TextFile();
    textFile.open(name : "C:\testFile.txt");
    logMessage("---Does file exist?--> " + textFile.exists);
    foreach (line in textFile.lines) {
    logMessage("-- The LINE is-->" + line);
    pinBlockProcessing.linesCount = pinBlockProcessing.linesCount + 1;
    pinBlockProcessing.deviceIdentifierArray[] = line;
    textFile.close();

    Hi all,
    I also used other two methods to parse such a file which can be opened in Wordpad but not in Notepad.
    1) I used Java.Util.Scanner
    2) I also created and compiled a program/package/class which gets a file and parses it using Java.Util.Scanner using Java in Eclipse.
    I created a JAR out of it and tried to use this JAR in my process by introspecting it and then passing the file to be parsed to the methods in this JAR file.
    But this did not work either. Although the program does work in plain Java in Eclipse. It compiles and parses a a file which can be opened in Wordpad but not in Notepad.
    My program for both these methods was :-
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.util.Scanner;
    public class Test{
    public static void main(String args[]) throws IOException {
    FileReader fin = new FileReader("./testFile.txt");
    Scanner src = new Scanner(fin);
    src.useDelimiter("\n");
    while (src.hasNext()) {
    System.out.println(src.next());
    fin.close();
    This does not work either.
    All programs and methods work when a text file can be opened in NotePad.
    What could be possible solution in OBPM 10GR3?
    It is something to do with Carriage Return and generating a file in UNIX which when opened in Notepad shows one straight horizontal line and when opened in Wordpad shows vertical lines.

  • The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5

    The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5
    This is happening for most of the pupils and staff at our school and they are unable to complete their work.
    This also happens on a fresh copy of windows and CS5.5 without any updates and also with all latest updates.
    I have tried it on 32-bit and 64-bit CS5, Windows, Air and Java with the same error every time.
    There are a small minority of users where this works fine for them with no issue.
    I have tried re-setting user profiles.
    I have tried a local admin and domain admin account with the same issue
    I have noticed however that if the file is moved to the shared area it will compile. If it is on their documents area it will not compile. The users have full control in both locations. This is fine for staff but we are unable to give full control or modify access to the shared area for the pupil's
    I have been through the online support section and it directed me to phone Adobe Customer care who informed me that all support has been discontinued for CS5, CS5.5 and CS6 and they will only support creative cloud.
    Any ideas what to try next? There is no other information about this error and I cannot work out what is causing it.

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

  • Spell checker error: null cannot be parsed to a squiggly dictionary

    I organized a spell-checker with help Squiggly in my app ( http://labs.adobe.com/technologies/squiggly/).
    _newdict.addEventListener(Event.COMPLETE, handleLoadComplete);
    _newdict.load("dictionaries/en_EN/en_EN.aff", "dictionaries/en_EN/en_EN.dic");
    Everything works fine when the dictionary files is in the same folder as the app. But the dictionary have large size (over 5MB). Therefore load it on user demand. Files can not save the program folder, but only application Storage Directory.
    However, when initializing the dictionary there is an error: null cannot be parsed to a squiggly dictionary. I've tried both ways: file1.nativePath and file1.url, it is still the error.
    var file1:File = File.applicationStorageDirectory.resolvePath("dictionaries/en_EN/en_EN.aff");
    var file2:File = File.applicationStorageDirectory.resolvePath("dictionaries/en_EN/en_EN.dic");
    if (!file1.exists || !file2.exists){
        //download files from the server
    } else {
        _newdict.addEventListener(Event.COMPLETE, handleLoadComplete);
        _newdict.load(file1.nativePath,file2.nativePath);
       //_newdict.load(file1.url,file2.url);
    Tell me how to solve the issue, please?

    Subhranshu,
    Remove the CO extension and check whether it still throws the same error, or it throws the error when u extend the CO.
    Regards,
    Gyan

  • Reset/change password error - cannot log in to builder - HELP!

    I'm encountering the same problem I described some time ago here: Reset/change password error - cannot log in to builder
    Briefly, the builder tells me I must change my password. When I attempt to do so, the password change page displays a null username, and tells me that my existing password is invalid. The same password failure occurs using the new password emailed to me by the "Rest password" function.
    I've cleared my browser cache, closed the browser, rebooted my client (WinXP), to no avail.
    Anyone able to help?
    Thanks
    jd

    Update:
    Workaround: log in using a different client machine.
    Scary.
    It looks the same problem reported, without response, here: Apex.oracle.com SaaS Login - Must Change Password.
    jd

Maybe you are looking for

  • Print quality settings

    Hi, when I print from my ipad or ePrint, I cannot control the print quality settings. I want them to be only black and draft quality, which I can manually apply and set as default when I print from my Mac. How do I get that setting to also apply for

  • Why does InDesign freeze when I open it and run slowly?

    I've been having problems with InDesign ever since I got CS5, and it's at the point where I can't even do simple projects. Every time I open InDesign, it freezes. I can't click anything in the program and it won't even minimize or close. The only way

  • WARNING: inbound connection timed out (ORA-3136)

    While applying the patch i got the below error and database went down  : There are now 7638 jobs remaining (current phase=A8):     8 running, 1537 ready to run and 6093 waiting. Completed: file bencwbutils.pkb on worker  1 for product ben username BE

  • Reg select query

    Hi Guys, I got a problem with select query...could you polease help me out...plz check the second select query statement when i open tstcp table i gave Ztable and then when I exceute i am able to get the list when i do it programatically it is not wo

  • Plot graph -y values versus timestamp stored in txt files

    Dear all, i have a set of measurement results that i saved in text file. First and second column are timestamp values while third and fourth values are results from my two sensors. Mayi know can anyhow help to extract these results and plot them onto