[nQSError: 42015] Cannot function ship the following expression: Evaluate(

Hi,
I am getting the following error when using evaluate function
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( TO_CHAR(%1),D907.c2) . (HY000)
The syntax I had used in the column expression was
EVALUATE('TO_CHAR(%1)' AS CHAR,"SA table"."Prior Quarter QTD Dollars")
I am not sure why this is error is occurring because I have successfully used this syntax before. This is an example syntax I had used in another report and it is working well even now
CAST(EVALUATE('TO_CHAR(%1,%2)' AS CHAR,ROUND(("table1"."QTD Actuals")/1000,0) ,'$9,999,999,999,999,990') AS CHAR)

I had to use Case and CAST functions to achieve the same logic. I have raised a TAR with Oracle for this issue. Still waiting to hear from them. Using Case and CAST achieved the result but since there is a bug in 10.1.3.4.0 where download will fail if the query generated is more than 64kb, we are upgrading to 10.1.3.4.1.

Similar Messages

  • Cannot function ship the following expression: Evaluate

    hello
    i used a db function in rpd
    EVALUATE('X.F_REPLACE_NEG_VAL_TO_ZERO(%1)' AS DOUBLE PRECISION , "Stock"."Fact - Inventory"."Vol")
    the functions purpose is to put to zero the measure in case its <0
    when i use this measure in answers it works fine; however when i add a measure from another facts table into the report i get the following error:
    "Cannot function ship the following expression: Evaluate( X.F_REPLACE_NEG_VAL_TO_ZERO(%1),D902.c6) "
    this is a multifacts area, the dimensions used in the report are common for both facts tables (report runs fine with either measures from facts table 1 or from facts table 2); only error is when i put both measures together;
    i went through many threads here but could not find any solution that could be applied to above
    id appreciate any suggestions
    thanks
    rgds

    hello,
    i ran some more tests and apparently this is not related to this particular function i.e. even if i use
    evaluate('to_number'(1%)','column') it still throws an error
    can evaluate be used in multifacts areas?

  • Evaluate throwing nQSError 42015 cannot function ship the expression

    Working in 11.1.1.6.6 on Windows 32-bit.
    Here's the formula for the one and only column on the analysis: evaluate('greatest(%1, %2)' as double, 12, 14)
    nqsconfig.ini shows EVALUATE_SUPPORT_LEVEL = 2;
    Here are the results:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( greatest(%1, %2),12, 14) . (HY000)
    SQL Issued: SELECT 0 s_0, evaluate('greatest(%1, %2)' as double, 12, 14) s_1 FROM "A - Sample Sales" FETCH FIRST 65001 ROWS ONLY
    Can someone with an 11.1.1.6.6 system take about 30 seconds to create a column with that formula and tell me if it works for you?
    Thanks!

    Looks like its bug related, bug 13431823

  • Need calculation sum for the following expression

    Hi All,
    Please help me in doing SUM to the following expression.
    How to SUM the following expression. Please reply me ASPA.
    =iif(Fields!AdhocHourCharge.Value*Fields!ChargedAdhocRate.Value+Fields!RoutineHoursCharge.Value*Fields!ChargedRoutineRate.Value<>0.00,(Fields!AdhocHourCharge.Value*Fields!ChargedAdhocRate.Value+Fields!RoutineHoursCharge.Value*Fields!ChargedRoutineRate.Value),0)

    Hi Rasul,
    if all fields are having numerical data than use below expression:
    =Sum(iif((Fields!AdhocHourCharge.Value*Fields!ChargedAdhocRate.Value+Fields!RoutineHoursCharge.Value*Fields!ChargedRoutineRate.Value)<>0.00,(Fields!AdhocHourCharge.Value*Fields!ChargedAdhocRate.Value+Fields!RoutineHoursCharge.Value*Fields!ChargedRoutineRate.Value),0))
    otherwise you may have some problem with your field's datatype on the RDL as any field is in string format rather than numerical format so for this you need to use CINT function to convert them in numerical format as:
    =Sum(iif((Cint(Fields!AdhocHourCharge.Value)*Cint(Fields!ChargedAdhocRate.Value)+Cint(Fields!RoutineHoursCharge.Value)*Cint(Fields!ChargedRoutineRate.Value))<>0.00,(Cint(Fields!AdhocHourCharge.Value)*Cint(Fields!ChargedAdhocRate.Value)+Cint(Fields!RoutineHoursCharge.Value)*Cint(Fields!ChargedRoutineRate.Value)),0))
    I hope it will work.
    Live life with joy and happiness! Avanish

  • [svn:bz-trunk] 20970: Add or enhance include functionality for the following configuration elements :

    Revision: 20970
    Revision: 20970
    Author:   [email protected]
    Date:     2011-03-25 14:26:37 -0700 (Fri, 25 Mar 2011)
    Log Message:
    Add or enhance include functionality for the following configuration elements:
    - Adapters
    - Channel definitions
    - Security Constraints
    - Destinations
    - Services
    The following elements are now allowed and can specify either the "file-path" attribute or the "directory-path" attribute.
    The "directory-path" attribute references a directory of XML files (names ending in .xml) that will be treated as a sequence of include files.
    Added unit tests for all the above.
    Fixed a bug in the unit test code that was terminating the verification early.
    Add the confirmation of the security constraints at the top level.
    Updated the example config file with usage examples.
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfigurationParser.java
        blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/config/SecuritySettings.java
        blazeds/trunk/modules/core/src/flex/messaging/config/ServerConfigurationParser.java
        blazeds/trunk/modules/core/test/src/flex/messaging/config/ConfigurationConfirmation.java
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1c.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_destination_include .xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1f_service_include.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1c.java
    Added Paths:
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_adapter_include.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_channel_include.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1e_constraint_include. xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1i.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/1j.xml
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1i.java
        blazeds/trunk/modules/core/test/src/flex/messaging/config/services/Confirm1j.java

    SDN is the place to discuss technical problems..
    Please avoid such weird post.
    G@urav.

  • Who can tell me what are the functions of the following subdirectories?

    Who can tell me what are the functions of the following subdirectories? How are they classified?
    oracle@hostp ~$ cd $ORACLE_HOME
    oracle@hostp db_1$ ls
    {color:#0000ff}
    assistants demo jdbc network oui slax
    bin diagnostics jdk nls owm sqlj
    cdata has jlib oc4j perl sqlnet.log
    cfgtoollogs hostp_db10g jre odbc plsql sqlplus
    clone hostp_rcatalog ldap olap precomp srvm
    config hs lib OPatch racg sysman
    crs install log opmn rdbms uix
    css {color:#000000}install.platform{color} md oracore relnotes wwg
    ctx inventory mesg oraInst.loc {color:#ff6600}root.sh{color} xdk
    dbs javavm mgw {color:#ff6600}ord root.sh.old{color}
    {color}
    dbs javavm mgw ord root.sh.old

    Hi,
    Here we go:
    - assistants:      configuration Assistants
    - bin:      binaries for all products
    - ctx:      interMedia Text cartridge
    - dbs :     contain initsid.ora, lksid (initiation files, password files,etc)
    - instal:l      install related files
    - lib:      Oracle product libraries
    - jlib:      Java classes
    - md:      Spatial cartridge
    - mlx      Xerox: Stemmer (for interMedia Text cartridge)
    - network:      Net8
    - nlsrtl :      NLS run-time loadable data
    - ocommon:      common files for all products
    - odg:      data gatherer
    - opsm:      Parallel Server Manager Components
    - oracore:      core libraries
    - ord:      data cartridges
    - otrace:      Oracle TRACE
    - OPatch: Patches to the DB
    - plsql :     PL/SQL
    - precomp:      precompilers
    - rdbms :      server files and libraries required for the database
    - slax:      SLAX parser
    - sqlplus :     SQL*Plus
    For more Information you can refer to:
    - http://www.stanford.edu/dept/itss/docs/oracle/10g/em.101/b12140/3_oui_oracle_homes.htm
    - http://www.dba-oracle.com/linux/important_files_directories.htm
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • HT1199 cannot play songs, the following comes up - Itunes has detected a problem with your audio configuration. Audio/Video playback may not operate properly. Can anyone help. Cheers Wade Johnson

    Cannot play songs, the following comes up - Itunes has detected a problem with your audio configuration.
    Audio/Video playback may not operate properly.
    Cheers
    Wade Lawrence

    Hello Wade,
    This is typically indicative of an issue with the installation of QuickTime on your computer. The following article provides steps for reinstalling QuickTime to resolve the issue.
    "iTunes cannot run because it has detected a problem with your audio configuration"
    Resolution
    QuickTime may need to be reinstalled. Follow the steps below to uninstall QuickTime and then download and install QuickTime using the QuickTime standalone Installer.
    On the Start menu, click Control Panel.
    Follow the steps appropriate for your Windows operating system below.
    Windows XP and Windows 2000: Open the Add or Remove Programs control panel and selectQuickTime in the list of currently installed programs.
    Windows Vista and Windows 7: Click Uninstall a program (or if using Windows Vista's Classic View of the Control Panel, click Programs and Features) and select QuickTime in the list of currently installed programs.
    Click the Remove button (or Uninstall for Windows Vista and Windows 7) and follow the prompts to remove QuickTime from your computer.
    Download QuickTime. Note: There are two options for downloading QuickTime, be sure to select the option that does not include iTunes.
    During the download:
    If you choose to run the installer, proceed to the next step.
    If you choose to save the download, double click the QuickTimeInstaller file, then proceed to next step.
    Follow the on-screen instructions to install QuickTime.
    Reopen iTunes.
    iTunes for Windows: iTunes cannot run because it detects an issue with QuickTime
    http://support.apple.com/kb/TS1371
    Cheers,
    Allen

  • HT204382 I downloaded Flip4 and Divx but still cannot videos with the following ext: wmv, avi and asf can anyone help

    I downloaded Flip4 and Divx but still cannot videos with the following ext: wmv, avi and asf can anyone help

    Try Perian and VLC.

  • I have IPhoto version 9.5.1. I cannot export pictures, the following message appears: "iPhoto cannot import your photos because there is not enough free space on the volume containing your iPhoto library." What am I suppose to do? I have a Mac mini.

    I have IPhoto version 9.5.1. I cannot export pictures since the following message appears: "iPhoto cannot import your photos because there is not enough free space on the volume containing your iPhoto library." What am I suppose to do? I have a Mac mini which properly used can perform any reasonable task, the problem is I do not know what to do.
    Any help will be appreciated.

    Hmm... that was labelled:
    As a Test:
    In bold and all
    Try repair the main Library:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • What is the equivalent function or combination of functions for the following ASYST code

    I'm translating a program from AYSYT (very old out-of-date language)to LABVIEW. Thanks to the help from you guys. I have done 99% of my work. But I still have a small question to ask for help. Dose any body know what function or combination of functions in LABVIEW is equivalent to the folowing ASYST code: 0.5 set cut off frequency MOB(array used in the program) smooth.
    After reading the ASYST MANUAL, I know "smooth" is to apply some kind window(e.g. BALCKMAN).but LABVIEW doesn't have the "smooth"function

    I got strange result after using balckman window.
    the xy-graphs of my data before and after using blackman
    window are posted here. the magnitude and the peaks all changed after using blackman window.the peaks magnitude decreased more than ten times. The original ASYST code gives only a little bit lower peak after smoothing(4.2e-6 is the highest peak before smoothing, while 3.6e-6 is the smoothed highest peak).
    Attachments:
    before_blackman_windowed.bmp ‏1747 KB
    blackman_windowed.bmp ‏1747 KB

  • Can java achieve the same function as the following VB code?

    'open a windows programme(simply an entry form), and focus the 1st textfield
    Dim RetVal = Shell("C:\Program Files\Operations Center Client\OCC.EXE", vbNormalFocus)
    'reading data from database
    Data1.RecordSource = "tradingPartner"
    Data1.Refresh
    'dump data to the form
    For i = 0 To 8
    SendKeys (Data1.Recordset.Fields(i))
    SendKeys ("{TAB}")
    Next
    SendKeys ("{ENTER}")
    I can use the Runtime.getRuntime().exec("") to open the form, but how can i send values to the form? thx.

    you need to go through a C bridge that forwardsthe
    params from java to VB (JNI).I interpreted "form" to mean the GUI application.Is
    that not what it means?
    Yeah...
    But one can create dummy VB functions to populatethe
    form fields.
    All those function do is take an argument and setthe
    field value to that of the argument.
    Those methods will be called from a DLL, which
    receives the java values, convert them to, say,
    strings, and than pass them to the field populator
    methods>And that would be better than using java.awt.Robot
    which insert system events into another application?
    I understood that roiss wants to populate a VB form using values obtained from or through a java program.
    Otherwise, how why use java if the form is a VB form and the values are obtained from or through VB?!

  • Firefox cannot be closed; the following message appears: "Can't load resource file, can not run". How to solve this problem; I am using Windows XP SP3

    Whwn I want to close Firefox 9.x , a pop-up appears with the message: "Can't load resource file ......" . First I have to close this pop-up, then Firefox is closed. Also with other versions of Firefox I had this problem.

    i deleted the rdf and now the first window only (and any tabs in it) are maximised. i found this in the rdf
    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    screenX="4"
    screenY="4"
    width="1008"
    height="461"
    sizemode="Normal" />
    i tried changing normal to maximised; no effect. either i need also to change the numbers (to match a maximised window) or ff ignores this. i want to be able to open different sites in different windows, and not have to maximise them manually. ff never used to be broken, why break this? what possible security flaw was fixed by screwing up ff to never open maximised unless u hack it or delete certain config files?

  • How do I pass an array of structs to a C function using the dll flexible prototype adapter?

    What I want to do is pass into a C dll function a variably sized Array of structs of type TPS_Data. My Code compiles but when I run it in TestStand, I get an error -17001; Program Error. "Cannot allocate 0 size buffer Error in parameter 2, 'OpenFrdData'."
    I've allocated the Array of structs, and all of the information is there before I call my function, so is it my prototype? Or am I asking too much of the DLL Flexible Prototype Adapter to pass an Array of Structs?
    I can pass in a single struct of type TPS_Data and that works, but not an array.
    Here's the relevent code:
    typedef struct TPS_DATA
    char Report_Number[256];
    char System_Name[256];
    char Open_Date[256];
    char UUT_Part_Number[256];
    char UUT_Serial_Number[256];
    char UUT_Name[256];
    char Open_Employee_Name[256];
    char Open_Employee_Number[256];
    char Close_Employee_Name[256];
    char Close_Employee_Number[256];
    char Close_Date[256];
    } TPS_Data;
    typedef struct TPS_DATA_ARRAY
    TPS_Data DataRecord;
    } TPS_DataArray;
    long __declspec(dllexport) __stdcall OpenDialog (CAObjHandle Context, TPS_DataArray *TpsData[], const char *psFaultStr, char *sComments, const int nCount);

    OK,
    I can pass the data to the DLL function, using the following types:
    typedef struct StringArrayType
    char string[10][256];
    } StringArray;
    typedef struct MultiStringArrayType
    StringArray Record[10];
    } MultiStringArray;
    void __declspec(dllexport) __stdcall ATP_TestStructPassing(StringArray Strings)
    return;
    void __declspec(dllexport) __stdcall ATP_TestMultiStructPassing(MultiStringArray *Strings)
    return;
    But when the MultiStruct function Exits, TestStand reports an Error:
    -17501 "Unexpected Operating System Error" Source: 'TSAPI'
    There doesn't seem to be a way around this, and once the error occurs, I have to force quit TestStand. I've included the sequence file, and the dll code can be compiled from the fun
    ctions shown above.
    Any thoughts on how to get around this error would be greatly appreciated.
    Attachments:
    StructArrayPassing.seq ‏16 KB

  • Use of LEFT, MID  functions in MS Access expression evaluating a SQL pass-thru on an Oracle Backend

    As the title above suggests this is a somewhat complex problem.
    I have the following expression on a field in a MS Access Make Table query.
    Left([SYN4_View Invalid Last Candidates]![LastName],3). The table it is referring to: SYN4_View Invalid Last Candidates is a SQL Pass-thru query on an Oracle backend. So, when the expression attempts to evaluate in MS Access 2003 I get the following error msg:
    Undefined function 'left' in expression.
    I am assuming this is because LEFT function can't evaluate the output of the SQL P-T. I can't use SUBSTR as Access doesn't recognize it.
    I would appreciate suggestions

    robleh7 wrote:
    I don't have access to the Oracle dB. No pun intended here. Everything I do, I must do from the MS Access 2003 front-end
    wow .. that's kinda like sending soldiers into a war zone with a bear trap attached to their legs. O_0
    Kind of blatantly trying to hamper your ability to do your job, don't you think?

  • What is the use of the following BAPI ?

    Please tell me the functionality of the following BAPI : BAPI_CTRACDOCUMENT_CHANGE
    Regards,
    Sai

    Hi,
    Short Text
    BAPI: FI-CA Change Document
    Functionality
    You can change docuements with this method. Only changes to business partner items are permitted. See the interfaces for the changeable fields. You can create or delete locks on the items.
    Parameters
    DOCUMENTNUMBER
    DOCUMENTHEADER
    DOCUMENTHEADERX
    RETURN
    PARTNERPOSITIONS
    PARTNERPOSITIONSX
    REPETITIONPOSITIONS
    REPETITIONPOSITIONSX
    POSITIONLOCKS
    EXTENSIONIN
    Document Number
    Number of the document that is to be changed.
    BAPI: Change Structure for Document Header
    Document header - modifiable fields
    BAPI: Change Structure for Document Header
    Select the fields changed in the parameter DocumentHeader.
    Retunr : Confirmations
    A method return code. The method was successful if the parameters do not contain a message code.
    Value range
    The most important messages are as follows:
    A B1 500 Error during ISO conversion
    E >BAPI 005 006 Formal error in document data
    E >BAPI 009 Formal error in lock data
    E >0 >4 Incorrect data for document
    Partner Positions : Line items (open items)
    Items of a document - modifiable fields.
    Partner Positionsx : Changes to open items
    Mark the fields that were changed in the "PartnerPositions" parameter. The link is realized by the 'LINE_NUMBER' field.
    Repitition Positions : Line items (repetition specifications)
    Repetition specifications for statistical line items for contract accounts - changeable fields.
    Repitition Positionsx : Changes to repetition specfications
    Here you must mark all the fields that were changed in parameter 'RepetitionsPositios'. The link is realized by the 'LINE_NUMBER' field.
    Position Locks : Locks on open items
    Process blocks for contract account items.
    Existing blocks cannot be changed. You can only create new blocks, (PROCESSING_MODE '01') or delete existing ones (PROCESSING_MODE '04'). If you delete blocks, all blocks for the selected line items, (REP_ITEM, ITEM, SUB_ITEM) and the process IDs (PROCESS_ID) corresponding to the fields LOCKR (Blockin Reason), FDATE (From Date) and TDATE (To Date) are deleted. If, for example, only the field LOCKR had an entry, all blocks that have this blocking reason are deleted.
    Extensionin : Customer Enhancements
    Parameters for transferring customer-defined data. This data is automatically transferred to the customer-defined enhancements to SAP tables as part of the 'BAPI Table Extensions'.
    Value range
    The following BAPI table extensions exist:
    BAPI_TE_DFKKOPCH for structure DFKKOP
    Parameter PARTNERPOSITIONS must contain one line that displays the same LINE_NUMBER and identifies the open item.
    BAPI_TE_DFKKOPCHX - Checklist for BAPI_TE_DFKKOPCH
    This extension must contain the fields with the same name (type C(1)). The fields that were changed in the structure BAPI_TE_DFKKOPCH must be highlighted.
    For more information, see the documentation for structure BAPIPAREX.
    Regards,
    Padmam.

Maybe you are looking for