OBIEE Cast as char,timestamp erroring

Hi,
I AM ABLE to use the cast as char and then cast as timestamp function on 2 date columns to get the time diffrnc using timestampdiff. This is on an ebs 11 instance database.
As we are upgrading to EBS R12, we set up a new test instance of obiee on this. But in this new test instance, the same formula is erroring out.
The date is in format yyyy/mm/dd. After cast as char , i get it in format mm-dd-yyyy in both instances. But on cast as timestamp,in the new (r12) instance i get the error
Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
I tried passing date in the format 'dd-mon-yy' (char format) in the r12 instance and then cast it timestamp and this seems to work. Why is the bi server expecting date in this format after char and how can i change this?
note:the nls_date_formats are same in both the database.
the date formats in both the nqsconfig.ini files are also same
any other place where i should set this?

Try to search the xml for the same code and replace using Catalog Manager.
Using Catalog Manager find your old code which is using cast as char and replace with new code for more details see
http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/prescatadmin.htm#i1046286
Since given suggestion worked can you mark as correct on my last response?
Edited by: Srini VEERAVALLI on Apr 1, 2013 9:46 AM
Edited by: Srini VEERAVALLI on Apr 1, 2013 9:52 AM

Similar Messages

  • Cast and Concat functions error

    Hi
    I am getting below errors while doing cast and concat
    The error message is nQSError: 22020] Function Concat does not support non-text types.
    and my concat code is
    CAST (cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char) AS DATE )
    Error when tried it differently [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] .
    CAST (concat(cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char)) AS DATE )
    Please suggest.

    Hi,
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Here I have taken this part of the code from above code and started testing from answers
    CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    what I could make out is when I was casting it to date I was getting the error
    ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute:
    So When I have casted it to char and removed the year function from concatenation it worked out.
    With the same idea I have used this part of the code in my main code above but here char was not working out, so I need to use date and there were no compilation
    errors as it used to be before.
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' '
    FROM CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Now when I check results in reports. I get the error ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute
    The problem here happening is
    Core."Dim - Date"."Date" data type is DATETIME
    and the concat string whole date type is DATE.
    Its like datetime=date
    Since becuase of this mismatch I assume I am getting this error.
    So I thought of changing the data type of Core."Dim - Date"."Date" data type in rpd. Even though I checked out to do the changes I am unable to do though I login with
    Admin account.
    Secondly I thought of changing the concat string whole date type to DATETIME then I get the syntax error.
    Any help on this would be much appreciated.
    Thanks.
    Edited by: 949675 on May 7, 2013 5:33 AM

  • CHAR RELATIONSHIP error in SEM BPS planning sequence

    Hi,
    I'm executing a planning sequence with 2 planning functions.
    1st being "Exit  funciton" & 2nd being "Repost funciton".
    I've a "characteristic relationship of type attribute"  defined at the planning area level.
    Am getting CHAR RELATIONSHIP check error when am executing this sequence.
    EXIT function gives blank values for a characteristic that is used in "characteristic relationship".
    But, REPOST function adjusts this blank characteristic value to actual value which will be correct when "CHARACTERISTIC RELATIONSHIP" is checked.
    When I execute sequence, EXIT function gets executed & CHAR RELATIONSHIP errors are being displayed before "REPOST" function is being executed.
    Is there any other approach to deal this scenario? like checking CHAR RELATIONSHIP after REPOST funciton execution?
    I can execute REPOST funciton from "EXIT FUNCTION" using API_SEMBPS_FUNCTION_EXECUTE, but this doesn't suit my needs.
    Please note that I've a need to use 2nd planning function rather deriving characteristic relationship from the EXIT function.
    Appreciate any ideas/thoughts.

    Hari,
    each function must produce results that adhere to the rules specified as characteristic relationships. BPS will always execute the char.relationships after the exit function. You might be able to avoid this by adjusting the characteristics in your planning level.
    Calling another function (like REPOST) from within an exit is not possible since BPS needs to finish processing the exit first, before it can run the repost.
    Regards
    Marc
    SAP NetWeaver RIG

  • Timestamp error in Pricing

    Hi All,
    I'm having an timestamp error in CRM pricing.
    Scenario:
    I'm in CRM 5.0, while creating a sales order , i'm getting an OPRO error, this is sorted by manually entering the conditon at the item level , everything works fine.
    My question is when i tried to anaylse the access i've come across this message
    Access not made due to missing timestamp.
    Please do an insight.
    Points will be given
    Kind regards
    Deepak

    Hi Kai
    I am also getting the same error
    Access not made due to missing timestamp (DET_DEFAULT_TIMESTAMP)
    can you please let me know the solution for the same
    regards
    Subhasis

  • Script error line 2107 char 1 error unspecifie​d error code 0 url://iefr​ame.dll/pr​iview.js

    officejet 4500 all-in-one will not print emails or webpages?
    I get this error message?
    script error
    line 2107
    char 1
    error unspecified error
    code 0
    url://ieframe.dll/priview.js

    Bana sürekli sorun yaşatan HP problemler bir yenisini daha ekledi ! Bilgisayarımı servisten alıp ofisime geldiğimde fark ettim ki, internete bağlanmayı sağlayan data hattın girdiği yuva boşlukta. yani ya kırılmış veya içinden parça çıkarılmış. Kartı takmaya çalışırken kart içeri kaçtı ve çıkmıyor. HP bilgisayarımı 2 ay boyunca hiç bir şey yapmaksızın serviste beklettiği için bilgisayarın garantisi 03/06/2011 da doldu ve ben şu anda bu sorunu nasıl çözeceğimi bilmiyorum. Bilgisayarım garantisi kasten doldurulup kasten kart girişi bozulmadıysa, HP den acil çözüm bekliyorum. batarya ile ilgili tüketici mahkemesine başvuru işlemlerini başlattım, bir de kart yuvası ve serviste kasıtlı bekletip garanti doldurmayla ilgili sorun yaşamak istemiyorlarsa, HP den birileri artık çözüm amaçlı bana dönsün. 14/06/2011 18:34

  • Internet Explorer 11: Script Error - An error has occurred in the script on this page? Line: 9, Char: 6, Error: 'animationScript' is undefined ...

    Using Internet Explorer 11:
    Suddenly, about two days ago, I started getting a Script Error message from almost every page I visit on Internet Explorer 11 and now it has affected my printing while in my Outlook/Hotmail account?  What is an absolute fix for this irritating
    Script Error message? I have to use Firefox to get by this problem which I do not much care for. What can I do to resolve this problem ASAP?
    Here is one full Script Error Message
    "An error has occurred in the script on this page.
    Line:     9
    Char:    6
    Error:  'animationScript' is undefined
    URL:   
    https://sc.imp.live.com/content/dam/imp/surfaces/mail_signin/3/mai/EN-CA
    Do you want to continue running scripts on this page?
               Yes    No
    Can someone please, please help me.  I have tried many things - doing a Restore, running Microsoft Safety Scanner.  Checking my Tools>Internet Options.  Running FixMeStick.  Nothing works to fix this problem.  Please what is the
    correct answer to this problem.  I have had to switch temporarily to Firefox to get by this Script Error Message.
    - thanks - needhelpnowbfm

    Windows version is...?
    What pages are giving you problems? [post links to same]
    Are you getting the script errors only when attempting to print or...?
    Has your printer's manufacturer confirmed that your currently installed printer software is IE11-compatible (yet)?
    ~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft

  • OBIEE Plug-in for AWM error: Missing spread attribute for dimension\

    Hi,
    While trying to export a cube to OBIEE administrator using the AWM plugin for OBIEE we get the following error for a lot of dimensions.
    AWM version is 11.1.0.7.0B on a 11.1.0.7 DB
    ERROR: Missing spread attribute for dimension DAY_FLG at level ALL_FLAGS
    ERROR: Missing spread attribute for dimension DAY_FLG at level FLAG
    ERROR: Validation problems found for dimension DAY_FLG
    Dimension DAY_FLG will not have UDML generated
    As suggested in other forums I have created a long_desc attribute and selected the "created level attribute in views" option for all the dimensions in the cube, still the error persists.
    Please help.
    Regards,
    Abhishek
    Edited by: 866977 on Jun 20, 2011 3:30 AM

    Thanks for you response David. But I'm afraid this does not solve the problem. I did it to all the dimensions and the error on day_flg persists. I noticed that an error on one of the other dimensions thougfh has changed. Detailed error below:
    ERROR: Missing spread attribute for dimension DAY_FLG at level ALL_FLAGS
    To Fix error: In AWM on the attribute panel for the long description attribute of each applicable dimension -
    select the check box 'Create level attribute columns in views'
    ERROR: Missing spread attribute for dimension DAY_FLG at level FLAG
    ERROR: Validation problems found for dimension DAY_FLG
    Dimension DAY_FLG will not have UDML generated
    ERROR: Missing spread attribute for dimension HOUR at level ALL_HRS
    ERROR: Spread Attribute HR_LONG_DESC found but is not visible for level HR
    The dimension HOUR will be marked invalid and no UDML will be generated for this dimension or any cube dimensioned by this dimension.
    ERROR: Validation problems found for dimension HOUR
    Please help

  • CQLServerTrace : out of order timestamp Error

    Hi everyone,
    When I try to run this command I am getting the error which I specified bottom, how can I solve this problem?
    is-total-order parameter was set to "True".
    This is a simple Helloworld Application
    channel parameters are default ( max threads and max size was set to 0
    11.1.1.7 Version
            SELECT
                           shortName, avg(price) as price
                      FROM
                           stockInputChannel [PARTITION BY shortName ROWS 3 RANGE 3 SLIDE 3]
                      GROUP BY
                           shortName
    <Apr 28, 2013 1:15:48 PM VET> <Emergency> <CQLServerTrace> <BEA-000000> <event timestamp is out of order timestamp0=1,367,171,106,000,000,000 timestamp1=1,367,171,103,357,000,000 event=22715375 : kind=E_PLUS tuple=Tuple(14886,25458514) 'obj=Stock21921411,3.3803851379397982,char[15]=FWGUKXDXBPSYGPB,1367171103357,char[5]=XTCFZ,1367171103357000000,byte[1],obj=PartitionNode25458617,' ts=1367171103357000000 totalOrderingGuarantee=true in PO_GROUP_AGGR#144
    oracle.cep.execution.SoftExecException: event timestamp is out of order timestamp0=1,367,171,106,000,000,000 timestamp1=1,367,171,103,357,000,000 event=22715375 : kind=E_PLUS tuple=Tuple(14886,25458514) 'obj=Stock21921411,3.3803851379397982,char[15]=FWGUKXDXBPSYGPB,1367171103357,char[5]=XTCFZ,1367171103357000000,byte[1],obj=PartitionNode25458617,' ts=1367171103357000000 totalOrderingGuarantee=true in PO_GROUP_AGGR#144
            at oracle.cep.execution.ExecException.OutOfOrderException(ExecException.java:154)
            at oracle.cep.execution.operators.GroupAggr.run(GroupAggr.java:780)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1002)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:984)
            at oracle.cep.execution.operators.ExecOpt.run(ExecOpt.java:1062)

    Hi,
    I am using Oracle CEP 11.1.1.4.
    I am trying to understand pattern matchin feature therefore my examples are meaningless. I am producing data like that ( between 1-3 and printing to console ):
    00:00:00 Producer produced 1
    00:00:05 Producer produced 2
    00:00:10 Producer produced 1
    00:00:15 Producer produced 3
    00:00:20 Producer produced 3
    00:00:25 Producer produced 1
    Then I am looking for the data ( or you can think that as 1-2-3 ) that has been produced once and has not been produced within last 10 seconds.
    I am using system-timestamp channels.

  • TIMESTAMP Error

    I get the following error :
    ERROR at line 2:
    ORA-01843: not a valid month
    when I try to insert in a timestamp : '2000-03-23 10:13:54'
    I have looked at TIMESTAMP format and it is set to : YYYY-MM-DD HH24:MI:SS
    I am using Oracle 9i.
    Is there a command I could use that would return what format my database is expecting for TIMESTAMP.
    Thanks Tony

    This is how you would do the parameter change (for DATE and TIMESTAMP datatypes), if not using explicit conversion, as shown in above examples:
    SQL> create table t (a date, b timestamp) ;
    Table created.
    SQL> insert into t values ('2000-03-23 10:13:54', '2000-03-23 10:13:54') ;
    insert into t values ('2000-03-23 10:13:54', '2000-03-23 10:13:54')
    ERROR at line 1:
    ORA-01861: literal does not match format string
    SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss' ;
    Session altered.
    SQL> insert into t values ('2000-03-23 10:13:54', '2000-03-23 10:13:54') ;
    insert into t values ('2000-03-23 10:13:54', '2000-03-23 10:13:54')
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> alter session set nls_timestamp_format = 'yyyy-mm-dd hh24:mi:ss' ;
    Session altered.
    SQL> insert into t values ('2000-03-23 10:13:54', '2000-03-23 10:13:54') ;
    1 row created.
    SQL>

  • OBIEE: Odbc driver returned an error

    Hello All,
    While creating an answers on Oracle BI Answers, we are encountering the following error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC I2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 29275, message: ORA-29275: partial multibyte character at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
    You can find the screenshot of the error:
    http://dl.dropbox.com/u/4734785/Image.jpg
    Thanks for your help,
    Vikram

    You have a conversion problem with your character set between the database and OBIEE.
    You have to set your NSL_LANG as you can see in this thread:
    ORA-29275: partial multibyte character
    To do this, you can do it in your connexion pool with an alter command. Check here for an image example:
    http://gerardnico.com/wiki/_detail/dat/obiee/presentation_service/obiee_connexion_alter_nls_date_format.jpg?id=dat%3Aobiee%3Acast_as_date
    Cheers
    Nico

  • OBIEE 11g presentation services login error

    Hi All,
    i am new to OBIEE 11g i have installed software and when i tried to login presentation services it is giving following error please help me.
    i stated all services in EM and in services (oracle process manager and node manager also)
    Enter your user id and password.
         Unable to Sign In
    An error occurred during authentication. Try again later or contact your system administrator.
    please help me
    reg,
    jel

    chane the password in weblogic console for weblogic user and try one more time..may be its problem of wrong pwd..

  • Timestamp error with IR 9.3 and CSV Files

    Hi all, I'm new to this forum and getting used to all of the Hyperion functionalities. I'm trying to create a query that will give me the history of orders and for that I'm using CSV files as the source of information. I have date fields that when I select them returns me a formatting error: "12/18/2009 doesn't match date format: 1992-01-31 00:00:00". I assume that this is because the field format is recognized as Timestamp. Is there a way to change the field format from within Hyperion?
    Appreciate your help!

    How and where exactly did you make this modification? I moved from an old PC to a new one and my queries work great on my old PC but with my new one, I am getting this "doesn't match date format:" error. I didn't have to make any changes when I set things up on my old PC (at least not that I remember) and not sure what to do here. Any help would be greatly appreciated.

  • Does CAST ( date as timestamp) causes performance issues

    Hi
    does casting from DATE to TIMESTAMP in a query or in a view causes the slow down of performance??
    Please guide...
    Thanks
    Rimpi

    Everything you do affect performance. How significantly is a question answered by testing not by asking questions on an OTN forum.
    Create a loop doing it 10,000 times and find out.
    And, in the future, always include your version number.

  • Obiee Answers Direct database request error

    Hi,
    I am learning obiee 10/g and installed 10g version on my laptop.
    when i tried to run the query in Answers through "direct database request"
    connection pool is > "SH"."Connection Pool"
    Sql statement is > Select * from Channels
    When i clicked on "validate sql and retrieve columns" button i get the below error
    error : Odbc driver returned an error (SQLExecDirectW).
    error : [nQSError: 16001] ODBC error state: S0002 code: 942 message: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    error : SQL Issued: {call NQSGetQueryColumnInfo('EXECUTE PHYSICAL CONNECTION POOL "SH"."Connection Pool" SELECT * FROM Channels')}
    What could be the issue ... Please advise
    Thank You

    Hi,
    The channels table is in the database schema ..because i am able to drag the columns from channels table in answers and veiw the results.
    when the query runs through the RPD it works fine .
    but when i run the query using direct database request feature of answers...I see the error.

  • Timestamp error in one-to-one load

    Hi, I'm facing a issue while loading data from oracle view to sql table.Its simple one to one load.SRC-SQ-TGT Error:Message Code : WRT_8229Message : Database errors occurred: FnName: Execute -- [Informatica][ODBC SQL Server Wire Protocol driver]Timestamp parameters with a scale, must have a scale less than ten and a precision equal to 20 plus the scale. You specified a precision of 999 and scale of 3. Error in parameter 1.FnName: Execute -- [DataDirect][ODBC lib] Function sequence error  When imported to informatica oracle source view has timestamp(29) Target SQL table has timestamp(23).   Assume this to be the issue.  Please let me know how to handle this issue. Thanks in advance,Vikram

    Hi All,  I'm trying to load data from flat file to oracle databse table using Informatica power center 9.1.0 and I have some special characters in source file. Data are loaded sucessfully without any errors but these special characters are loaded different way like 1) Planner – loaded as Planner ��������2) Háiréch  loaded as Hair��������ch  While same flatfile loaded into another flatfile,data loaded correctly including special characters.So,I am unable to understand problem with database or informatica.   SourceFlat File - comma ',' delimtedCode page is defined as UTF-8 encoding of Unicode Relational connectionI have tried by changing the code page while creating relational connection in Informatica to UTF-8, ISO 8859-1 Western European,  MS Windows Latin 1 etc.,didn't work. InformaticaIntegration Service and Repo code page is defined as UTF8Data movement code page of Integration server was set to UNICODE   TargetOracle databaseNLS_NCHAR_CHARACTERSET: AL16UTF16NLS_CHARACTERSET: AL32UTF8   ThanksSai

Maybe you are looking for

  • Accessing JSTL values from JSP

    I've run into a problem I'm not sure has a solution. Could be bad design on my part, or just a poor imagination. If this has been answered previously, please point me to the post. I am using some JSTL to do a SQL query and displaying the records in a

  • Credit Block for customers with out crossing the limit

    Recently credit limit of the all the cusotmers has been altered and been updted newly, but nbow when the rush orders creating for these customers, system is blocking the orders for the credit limit. i did run the program RVKRED77, but still credit da

  • How to view the output maintained at handling unit level

    Hi All, How to view the output which was maintained at Handling unit level in the delivery. Say for ex:- If we maintain the out put type LD00 at delivery level, we can view the output for the same in the change mode of outbound delivery. In the same

  • Presenter 7.07 error. "Adobe Presenter is unable to publish this presentation...."

    Hello, I am getting the following error for only one presentation out of perhaps 200 that my team and I have published in the last 3 years. "Adobe Presenter is unable to publish this presentation. Please check that you have enough disk space and you

  • Which is the best browser

    hi guys,i have a nokia X2-01 and i also have opera mini 7.1.what worries me is that the browser always hangs,which other browsers are fast and also best. Solved! Go to Solution.