Evaluate function error! how to use it properly?

Hi,
I used evaluate function to use a user-defined stored function present in my DB. But I ended up with this error.
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1722, message: ORA-01722: invalid number at OCI call OCIStmtExecute: select distinct T119198.BCREFNO as c1, T119198.MATURITY_DATE as c2, T119198.BILL_DUE_AMT as c3, test_eval('"Contract BC Parameters Fact"."Bill Amt Lcy"') as c4 from BCTBS_CONTRACT_MASTER T119198 /* BC_BCTBS_CONTRACT_MASTER */ order by c1, c2, c3, c4. [nQSError: 17011] SQL statement execution failed. (HY000)
I used the following evaluate function in my report under Edit Column Formula of the particular field.
EVALUATE('test_eval(%1)','"Contract BC Parameters Fact"."Bill Amt Lcy"')
The test_eval function in my DB takes one parameter of type number and returns a number. The "Contract BC Parameters Fact"."Bill Amt Lcy" field is of DOUBLE type as found in BMM layer.
I wish to know if I am right by placing the evaluate function in report or should I use it in BMM layer? Can I get anybodies assistance in knowing how to arrive at using a DB user-defined function in a report.
Regards,
The MasterMind.

hi,
This is the syntax
*EVALUATE('DB_Function(%1)' as returntype, {Comma separated Expression})*
Please check this post
Re: Syntax for Evaluate function in OBIEE

Similar Messages

  • Evaluate Function Error

    Hi All,
    I have an issue with the evaluate method,I am using a pivot view to show the report. Column contains the following formula
    '<a>' || EVALUE('TO_CHAR(%1,%2)' as VARCHAR(10), table1.AmountSold, '9,99,999') || '</a>'
    It gives the following error
    Cannot function ship the following expression: Evaluate(TO_CHAR(%1,%2),D902.c3,'9,99,999') .(HY000)
    Please provide the solution for this issue

    Not enough information from you.
    Search forum with cannot function ship the following expression and evaluate keywords.
    This error is very specific, it depends on input parameters inside it, other columns and in Answers, etc, see this thread with example:
    Re: evaluate function with 2 input parameters
    Reards
    Goran
    http://108obiee.blogspot.com

  • Function RSPO_IUPDATE_TSP01 how to use it!

    Hi everyone,
    Does anybody know if this function RSPO_IUPDATE_TSP01 could help to update any record of the standar table TSP01, if so, how to use it, or which function could help me to update that table.
    Thanks for your time,
    Regards,
    Guillermo

    hi,
    you can use it like this:
    CALL FUNCTION 'RSPO_IUPDATE_TSP01'
         EXPORTING
              RFCSYSTEM  = NEW-SYS
              TSP01_ELEM = TSP01
         EXCEPTIONS
              OTHERS     = 1.
    hope it help you
    regards
    rahul sharma

  • Canon MX870 B200 error, how to use scan only?

    I have Canon MX870 which I only use it for scan. When I'm turning the printer on at the booting process it give me B200 error and STOP to work completely.I have to open and close cartridge door couple times at the startup to can skip the B200 error and be able to use the scanner.I know the problem is related to cartridge or printhead or something about printing. I only use this machine for scanning and i don't need to print at all. How I can disable or disconnect the printing component on this machine to be able to use just the scanner?
    or at least disable the printer diagnostic at the start up?   

    Hi g6381646, We do not have instructions for disabling the printer diagnostic at startup or disconnecting the printing component of the printer; the printer will require servicing to resolve the error.  Please call or email us using one of the methods on the Contact Us page to obtain your servicing options.

  • How to use TARGET_OS_WIN32 properly?

    In my program, I've got a console clear screen command that's of course different between PC and Mac. So I've got this:
    #if TARGETOSWIN32
    system("cls");
    #else
    system("clear");
    #endif
    But the PC doesn't seem to recognize the macro - it just skips to the #else part. Is TARGETOSWIN32 predefined in a library somewhere, or do I need to define it? If it's predefined, what library do I need to include (or is there something else I need to do)? If I need to define it, how do I do that?
    Thanks.

    Ah, ok, so I could have used MSCVER instead, and that would have worked as well, as long as I compiled in VS? However, it wouldn't work for me, because I'm not compiling in VS - I'm compiling in an opensource IDE called DevC++ (I only have the educational version of VS which won't create an exe).
    When I compile on DevC++, the build works as it should on Windows (calling "cls" instead of "clear").
    Also, isn't Xcode based on GCC? I used Xcode to compile the code on the Mac, and it works fine (thus I'm assuming _WIN32 is not defined, because it's calling "clear", as it should on the Mac).

  • Basic Function 'High' How to use it ?

    Hello All ,
    I have a Plan Quatity in One column and in Actual Quatity in another column for Material.
    I want to add new column which gives me higher value of Plan and Actual Quantity.
    I tried the Basic Function High and created formula as below
    plan quantity**actual Quatity
    but could not get the desired result.
    Amol K.

    Hello Gunter ,
    I can use Max , Min function  but the question is what is the exact use of High and Equal to.
    I could not able to find out any help for the exact use of Basic Functions
    HIGH and EQUAL TO
    Reagrds ,
    Amol K.

  • How to use ButeBuffer properly in java code

    hi,
    i am trying to use a bytebuffer and i don't kniow which methods allow reading its content...i need to retrieve this content in order to convert it ( byte by byte) into RGB values...so can anyone help me to do it please?

    The API documentation tells you exactly which methods are available in class java.nio.ByteBuffer.

  • Strange errors - how to use flex?

    I dont get why it does not reconize the flash.net.Networkinfo ect ?

    Matt you say, i do not need to write servlet, create wsdl...
    But if i dont do this, my Java Business Rules will be visible to client ?
    If yes...
    1- I need to write Servlet to use HTTP protocol to connect with Flex, then create wsdl of my EJB3.
    2- This wsdl will create client side of my application, then i create my Flex interface normally using HTTP Blaze DS ?

  • Embed Video: Playback error | How to use?

    Hello everyone,
    I'm trying to insert different videos into a multistate, they're like 10-15 seconds videos and the idea is to be able to play them inside the presentation (folio). I'm creating this for an Android device.
    I've been trying with several formats such as FLV, SWF, MOV, AVI and MPG but when I update the folio on the device it only shows me the icon for the movie or the swf and when tapping on it nothing happens. I tried to change the settings on the media panel even to make it play as soon as the page loads but I still have no luck, it just keeps showing the icon once I have it on the tablet.
    I'm new at this and I have read a few tutorials for inserting video into InDesign documents but i'm not really sure.. is this even possible?
    I would really appreciate your help, thank you!

    Thank you so much for your reply, Bob, this was really helpful .

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

  • Dodging the evaluate function

    Hi,
    I have a data source that supplies the scope, name and value
    of a variable. Obviously dynamic values is what CF is all about. A
    dynamic variable name can be used (without the evaluate function)
    by using:
    #Form["product_" & i]#
    But how do I use a dynamic scope, without using the evaluate
    function? I have used:
    evaluate('#scope#'& '.' & '#variableName#')
    and this seems to work. Does anyone know how to do this
    without using evaluate?
    Thanks in advance.
    Stephen

    This is for a very particular application, that will be used
    for
    testing, so a
    lot of the concerns around evaluate are not so crucial. But
    thanks for the
    reminder regarding the variables scope acting as a structure.
    This will
    hopefully help others too.
    Stephen
    Just to add, the general consensus of those you know, there
    is not as
    much downside to evaluate() in the MX versions of ColdFusion.
    In CF
    previous to MX there was performance issues. But since MX,
    evaluate("form.#i#") and form
    parse to basically the same java
    bytecode. So the performance is very similar.

  • How to use multiple addresses for a global vendor

    Hi experts.
    scnerios is.company has different plants in different countires.they have centrally agreed contract with vendor.now each plant create p,o is in different country how can we use that vendors local addresses in p.o because in vendor master we can define one addres at a time.so if that adrees is in other country.and plant creating p,o is in different how can select the local address of that vendor.
    if option is partner function then how to use it.all adressess witl  be odering address of that vendor.his offices is alll the counties.
    thanks

    IQBAL,
    You can maintain multiple addresses for the same vendor using international addresses.
    First, you have to Activate International Address Versions for each country/language via config at
    IMG: Flexible Real Estate Management (RE-FX) > Address Management > International Settings > Activate International Address Versions (You can do this even if you are not using Real Estate Management
    Then, in the vendor master, address screen, select the "International Verion" button, select the address version and maintain your address.
    If you have any programs that need to display or print these addresses, you will have to specifiy the address version to display/print. by default, the version (Field = NATION) is Blank.
    I hope this helps.

  • How to use moving maximum in query desighner

    Hi All,
    i am new to BI, please help.
    I have a requirement to find the maximum and minimum posting date for an article.
    For this i would need to use the moving maximum feature of the query. where to find this function and how to use it.
    please reply
    thanks,
    kushagra

    Hi,
    Max/Min functions can't be applied on characteristics. I'm not sure but you can try using a formula variable or exception aggregation.
    --Akashdeep

  • Is there any alternative for Evaluate function

    Hi all
    Can anybody tell me the alternative for evaluate function. i have to use a SQL Function and execute it from obiee

    Agreed with John. You best create a view in the DB or - if you don't have the rights - you can just put this SQL code in the physical layer as a physical table object of table type "Select".
    In UDML:
    DECLARE TABLE "ABC".."SH"."test" AS "test" UPGRADE ID 1 NOT CACHEABLE NO INTERSECTION
         TABLE TYPE SELECT DATABASE MAP (
               {DefaultMulDB}  AS {select a.job_id,
         a.name title,
         flsa.meaning flsa,
         eeo.meaning eeo_category,
         a.attribute1 job_family,
         c.name grade
    from per_jobs a,
         (select * from per_valid_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) b,
         (select * from per_grades where sysdate between date_from and nvl(date_to, sysdate + 1)) c,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EXEMPT_NON_EXEMPT') flsa,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'US_EEO1_JOB_CATEGORIES') eeo,
         (select lookup_code, meaning from hr_lookups where lookup_type like 'ALB_HR_JOB_FAMILY') jf
    where sysdate between a.date_from and nvl(a.date_to, sysdate + 1) and
         b.job_id (+) = a.job_id and
         c.grade_id(+) = b.grade_id and
         flsa.lookup_code (+) = a.job_information3 and
         eeo.lookup_code (+) = a.job_information1 and
         jf.lookup_code (+) = a.attribute1}  )
         PRIVILEGES ( READ);Cheers,
    C.

  • I don't understand how to use the volume control on the new iphone headphones

    I just bought the new style earphones for my iphone and it has a new volume control -- how does it work?  On the old one you just pushed up or down for volume control but now it just increases volume for the time you hold it down?  Does anyone know how to use this properly?

    I have had good success with the System Font Panel. Now all of a sudden, I only get part of it. Any suggestions on how to restore the entire panel? There are no change size options in the corners like in some dialog boxes. I was going to paste what I have here, but for some reason, paste is not available.

Maybe you are looking for

  • How can I retrieve my iPod Touch information after I restore it?

         A couple of months ago my computer crashed and on that computer was my itunes (which contained everything that I have on my iPod Touch, over 150 purchased songs, a couple of purchased apps aswell as purchased movies, tv shows and music videos).

  • Processing Schema Validation error in BPM?

    Hi all, We have a file to IDOC scenario where if the schema validation fails on the file adapter sender agreement, we want to pull the filename and send it in an error email. So, we are talking about the adapter specific message attribute "Filename".

  • Published iWebsite pages turn red when scrolling pages in iWeb

    Hi everyone, Just wondering if I'm the only person who has this issue; when I publish my iweb sites and pages (to MobileMe) all goes well, but when I then scroll my page up and down in iWeb the site turns red again as if I have changed its content. I

  • User is not authorized for RFC1

    I created user with roles SAP_BC_USER_ADMIN and SAP_BC_AUTH_DATA_ADMIN. But user can not add roles to another user, and i get error "User USR_ADM is not authorized for RFC1". What's wrong?

  • IPhoto 6.0.5  Get info regards focal length of picture taken???

    When I display a photo and want info on that photo I go to Photos, get info and focal length. A small number 7.19 mm seems to refer to a wide angle view while a larger number 28.81 mm refers to a telephoto view I think. If this is true what is the mu