Typing SQL in an SQL field in CR always generates error message

Hello,
I am working with Crystal Reports 2008 (CR Developer, Version 12.1.0.892) Product Type: Full. This software is locally installed on my working computer, running on a Windows 7 system. The database I use is Progress version 10.2B01. I connect through an ODBC connection to the database.
As a software developer, developing reports in CR is not my primary task, yet I have done some good work up to this date in Crystal. I have only one major problem:
I can not create any SQL fields in the report, e.g. despite how I write the expression in the SQL language, it would not compile. The following error message appears: (I couldn't copy the error dialog into this message)
Error in compiling SQL Expression:
Database Connector Error: 'DAO Error Code: 0x03
Source: DAO.Database
Description: Syntaxerror in queryexpression 'SELECT
   Customer.'Customer Name".'.
To make it as easy and basic as possible, I have tried the above excercise using C:\Program Files\Business Objects\Crystal Reports 12.0\Samples\En\DB\xtreme.mdb database. The SQL just won't work! Not even the most basic SELECT. I have really tried and searched Crystal Reports Online Help. A college of mine gets the same error message.
I would be greatful if someone could give me a hint, what could be wrong. You may post me a simple SQL query which works together with the xtreme.mdb database. (Drawing fields with the mouse onto the report creates nice output - but I really want to accomplish output by creating and inserting an SQL field using SQL!).
Greetings from Karlstad in Sweden!  Ivo K. (@inport.com)

Hi
Try to see what all tables are accessed by data source. and see if there is any lock on that..
If some other job is accessing that table - then there might be lock on that which is causing failure..
1) Try looking at ST22 dump also..
2) Try to do RSA3 in R/3 and if see if its is fetching any records or not..
Hoep it helps
--SA

Similar Messages

  • CJS-00084  SQL Statement or Script failed. Error Message: Executable

    Hello
    Hello
    I am facing one problem at the time of installing 4.7 IDES can you please guide me on that. Do I need to reinstall system ageing or it can be sort it out in this stage.
    ERROR AT THE TIME OF INSTALLING SAP 4.7 IDES ARE
    1. CJS-00084  SQL Statement or Script failed. Error Message: Executable
        C:\oracle\ora92/bin/sqlplus.exe returns 3.
    2. FJS-00012  Error when executing script.
    Complete error log :--
    INFO 2000-06-15 20:56:57
    Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
    INFO 2000-06-15 20:56:57
    Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
    INFO 2000-06-15 20:56:57
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
    INFO 2000-06-15 20:56:58
    Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 20:57:00
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 20:57:00
    FJS-00012  Error when executing script.
    INFO 2000-06-15 20:56:57
    Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
    INFO 2000-06-15 20:56:57
    Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
    INFO 2000-06-15 20:56:57
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
    INFO 2000-06-15 20:56:58
    See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
    INFO 2000-06-15 20:56:58
    'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
    INFO 2000-06-15 20:56:58
    Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
    INFO 2000-06-15 20:56:58
    Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 20:56:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 20:57:00
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 20:57:00
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:28
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:28
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:29
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:29
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:37
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:37
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:37
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:37
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:04:51
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:04:51
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:04:51
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:04:51
    FJS-00012  Error when executing script.
    WARNING 2000-06-15 21:07:00
    Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (276), with parameter (C:\oracle\ora92/bin/sqlplus.exe /NOLOG @ora_scr_tmp.sql).
    ERROR 2000-06-15 21:07:00
    MDB-06029  Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
    ERROR 2000-06-15 21:07:00
    MDB-06030  A call to the system library failed. System error message: [No such file or directory].
    ERROR 2000-06-15 21:07:00
    MUT-02011  Internal error: A call to syslib failed. System error message: No such file or directory.
    ERROR 2000-06-15 21:07:00
    FJS-00012  Error when executing script.
    WARNING 2000-06-15 21:11:52
    Error 1326 (Logon failure: unknown user name or bad password.
    ) in execution of a 'LogonUser' function, line (537), with parameter (SAPTRANSHOST\godadm).
    ERROR 2000-06-15 21:11:52
    MDB-06029  Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
    ERROR 2000-06-15 21:11:52
    MDB-06030  A call to the system library failed. System error message: [Unknown error].
    ERROR 2000-06-15 21:11:52
    MUT-02011  Internal error: A call to syslib failed. System error message: Unknown error.
    ERROR 2000-06-15 21:11:52
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:11:53
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:11:54
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:11:54
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:11:54
    FJS-00012  Error when executing script.
    INFO 2000-06-15 21:13:42
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-15 21:13:42
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-15 21:13:42
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-15 21:13:42
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:00:06
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:00:07
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:00:07
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:00:07
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:08:16
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:08:16
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:08:18
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:08:18
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:09:48
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:09:49
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:09:49
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:09:49
    FJS-00012  Error when executing script.
    INFO 2000-06-16 02:14:33
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2000-06-16 02:14:33
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2000-06-16 02:14:33
    CJS-00084  SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
    ERROR 2000-06-16 02:14:33
    FJS-00012  Error when executing script.

    > WARNING 2000-06-15 21:07:00
    > Error 2 (The system cannot find the file specified.
    > ) in execution of a 'CreateProcess' function, line
    > (276), with parameter
    > (C:\oracle\ora92/bin/sqlplus.exe /NOLOG
    > @ora_scr_tmp.sql).
    > ERROR 2000-06-15 21:07:00
    > MDB-06029  Caught exception while trying to start
    > script executing application:
    > [C:\oracle\ora92/bin/sqlplus.exe].
    > ERROR 2000-06-15 21:07:00
    > MDB-06030  A call to the system library failed.
    > System error message: [No such file or directory].
    > ERROR 2000-06-15 21:07:00
    > MUT-02011  Internal error: A call to syslib failed.
    > System error message: No such file or directory.
    > ERROR 2000-06-15 21:07:00
    > FJS-00012  Error when executing script.
    > WARNING 2000-06-15 21:11:52
    > Error 1326 (Logon failure: unknown user name or bad
    > password.
    > ) in execution of a 'LogonUser' function, line (537),
    > with parameter (SAPTRANSHOST\godadm).
    > ERROR 2000-06-15 21:11:52
    > MDB-06029  Caught exception while trying to start
    > script executing application:
    > [C:\oracle\ora92/bin/sqlplus.exe].
    is that file there (sqlplus)?
    as which user are you installing?
    Markus

  • I just downloaded an iphoto update and when I tried to share my photos was asked for email and password.  I must have typed in the info wrong because I keep getting an error message.   I don't see how to change the info to the correct mistake..

    I just downloaded an iphoto update and when I tried to share my photos was asked for email and password.  I must have typed in the info wrong because I keep getting an error message.   I don't see how to change the info to the correct mistake..

    I too added 2nd apple ID when I tried to get Free app from apple store just to get to NONE on the credit card needed. It said it sent confirmation email to my new apple ID email that I have to confirm. Problem is I can not get to the new apple ID email account.  On my ipad it logs into my original email account and I see no where to log into another email account.  If I go to my laptop, the new apple ID I created does not let me log into email where apple said it was sent to.  It did not send to back up email account either.
    Can I log into 2 email accounts on my ipad where it says mail at bottom?
    Can I have 2 apple ids?
    If I created a 2nd apple id to get to NONE on credit card needed, can't I log into it also on another laptop in gmail?
    (won't let me)
    If I used my original apple id I created when I got my new ipad, it will not let me get free app without credit card, there is no where it says NONE needed. I am too new to apple to start with credit cards etc until I get use to it.

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • SQL Server won't start - unhelpful error message in log

    I am running SQL Server 2008 on Windows Server 2008.  SQL server had been running using a netowrk account, which i then changed over to a dedicated Active Directory account, and I tried restarting the server.  It failed to restart, and produces a number of identical error messages in the event log.  The error message is below:
    initerrlog: Could not open error log file ''. Operating system error = 3(failed to retrieve text for this error.  Reason: 15105)
    I've searched the web and have not found a solution.  It appears to be a permissions problem (the "Reason: 15105" indicates such), but the permissions on all the data and log folders are correct.  The fact that it fails to list the error log file is the must frustrating of all since it gives me no indication of where to look for the problem.
    If I try switching the the SQL Server user back to the network account it gives the following error:
    WMI Provider Error [call to WMI Provider returned error code: 0x800742a2]

    Hi Guys,
    The solution of Tibork is the working one for me.
    What I did to get this error:
    I wanted to move my TempDB to another volume (e). I executed following query:
    USE master
    GO
    ALTER DATABASE tempdb
    MODIFY FILE (NAME = tempdb, FILENAME = 'E:\tempdb.mdf')
    GO
    ALTER DATABASE tempdb
    MODIFY FILE (NAME = templog, FILENAME = 'E:\templog.ldf')
    GO
    Stopped the SQL Server instance and moved the TempDB files from the original DATA folder.
    After that, when I restarted the server, it gave me the 1814 error. I tried to undo my actions with no luck.
    The working solution for the problem was indeed access rights. I know its not best practice, but since we are in a protected environment I choose to remedy the problem with Tibork's solution:
    Start > Control Panel > Adminsitrative Tools > Services
    Find the SQL Instance
    Right click and choose Properties
    Find the logon tab
    I changed the logon to "Local System Account"
    Worked like a charm. Thanks for the hint.

  • SQL*PLUS WINDOW DOESNT GIVE AN ERROR MESSAGE.

    HI,
    i FOUND OUT THAT IF I HAD AN ERROR IN MY SQL SCRIPT, THE WINDOW WILL DISAPPEAR AND LOST EVERYTHING THAT I HAVE DONE. IT DOESNT GIVE ME AN ERROR MESSAGE. IM HERE IN CHAP05, BUILDING A RELATIONAL SCHEMA OF ORACLE DATABASE 10G EXPRESS EDITION FOR LINUX. WHAT PARAMETER AM I MISSING IN MY SYSTEM? PLS. HELP ME. THANKS.
    LEN

    Hi,
    Most likely you have to adjust WHENEVER SQLERROR and (or) WHENEVER OSERROR settings.
    Consider an example below:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:55:29 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> whenever sqlerror continue
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    SQL> whenever sqlerror exit
    SQL>
    SQL> exec raise_application_error(-20000, 'Error')
    BEGIN raise_application_error(-20000, 'Error'); END;
    ERROR at line 1:
    ORA-20000: Error
    ORA-06512: at line 1
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>As you can see, with WHENEVER SQLERROR set to EXIT, SQL*Plus session terminates as it encounters any program error.
    Similarly, for OSERROR setting:
    C:\> sqlplus /NOLOG
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Nov 1 02:57:08 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn max
    Enter password:
    Connected.
    SQL>
    SQL> start C:\non_existent_file
    SP2-0310: unable to open file "C:\non_existent_file.sql"
    SQL>
    SQL> whenever oserror exit
    SQL>
    SQL> start C:\non_existent_file
    O/S Message: No such file or directory
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>Hope this helps.

  • Error message disble the Fields in Selection Screen

    Hi,
    In my Report i am validating some fields as mandatory.
    If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
    But after displaying the errro message my selection screen is input disable except the mandatory field.
    I want all the fields should be input enable.
    Sample code for Error message,
    MESSAGE E018 WITH 'Enter Plant'.
    Please provide the code for this.

    Performing checks on SELECTION-SCREEN
    - if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
    - if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK  <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
    So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
    Use Error message, Warning and Information don't break the flow of the report.
    Regards,
    Raymond

  • SQL field (not large enough) - Create Report Dialog - User Defined Reports

    When creating a user defined report it would be good to have the sql field the query is entered into bigger. The tiny size is awkward for large queries.

    When you increase the window size, we increase horizontally but not vertically. I will log an enhancement request to see if we can get it longer.
    -- Sharon

  • Email Attachment SQL field giving error without attachment...

    Hi All,
    I'm running Apex 4.1.0.X on 10g and trying to solve the following problem with little success.
    After reviewing the OBE on Viewing and Downloading BLOBS within Apex 3.1 from here -http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm...
    I was able to create a simple form to send an email with an attachment as well as a simple report from which to view the stored email messages send and the attachments associated with them. All good, all working just fine. Problem comes about when I try to send a message without an attachment. When I do this, I get the following error:
    ~~~
    ORA-20022: Null value supplied for parameter p_attachment.
    ~~~
    I have two process...one to store the message content in the table (Process Row of EMAIL_NOTIFICATIONS with source type as Automatic Row Processing DML) and a second to send the email which is just the canned mailer in Apex. I have defined the Attachment SQL field as follows:
    select attachment, att_file_name, att_mime_type from email_notifications where subject = '&P88_SUBJECT.' and body = '&P88_BODY.' and sender = '&P88_SENDER.'...There is no primary key on the table as there is a high likelihood that duplicate messages will be sent....so I am attempting to use the combination of three fields together to make sure that the correct BLOB is attached to the outgoing email....with no where condition...the wrong BLOBS were being attached....tried using ROWID as a unique record but it kept coming back null and no BLOBS could be attached.
    Anyway....hope I haven't made the issue too unclear.
    Thanks for any help. Mike
    Quick Edit...Just want to reiterate...as strange as the above "Attachment SQL" used in the canned Email Process seems...in testing it does seem to do the job....only snag is when no attachment is added....in case the error is presented and no record was saved to the table or sent in email.....My hope would be some crafty way in which to NOT use attachment SQL when there is no attachment.
    Thanks!
    Edited by: Twinkle Berry Sunshine on Jun 26, 2012 9:56 AM

    Yes...you can attach BLOBS to emails...there is a MIME_TYPE attribute which is automatically inserted with the BLOB...I have this successfully working emails with attachments stored as BLOBS....so long as: 1.) There "MUST" be an attachment 2.) I use the syntax you said should work... where subject = '&P88_SUBJECT.' The documentation talks of using pl/sql method which I'll now try instead of what I was using:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_mail.htm#CHDHCEGF

  • Error message in PL/SQL

    Hi,
    I've created a PL/SQL process source (on load - before header) which counts the records of a table.
    If the number of records is 1 or less the values of the table are to be inserted in the text fields of my HTML form. If there is more than one record in the table I'd like to display an error message that the text fields can't be edited. How can I realize this error message in PL/SQL?
    Thanks in advance.
    Mark

    1.) Create a hidden item on your page.
    2.) In your Page Rendering PL/SQL Process add logic which assigns 'EDIT' or 'NO_EDIT' to the hidden item.
    3.) Create a "Message" HTML region which conditionally displays based of the value of your hidden item being 'NO_EDIT'.
    4.) Make your edit field conditionally Read Only based on the value of your hidden item being 'NO_EDIT'.
    There may be an easier way but I got this to work
    Mike

  • SQL*Loader problem - not efficient, parsing error for big xml files

    Hi Experts,
    First of all, I would like to store xml files in object relation way. Therefore I created a schema and a table for it (see above).
    I wants to propagate it (by using generated xml files), hence I created a control file for sql loader (see above).
    I have two problems for it.
    1, It takes a lot of time. It means I can upload a ~80MB file in 2 hours and a half.
    2, At bigger files, I got the following error messages (OCI-31011: XML parsing failed OCI-19202: Error occurred in XML processing LPX-00243: element attribute value must be enclosed in quotes). It is quite interesting because my xml file is generated and I could generated and uploaded the first and second half of the file.
    Can you help me to solve these problems?
    Thanks,
    Adam
    Control file
    UNRECOVERABLE
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    APPEND
    INTO TABLE coll_xml_objrel
    XMLTYPE(xml)
    FIELDS
    ident constant 2
    ,file_name filler char(100)
    ,xml LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    generated1000x10000.xml
    Sql Loader command
    sqlldr.exe username/password@//localhost:1521/SID control='loader.ctl' log='loadr.log' direct=true
    Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/shema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/shema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>
    Create table
    create table coll_xml_objrel
    ident Number(20) primary key,
    xml xmltype)
    Xmltype column xml
    store as object relational
    xmlschema "http://www.something.com/schema/simple_searches.xsd"
    Element "searches";

    Hi Odie_63,
    Thanks for your answer.
    I will post this question in the XML DB forum too (edit: I realized that you have done it. Thanks for it).
    1, Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2, see above
    3, I have registered my schema with using dbms_xmlschema.registerSchema function.
    Cheers,
    Adam
    XML generator:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.xml.stream.XMLOutputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamWriter;
    public class mainGenerator {
        public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
            // TODO Auto-generated method stub
            final long numberOfSearches = 500;
            final long numberOfResults = 10000;
            XMLOutputFactory xof = XMLOutputFactory.newFactory();
            XMLStreamWriter writer = xof.createXMLStreamWriter(new FileOutputStream("C:\\Working\\generated500x10000.xml"));
            writer.writeStartDocument();
            writer.writeStartElement("tns","searches", "http://www.something.com/schema/simple_searches");
            writer.writeNamespace("tns", "http://www.something.com/schema/simple_searches");
            for (long i = 0; i < numberOfSearches; i++){
                Long help = new Long(i);
                writer.writeStartElement("tns","search", "http://www.something.com/schema/simple_searches);
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "type", "value1");
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", help.toString());
                writer.writeStartElement("tns","results", "http://www.something.com/schema/simple_searches");
                for (long j = 0; j < numberOfResults; j++){
                    writer.writeStartElement("tns","result", "http://www.something.com/schema/simple_searches");
                    Long helper = new Long(i*numberOfResults+j);
                    writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", helper.toString());
                    writer.writeEndElement();
                writer.writeEndElement();
                writer.writeEndElement();
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.close();
    registerSchema:
    begin
    dbms_xmlschema.registerSchema(
    'http://www.something.com/schema/simple_searches',
    '<?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/schema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/schema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end

  • Error Message Using DB.Execute on SQL Server - Must use dbSeeChanges

    Uh, found a post indicating that dbFailOnError and dbSeeChanges are enumerated and that to designate them both, just add them together, but its not working and I'm still getting the ever popular 'You must use the dbSeeChanges option with OpenRecordset when
    accessing a SQL Server table that has an IDENTITY column.'.
    Public Function deleteTrailerActivityHeaderAndChildren(lngTrailerActivityHeaderId As Long)
    On Error GoTo Err_deleteTrailerActivityHeaderAndChildren
        Dim wrksp As DAO.Workspace
        Dim db As DAO.Database
        Dim strDeleteChild As String
        Dim strDeleteParent As String
        Dim strComment As String
        Dim errLoop As Error
        strDeleteChild = "DELETE * FROM tblTrailerUtilizationDetails WHERE lngTrailerActivityHeaderId = " & lngTrailerActivityHeaderId
        strDeleteParent = "DELETE * FROM tblTrailerActivityHeaders WHERE lngTrailerActivityHeader = " & lngTrailerActivityHeaderId
        Set wrksp = DBEngine.Workspaces(0)
        Set db = CurrentDb
        wrksp.BeginTrans
        On Error GoTo Err_dbExecute
            strComment = "Delete child records"
            db.Execute strDeleteChild, dbFailOnError + dbSeeChanges
            If DBEngine.Errors.Count = 0 Then
                strComment = "Delete parent"
                db.Execute strDeleteParent, dbFailOnError + dbSeeChanges
                    If DBEngine.Errors.Count = 0 Then
                        strComment = "Commit changes"
                        wrksp.CommitTrans
                    Else
                        strComment = "Rollback changes to tblTrailerActivityHeaders"
                        wrksp.Rollback
                        MsgBox "Record cannot be deleted. Unable to delete the Trailer Utilization Detail records.", vbCritical
                    End If
            Else
                strComment = "Rollback changes to tblTrailerUtilizationDetails"
                wrksp.Rollback
                MsgBox "Record cannot be deleted. Unable to delete the Trailer Utilization Detail records.", vbCritical
            End If
        Debug.Print DBEngine.Errors(0).Description
        On Error GoTo Err_deleteTrailerActivityHeaderAndChildren
        Set db = Nothing
        Set wrksp = Nothing
    Exit_deleteTrailerActivityHeaderAndChildren:
        Exit Function
    Err_deleteTrailerActivityHeaderAndChildren:
        MsgBox getDefaultErrorMessage("Module - Manage TrailerUtilization Details", "deleteTrailerActivityHeaderAndChildren", Err.Number, Err.Description), vbCritical
        Resume Exit_deleteTrailerActivityHeaderAndChildren
    Err_dbExecute:
        If DBEngine.Errors.Count > 0 Then
            For Each errLoop In DBEngine.Errors
                Debug.Print getDefaultErrorMessage("Module - ManageTrailerUtilizationDetails", "deleteTrailerActivityHeaderAndChildren.Err_dbExecute", errLoop.Number, , "(" & strComment & ") " &
    errLoop.Description)
            Next errLoop
        End If
        Resume Next
    End Function
    David H

    Hi aychekay
    Try following:
    - Add a TimeStamp Datatype Column to the table on the SQL Server
    - Rebind the tables into your database
    - Try your code again
    You never should run an Access Application against an SQL Server in readwrite mode without having TimeStamp datatype columns in your tables. Already for performance reasons this is a must and also, if you have datetime datatype fields on
    the SQL Server that are not exclusively maintained by Access, as the SQL Server may add miliseconds when writing the data. Same for Single precision datatypes, that may be rounded until you get the result back from the server. If you have a Timestamp datatype
    column in your table then Access is sure the record wasn't changed in the meantime and will not recheck the received record again against the database for changes in one of it's fields.
    Henry
    <aychekay> wrote in message
    news:[email protected]...
    This problem didn't go away yet. I'm having it too in Access 2007 (SP2 not installed yet) with a SQL Server 2008 Express backend. I'm sure my code is not reference any form controls or other object references. Access just complains if you try to run an Execute
    with "DELETE" on a table that has an identity column. I've resorted to deleting using a DAO recordset and loop instead for now.
    I actually started out using MySQL with MySQL's ODBC drivers and my statement worked fine. Only when I migrated to SQL Server did I start to have this problem.
    Just sayin...

  • Error message using SQL import and Export Wizard with Excel spread sheet

    I am trying to import an Excel spreadsheet using the Import export wizard that is provided with SQL 2014.  
    Everything seems to set up OK but then when I go to do the transfer "error message" comes up saying:
    External Table is not in the expected format.(Microsoft Jet Database Engine).   
    This is a spreadsheet and there is no database, that is why I want to import it into a database!!  So the reference to JET is a tad disappointing.
    So why the error and how do I fix the problem?
    As there are over 100 variables in the spread sheet rows, it would be great to have this automatically create the database and populate the fields.
    I am using SQL 2014  Express and Office Excel 2013.
    Thank you in  advance for taking the time to read this, and hopefully sheading some light on the issue.

    Hi AWlcurrent,
    When import a .xlsx file to SQL Server using SQL Server Import and Export Wizard, you see a “External Table is not in the expected format.(Microsoft Jet Database Engine).” error message. This error message seems that the Microsoft JET Database Engine is
    unable to handle something that is contained in the file.
    So please make sure there is no unsupported content in the Excel file. Alternatively, we can use ‘Microsoft Excel’ as the Data Source, then Select ‘Microsoft Excel 2007’ as the Excel version to import the excel file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Error Message - ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Trunc

    This is driving me nuts!
    I am getting this error from OWB during a mapping process.
    I have checked the input data and it looks fine.
    The run time audit browser just lists all of the steps but does not make it clear which one failed. Is it the last one which is shown (does not have HIDE as selection link.)
    I also tried to determine which row was causing the problem and followed the instructions at http://www.nicholasgoodman.com/bt/blog/2005/07/, but no row_id was recorded in the views. In actual fact there wasn't very much audit info other than that the mapping ran and was complete (even though it failed).
    In the error message section it has, in order
    Map Step - blank
    Rowkey - 35204435256
    Severity - X
    Error Message - ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
    Object Name - N/A
    Object Column - *
    From the PL/SQL error I thought it may be trying to insert into a data field that was too small, but all of the columns that are used are full of data of length shorter than all of the target tables.
    I have even started running the cursors in the generated PLSQL but I don't get the error by doing this.
    Thanks in advance for any tips at all.

    Thanks for the response.
    I managed to work it out and it had to do with the selection criteria of one of the filters.
    For anyone else facing this error, check to see if any of the rows being inserted has the same key/identifier as some existing in the target table. If so add an extra condition to the where clause.
    This worked for me.

Maybe you are looking for

  • Why does Pages 08 3.03 take so long to open in OS X 10.93

    Why does Pages 08 3.03 take so long to open in OS X 10.93

  • How to realtime monitor changes in the filesystem?

    Does anyone know of a way to realtime monitor for changes in the (windows) filesystem using Java. (file creation in particular). I've done this in VB and C++ using "findfirstchangenotification" which I think is part of the windows API. I'm attempting

  • MIRO Credit Memo

    How do I delete a credit memo created through MIRO? I am not able to delete it through MR8M. Or how I clear it, as I need to pay the vendor but because of this credit memo I am not able to pay as it says debit balance exists for this vendor Also need

  • Where can I get a sbo users manual in english?

    Hello I am from Spain but I have got a client who wants a sbo users manual in english. Thanks in advance.

  • Dynamic SVG Chart Pie query

    Hi, I am trying to build a page that displays an SVG pie chart with the following query: SELECT '', "&P4_SHOW.", count(*) FROM "MY_TABLE" GROUP BY null, "&P4_SHOW." ORDER BY "&P4_SHOW." where P4_SHOW is a list of columns of the table 'MY_TABLE'. Howe