Filter on evaluate/db function causing error in OBI report

Hi,
I unable to filter the report on EVALUATE function shown below
CAST((Evaluate ('work_days_between_ADS (min(%1 ), max(%2))' as INT, "Order Attributes"."Booked Date" , "Line Level Attributes"."Line Status Date" )) AS INTEGER) >29
above code is one column out of about 20 columns and report is working fine without filter but I want to see the data with work_days >29
I got below error with above filter condition.
View Display Error
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: 17001] Oracle Error code: 604, message: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 8 ORA-00934: group function is not allowed here at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
If anyone of you know solution for the above please post it here. appreciate for your help
Thanks
Jay.
Edited by: JV123 on May 9, 2013 9:24 AM

Hi Jay,
As you are getting an ORA- error, there is nothing wrong with the OBIEE report or with the fact that the you have used Evaluate in the filters.
This seems like an error while parsing a particular row value for the parameters (Booked Date and Line Status Date) you are passing to the work_days_between_ADS function. Pick up the physical sql and fire it directly on the database and try to identify what values are causing the error (probably at line 8 of the function def).
Thanks,
Gaurav

Similar Messages

  • HP Imaging Device Functions causing errors on LAN

    I have 4 computers on my LAN.   For months now, I have been seeing errors on the Ethernet interfaces of 2 computers  (netstat -e). The errors occured at regular intervals and seemed to be asscociated with the HP Printer SW associated with the Photosmart C7280 which was configured as a network printer.     (TCPVIEW showed  the only network connections being made at the time errors occurred were to the printer.)    The performance of the Internet  Explorer  was poor and as other networking activities such as sending e-mail were very slow.
     When booting the machines in Safe Mode with Networking,  the errors do not occur and the performance if IE was significantly better.    I finally got around to investigating this.   My first attempt was to turn off all printer shareing to stop communciation between machines.   This made no difference.    However,   as soon as I uninstalled HP Cutomer Participation Progam 10.0 and HP Imaging Device Functions 10.0 and restarted , the errors completely disappeared.   IE 8 ran like a charm and email clients stopped reporting errors when sending.   I suspect the problem is related to the Digital Imaging Device Functions but I am reluctant to reinstall lest the problem reappear.
    Does anybody know the root cause? 

    After further investigation, I have narrowed this problem down to the Pml Driver HPZ12 service    By disabling this service and rebooting, the problem with errors appearing on the LAN interfaces go away and browsing the Internet is fast. 
    Along the way I noticed several things.   This problem may be related to the specific Windows Version or aggravated by other SW installed that uses the network.   I installed the complete suite of All-In-One Printer SW (V 10.0.1) on a freshly installed and updated XP Home Edition (SP3) machine with no other SW installed and  no errors occurred on the LAN interface even when I left the system running for days.      However, I un-installed and re-installed the same SW on an XP Professional (SP3) machine which has AV SW, Skype and other SW that uses the network  and the errors appear as soon as the Pml Driver Serv ice starts after booting.  If I disable the Pml Driver Service and reboot, there are no errors.   Now  here is the weird part.    If I manually stop/start the Pml Driver Service, I do not seem to get the errors.
    If the Pml Driver service is enabled so that it starts automatically,  you get the errors, but typically the count grows to between 50 and 100 and then stabilizes.   However, if a program like Skype (which also uses UDP) starts automatically at the same time the Pml Driver service starts, then you get many more errors and the number keeps growing over time.  My guess is that the Pml Driver has a bug in its initialization but I cannot guess what it might be?   Port conflict? 

  • PremierePro PC 8.2.0 (65) replace footage causes error "The importer reported a generic error"

    Hi there
    I tried everything multiple PC's and windows installs, goggled every support site available for answers to no avail so far.
    The following is tested on a brand new and untampered win8 install (all win8 updates included)
    Trail and fully updated versions of Premier Pro 8.2.0 (65) and AE 13.2.0.49 are the only two programs installed on to the PC.
    The problem.
    Create a new project in Premiere Pro
    I make a single sequence
    Add a single Black video item to the sequence
    Now pick the black video item in the Premiere project Bin area, right click it and choose  "Replace footage"
    Then the browser opens and I pick a After effect project file (.aep) that I prepared earlier.(the most simple AE project file I can make, consisting of a single Comp with a shape drawing in it)
    When I click the Select button to confirm my choice of .aep file a window immediately opens that says "The importer reported a generic error".
    Next I am back in the PP bin and the black video item has turned "off line".
    This option / featured executed in the 100% similar way works as expected without errors in an old CC6 setup.
    Please help as the this is an very useful feature that needs to be fixed/work.
    Thank you
    ============================================
    Duplicate post removed by moderator. Please do not double post. If a thread has not received a reply after a reasonable period, feel free to "bump" it.

    No key frames what so ever.
    The AE project I refer to, only involves a standard hdtv 720p comp with a text element or a simple shape drawn. (Actually I am pretty certain that an empty comp will yield the same result)
    The problem is consistent no matter if it's the most simple AE project I can possible make or a complexed project with many comps in it.
    Personally, I am pretty sure the potential bug is isolated in PP and has nothing to do with AE. The reason why I believe so, is that when I try to pick large AE project the error message pops up much quicker than the time it takes to loads and analyze the AE .aep file.
    Please before you go, can you tell me wether or not you get the same result when doing a simple test as I described in a somewhat similar set up.
    And please pass the information on to the developer team. (I have already written a bug report) but I am desperate for a quick fix to this issue, so any help bringing their attention to the problem is much appreciated.
    Thank you and enjoy the holidays

  • Bug Report : Upgraded to Firefox v10. Holding CTRL+ [F4] too long after all tabs are closed causes error. "Exc in ev handl: TypeError: this.oPlg.onTabClosed is not a function"

    Bug Report :
    Upgraded to Firefox v10. Holding CTRL+ [F4] too long after all tabs are closed causes error.
    "Exc in ev handl: TypeError: this.oPlg.onTabClosed is not a function"

    What extensions do you have? (Go to Firefox > Customize > Add-ons to see or Help > Troubleshooting info for a copy-pasteable list)

  • UWL Filter causing error while approving Leave Request

    Hi Guys,
    We recently applied MSS SP17 and we changed our UWL filter BADI to SWK1 Function group - SWK_LOCAL_INBOX_GET.
    The filter works fine, but when we try to approve leave request, it somehow calls this piece of code again and does not allow (DUMPS) BADI to set the filter saying - this field is not modifiable.
    Has anybody seen this before. Can anybody let me know how to resolve the issue?
    Regards,
    SC

    We added a code that if leave request calls this code...skip it.

  • Changes in RPCBURZ0 causes errors in other programs

    Hello to All,
    I made changes to RPCBURZ0 in order to extend the TABLE schema function to read a custom Infotype 9001.
    I added the necessary code in RPCBURZ0 and the data definition in RPCFDCZ0.
    The code is working perfectly , but the changes are causing errors in other country specific reports
    specifically in : HINCALC0 , HCNCALC0 , and HKRCALC0 and Transports to Quality generating errors.
    Error is because the custom infotype definition is not seen in these reports.
    Generation of the users of the transported Includes                                                                                |
    Program HCNCALC0, Include RPCBURZ0: Syntax error in line 000021
    The field 'T9001' is unknown, but there is a fieldwith the similar name 'T001P'. .
    Program HINCALC0, Include RPCBURZ0: Syntax error in line 000021
    The field 'T9001' is unknown, but there is a fieldwith the similar name 'T001P'. .
    Program HKRCALC0, Include RPCBURZ0: Syntax error in line 000021
           |   The field 'T9001' is unknown, but there is a fieldwith the similar name 'T001P'. . 
    Looking at other H--CALC0 reports i could easily spot an include for RPCFDCZ0.
    include rpcfdcz0.  "customer-specific data declaration (int'l)
    I wonder why this include is not in (HINCALC0 , HCNCALC0 , and HKRCALC0) !!!
    I have two solutions in mind :
    1. Make a custom ZRPCBURZ0 and include it in the main report.
    2. Look for user exist for the three reports and add the data definition statement .
    What is the best way to fix this situation ? and is there any other possible solutions ?
    We are using :
       SAP ECC 6.0
       Payroll International Driver.

    Alex Gorly and Matt Sullivan solved one of my issues above:
    Message: Attribute 'prod' is not declared for element 'prodname'
    I'm still stumpled on the other one:
    Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series) )*)'
    As stated above, I've even removed everything from the general rule of <prodinfo> except prodname and I'm still getting the same error. I've searched everywhere for this general rule and <prodinfo> is the only place I can find it.
    What I really want is: (prodname), (vrmlist)?, (brand | component | featnum | platform | prognum | series)*
    so that vrmlist is optional.
    No matter what I do, unless I include a vrmlist, I get the above message. Currently, our CMS can't handle vrmlist but I don't want to remove it altogether because we may be replacing our CMS.
    Help please!

  • Code 91 - Caused Error: (Object variable or With block variable not set)

    Hi,
    We are using FDM 9.3.1. We have enabled batch processing.
    We are having following process being followed
    - Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
    - Batch processing is set to serial and processlevel set to Up-To-Check
    - We had following five files created for Location - EMAFF100
    i. 1_EMAFF100_ACT_May-2011_RR.txt
    ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
    iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
    iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
    v. 1_EMAFF100_ACT_Sep-2011_RR.txt
    Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
    But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
    40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
    When we checked the view error log from tool menu we found following
    ** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
    ERROR:
    Code......................................... 91
    Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
    Procedure.................................... clsBatchLoader.mFileCollectionProcess
    Component.................................... upsWBatchLoaderDM
    Version...................................... 931
    Thread....................................... 5600
    IDENTIFICATION:
    User......................................... ncreighton
    Computer Name................................ HYAPSDEV1
    App Name..................................... EMATTEST
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ hydev_serv
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... EMAFF100
    Location ID.................................. 762
    Location Seg................................. 16
    Category..................................... ACT
    Category ID.................................. 13
    Period....................................... Jun - 2011
    Period ID.................................... 30/06/2011
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
    Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
    Thanks in advance.

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • Mavericks causing errors in Outlook for Mac

    Since installing Mavericks, Outlook for Mac 2011 is having problems with pop mailboxes on three different servers.  Connection errors are being reported avey ten minutes regarding server timeouts, connection has been dropped, server not found.  Prior to install there were only sporadic messages like this, mainly with IMAP connections.  This time, IMAP connections are not causing the errors, but all my different POP servers.  Is anyone else having these problems?

    Seach is based on Spotlight index. Mavericks should have re-indexed your entire drive after installing. If it's still running you might want to see if search starts working in Outlook. Otherwise you need to reindex your entire drive. This can take overnight.
    You can tell if it's still in progress by simply looking at the Spotlight menu: There's a blinking dot in the middle of the magnifying glass while indexing is occurring. You can also open Activity Monitor in Applications/Utilities and type in md in the search filter. You should see mdworker32 and mdworker. The mdworker32 is the Outlook Spotlight index and mdworker is for system.
    Until this process is finished, Spotlight won’t know the contents of your disks and neither will Outlook. All lists like contacts, events, notes etc. are generated by the Spotlight searches.
    Rebuilding should never be done to fix issues like this. Rebuilding can result in data loss.
    HOW TO RE-INDEX YOUR SPOTLIGHT CACHE FILES
    Option 1)
    From the Apple menu, choose System Preferences.
    *  Click Spotlight.
    *  Make sure Messages & Chats is checked under the Search Results tab.
    *  Click the Privacy tab.
    *  Drag your drive and/or Identity to the list. Wait a couple of minutes.
    *  Remove the item you added.
    *  Spotlight will re-index the contents of the item you initially dragged to the list.
    Option 2)
    In Lion/Mountain Lion, there is an additional Repair Permissions application utility hidden away. This tool is located inside boot Repair Utilities. Here's how to access it.
    1 Restart and hold down the Command and R keys.
    2 You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
    3 In the Terminal window, type resetpassword and hit Return.
    4 The Password reset utility launches, but you¹re not going to reset the password. Instead, click on the icon for your Mac's hard drive at the top. From the drop-down below it, select the user account where you are having issues.
    5 At the bottom of the window, you'll see an area labeled 'Reset Home Directory Permissions and ACLs'. Click the Reset button there.
    The reset process takes a couple of minutes. When it¹s done, quit the programs you've opened and restart your Mac. Notice that 'Spotlight' starts re-indexing immediately.
    Note: you might want to use Disk Utility to Repair Permissions and Repair Disk while booted from the Repair Drive.

  • What (the hell) is SQL Exception called Function sequence error?

    ...doing in a code like this:
    ResultSet friends=...executeQuery...
    while (friends.next())
    log.append(friends.getString("sendergsm"));
    somewhere in between that loop, or sometimes the loop runs out fine, and sometimes it throws SQLException called General Error. Not guite normal...

    Thank you for replying... that must be agains some of the policies of the sun, to make methods that may be called normally, but may cause an error.
    Anyway, this is my first database application. The number of problems I've had in few days is unbelivable. I wonder does it load the drivers from disk or something everytime it reads one record from database. I mean when I did the above query, the table had about 10 entries (the program showed 5 to 10 before function sequense error) and displaying each record to TextArea took over second. (In paradox (The dosversion) this would have taken less than a second).
    And paradox tables doesn't work at all because it raises exception: Table isn't expected format. If I set paradox 4.0 drivers and put paradox 4.0 tables, you would guess that the format would be expected. And you cannot create paradox tables with SQL. Now I need to use access databases. How can database containing 60 records be 500kb:s? When it will contain 50000 new records every day, i guess I'll be in problem. Each tranaction (say 5 simple queries) taking minutes... heelp meee!!

  • Running SQL Procedure with dg4msql errors: Function sequence error HY010

    I am trying to execute a stored procedure on a SQL database and get the error Function sequence error HY010.
    A simple query on a table returns teh expected result.
    I have a single Win2008R2 server with MSSQL Express 2008 and Oracle 11gR2 (32bit not 64bit version of Oracle)
    Below is the gateway init, listener and tnsnames files and the query I am trying to run:
    -- initORIONWASP.ora --
    HS_FDS_CONNECT_INFO=INGRDB//waspForGIS
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_CALL_NAME=dbo.spTest;dbo.spQueryAsset;dbo.spQueryAssetDetails
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    -- Listener.ora -- (partial)
    (SID_DESC =
    (SID_NAME = ORIONWASP)
    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
    (PROGRAM=dg4msql)
    -- tnsnames.ora -- (partial)
    ORIONWASP =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=INGRDB)(PORT=1521))
    (CONNECT_DATA=(SID=ORIONWASP))
    (HS=OK)
    -- Simple Query --
    Running select "Asset_ID" from asset@ORIONWASP; returns the correct result
    Running select * from sys.procedures@ORIONWASP; returns a list of procedures including the procedure I want to run
    -- This pl/sql block returns the error ******* identifier 'spTest@ORIONWASP' must be declared *******
    declare
    begin
    "spTest"@ORIONWASP;
    end;
    -- This passthrough pl/sql block returns ******** [Oracle][ODBC SQL Server Driver]Function sequence error {HY010} ********
    DECLARE
    CRS BINARY_INTEGER;
    RET BINARY_INTEGER;
    v_COL1 VARCHAR2(50);
    v_COL2 VARCHAR2(50);
    BEGIN
    CRS := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@ORIONWASP;
    DBMS_HS_PASSTHROUGH.PARSE@ORIONWASP(CRS, 'exec spTest');
    BEGIN
    RET := 0;
    WHILE (TRUE)
    LOOP
    ret := DBMS_HS_PASSTHROUGH.FETCH_ROW@ORIONWASP(CRS, FALSE);
    DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 1, v_COL1);
    DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 2, v_COL2);
    DBMS_OUTPUT.PUT_Line('Col1:'||v_COL1||' Col2:'||v_COL2);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    BEGIN
    DBMS_OUTPUT.PUT_LINE('End of Fetch');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@ORIONWASP(CRS);
    END;
    END;
    END;
    /

    The gateway configuration file contains:
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    This setting commonly causes problems and you need to set
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=FALSE
    for normal procedure calls and
    HS_FDS_PROC_IS_FUNC=FALSE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    when calling the procedure with ref cursors.
    There's a note in My Oracle Support that gives you examples how to call remote SQl Server procedures
         Note.197192.1 Different Methods How To Call MS SQL Server Procedures Using TG4MSQL - DG4MSQL
    and another one for the Sybase gateway but this code is similar for the SQL Server:
    Article-ID: Note 351400.1
    Title: How to Call a Remote Sybase Procedure Using TG4SYBS

  • Why sys_extract_utc(sysdate) never causes error in pl/sql block?

    Oracle 11.2
    I cannot use
    SELECT sys_extract_utc(sysdate) FROM DUAL But I can use
    v := sys_extract_utc(sysdate)in a procedure or a trigger without causing any compile or run-time error.
    In my opinion, the return value of function sysdate doesn't contain any timezone info, so it should not be able to be used as the parameter of function sys_extract_utc, because it needs timezone info to do the conversion.
    Any clues?
    Thanks in advance.

    Kiran wrote:
    use systimestamp it will contain timezone.I know, what I don't know is why sys_extract_utc(sysdate) can be used in procedure without causing any error. It should cause error, right?

  • GROUP BY with parameter - cause error -ORA-00979: not a GROUP BY expression

    I generate a query via PreparedStatement. For example:
    SELECT when, value FROM test GROUP BY ?;
    PrepState.toString(1, "when");
    That causing error: ORA-00979: not a GROUP BY expression
    My application using query like:
    SELECT to_char(data,1), SUM(vlue) as sum FROM test GROUP BY to_char(data, 2);
    PrepState.toString(1, "YYYY-MM");
    PrepState.toString(2, "YYYY-MM");

    Ah. Reproduced in the first chunk of PL/SQL below.
    The second chunk is a workaround.
    Basically, SQL is parsed by the syntax engine and optimizer to get an execution plan. Then you can have a sequence of "bind, execute, fetch, fetch, fetch..., bind, execute..."
    Since you can have multiple binds for a single SQL parse, then the fact that the first set of binds all happen to have the same value doesn't mean the next set will.
    The optimizer needs to be 100% sure that the value in the select must always be the same as the value in the group by, so you can't have two separate (and therefore potentially different) bind variable mappings. [Given the right circumstances, the optimizer might do all sorts of tricks, such as using materialized views and function-based indexes.]
    Misleadingly, it actually fails on the 'EXECUTE' step of DBMS_SQL rather than the PARSE.
    declare
      v_sql varchar2(1000) :=
        'select to_char(created,:b1), count(*) '||
        ' from user_objects u '||
        ' group by to_char(created,:b2) '||
        ' order by to_char(created,:b3)';
      v_fmt varchar2(10) := 'YYYY';
      v_cur number;
      v_ret_str varchar2(10);
      v_ret_num number;
      v_ret number;
    begin
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_sql, dbms_sql.native );
      dbms_sql.define_column_char (v_cur, 1, v_ret_str, 10);
      dbms_sql.define_column (v_cur, 2, v_ret_num);
      dbms_sql.bind_variable( v_cur, ':b1', v_fmt );
      dbms_sql.bind_variable( v_cur, ':b2', v_fmt );
      dbms_sql.bind_variable( v_cur, ':b3', v_fmt );
      v_ret := dbms_sql.execute( v_cur );
      WHILE ( dbms_sql.fetch_rows(v_cur) > 0 ) LOOP
        dbms_sql.column_value_char (v_cur, 1, v_ret_str );
        dbms_sql.column_value (v_cur, 2, v_ret_num );
        dbms_output.put_line('>'||v_ret_str||':'||v_ret_num);
      END LOOP;
    end;
    declare
      v_sql varchar2(1000) :=
        'select to_char(created,f.fmt), count(*) '||
        ' from user_objects u, (select :b1 fmt from dual) f '||
        ' group by to_char(created,f.fmt) '||
        ' order by to_char(created,f.fmt)';
      v_fmt varchar2(10) := 'YYYY';
      v_cur number;
      v_ret_str varchar2(10);
      v_ret_num number;
      v_ret number;
    begin
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_sql, dbms_sql.native );
      dbms_sql.define_column_char (v_cur, 1, v_ret_str, 10);
      dbms_sql.define_column (v_cur, 2, v_ret_num);
      dbms_sql.bind_variable( v_cur, ':b1', v_fmt );
      v_ret := dbms_sql.execute( v_cur );
      WHILE ( dbms_sql.fetch_rows(v_cur) > 0 ) LOOP
        dbms_sql.column_value_char (v_cur, 1, v_ret_str );
        dbms_sql.column_value (v_cur, 2, v_ret_num );
        dbms_output.put_line('>'||v_ret_str||':'||v_ret_num);
      END LOOP;
    end;
    /

  • IIF with InStr and LEFT -1 Causes #Error in SSRS 2008R2

    Hello,
    I'm using IIF with InStr to test for a "/" in a field on a report.  The left function works fine unless I try to subtract 1 from it.  This code works fine:
    =IIF(InStr(Fields!WellCompName.Value,"/")=0, Fields!WellCompName.Value, left(Fields!WellCompName.Value,InStr(Fields!WellCompName.Value,"/")))
    But this code causes the True condition to yield #Error in the report when I add the -1 to the end of the left function:
    =IIF(InStr(Fields!WellCompName.Value,"/")=0, Fields!WellCompName.Value, left(Fields!WellCompName.Value,InStr(Fields!WellCompName.Value,"/")-1))
    I do need -1 to remove the "/" but it doesn't work with IFF and LEFT.
    Thanks

    Hi SomeDBGuyOutThere,
    I have tested on my local environment and can reproduce the issue, your issue caused by when the value in the field WellCompName don't contains "/". the function "left(Fields!WellCompName.Value,InStr(Fields!WellCompName.Value,"/")-1)"
    in the expression is invalid and will caused the error.
    In your scenario, please modify the second expression as below to avoid the error when there is no "/" in the string:
    =IIF(InStr(Fields!WellCompName.Value ,"/")=0,
    Fields!WellCompName.Value,
    left(Fields!WellCompName.Value,InStr(IIF(InStr(Fields!WellCompName.Value,"/")=0,"Test1/Test2",Fields!WellCompName.Value),"/")-1))
    Note: when WellCompName don't include "/" we given an test string "Test1/Test2" in the expression to avoid the error.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Requesting BASELINE_EXTENDED profile in air 3.9 or 4.0 causes error

    This line of code
    stage.stage3Ds[0].requestContext3D( Context3DRenderMode.AUTO, Context3DProfile.BASELINE_EXTENDED );
    causes error "Error #2008: Parameter profile must be one of the accepted values." if app is compiled for desktop with air sdk 3.9 or air sdk 4.0 beta (didn't tried another sdk's). Compiling for web works fine. So what is this error? Where can I find information?

    Just made a quick test on 3.9, Application, set to direct render of course, no issue:
    package
              import flash.display.Sprite;
              import flash.display.Stage3D;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.display3D.Context3D;
              import flash.display3D.Context3DProfile;
              import flash.display3D.Context3DRenderMode;
              import flash.events.ErrorEvent;
              import flash.events.Event;
              public class CX3D extends Sprite
                        private var s3d:Stage3D;
                        private var rc:Context3D;
                        public function CX3D()
                                  stage.align = StageAlign.TOP_LEFT;
                                  stage.scaleMode = StageScaleMode.NO_BORDER;
                                  s3d = this.stage.stage3Ds[0];
                                  s3d.addEventListener(Event.CONTEXT3D_CREATE, onContextF);
                                  s3d.addEventListener(ErrorEvent.ERROR, contextErrorF );
                                  s3d.requestContext3D(Context3DRenderMode.AUTO, Context3DProfile.BASELINE_EXTENDED);
                        private function contextErrorF(e:Event):void
                                  trace('Error ' + e);
                        private function onContextF(e:Event):void
                                  trace('Created ' + e);
                                  rc = Stage3D( e.target ).context3D;
                   trace(rc);
    Trace:
    Created [Event type="context3DCreate" bubbles=false cancelable=false eventPhase=2]
    [object Context3D]
    (used a TextField for output in my finished .exe)
    edit:
    Although unlikely, if your desktop GPU is old enough it very well may not support that mode.

  • How do I trace a function sequence error?

    Hi,
    can anyone tell me how I trace a function sequence error?
    I have a piece of VB code (that has worked on many occassions, which runs to 9i.
    I deleted the contents of my tables and then tried to run the same code again but got the following error message:
    run time error '-2147467259 (80004005)':
    [Oracle][ODBC]Function sequence error.
    ODBC does not create a trace file for this error and I was wondering if there is any other way for me to find what is actually causing this problem.
    thanks in advance,
    Ed.

    You should be able to enable tracing through the ODBC Data Sources manager on the Control Panel.
    Cheers, APC

Maybe you are looking for

  • Is it possible to display the standard function keys in screen painter

    Hi , I design a screen in se51 where I use push buttons and input/output buttons and so on in the layout, here in the layout or in my final output screen(when i assign this screen to a transaction) I would like to display other standard keys, ie the

  • Problem with dimension library error in system 11.1.1.3

    I am getting the following error,Is there anybody to give the solution for this error? There was some communication error. Response is : http://lova:19000/awb/modules/com/hyperion/awb/web/dimeditor/Adf.do <html><head><title>Hyperion Embedded Java Con

  • Import package (synonym) from db

    Hi, in our DWH we use a dedicated user (owbread) to read all data from all source databases . Tables are granted to this user in the source databases via synonym. The user does noown any tables , vies or packages himself. With tables this works fine.

  • Active employee list

    What is the best way to create an employee directory in Sharepoint 2010 that would display a list of all active employees and also have the ability to: - display the photo of each employee - allow creation of "views" of the list, e.g. only show emplo

  • Flash player plugin under win 7 64 bit IE doesnt install

    i have a acer laptop with win 7 64bit. i am using microsoft internet explorer 11 and want to install the flash player. the installclient install the activex version (32 bit) but it doesnt insall the plugin version. all the other pluggins are in 32 bi