Getting an error - with date prompt

Hi,
I really need a help to resolve this issue -
I have created a date prompt As of date with presentation variable name CPG_CASH_DATE.
I have use this variable in different number columns - Amount Due Original , Amount Applied , Amount Due Remaining.
Inside the amount due original the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Due Original",0) ELSE 0 END
Inside the amount applied the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Applied",0) ELSE 0 END
Sometimes it is working -but now I am getting below error.
Oracle Error code: 1861, message: ORA-01861: message: ORA-01861: literal does not match format string
at OCI call OCIStmtExecute:
Please help me to resolve this issue.
Poojak

Poojak,
This is a common error when attempting CAST to dates. I've resolved this in the past using Gerad's post here, http://gerardnico.com/wiki/dat/obiee/cast_as_date
I'm not sure why you are getting thie inconsistency when you say it was "sometimes" working and now it is not. Perhaps you've been in iterative develpment and changed a few things which broke something here.
Take a look at Gerad's notes that this will resolve your issue.
Please awards points if this helps or answers your question.
Cheers,
Christian
http://www.artofbi.com

Similar Messages

  • Report data binding error with date values

    I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
    that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
    my sql results to a CF Report Builder 7.02 PDF report and it works
    fine. If I dump the date values before I change them, they look
    like the following: {ts '2004-12-20 00:00:00'} . However I have
    tried a number of ways of manipulating the date before sending it
    to the report, but I continue to get errors. I don't care what
    format they go to the report in, since the report reformats them
    anyway. I checked to make sure that none of the dates were null.
    For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
    {ts '2004-12-20 00:00:00'} format when I dump the query results to
    screen. Where:
    ldCFPrcInputDate = 12/20/2004
    CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
    00:00:00'}
    ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
    00:00:00'}
    I get the error:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    coldfusion.runtime.OleDateTime -> Date
    Not using the CreateODBCDate function for example <cfset
    ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
    get:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    java.lang.String -> Date
    Here are some of my failed attempts:
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    #ldCFPrcInputDate# />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    Trim(createODBCDateTime(ldtmpdate)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate({05-07-2006}) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('{05-07-2006}') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(05/07/2006) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('05/07/2006')/>
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(parseDateTime('05/07/2006')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime(05/07/2006)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
    />
    I also did some googling without success. Any help is
    appreciated.

    You may want to make sure that the column is not included in
    the query variable list in your report cfr file.
    The newest version of the Report Builder, which may be
    installed on the server, no longer tolerates vars appearing in that
    list of they are not in the query itselft.

  • Why do I keep getting an error "insufficient data for an image" when opening a document

    why do I keep getting an error "insufficient data for an image" when opening a document in Adobe Reader XI 11.0.06

    I am also having this problem, especially with scanned documents. Since I need to download scanned documents in my work this is a big problem!Sometimes I can read but not save the document, sometimes one or two of the pages will be blank from the start. I have the latest version of Adobe Reader XI (11.0.10). I tried reducing the page zoom, a suggested workaround on this page: Acrobat: “Insufficient data for an image” error after updating to 10.1.4 or 9.5.2,  but that did not help at all. FWIW I use a Windows 8.1 PC with 4 GB RAM. I usually download PDFs from the internet using Firefox.

  • Holding down "shift" during startup causes an "address error" with a prompt

    while booting from a dedicated OS 9.2.2 drive,...
    holding down "shift" during startup causes an "address error" with a prompt to restart holding the shift button,...
    an ideas,....?
    it otherwise starts up fine normally,....
    with spacebar depressed everything good too,.... into extensions manager...
    but booting with extensions off causes that address error crash just before desktop is to appear,...
    hmmm,.... ideas,....?
    thanx

    Well, address error means it's getting an odd addy somehow, and if it's with Extensions off, then maybe a PRAM or NVRAM reset would cure it...
    Have you done a PRAM reset...
    http://docs.info.apple.com/article.html?artnum=2238

  • Keeping getting an error with-in the App Store. Error 100 saying that my payment can't be received at the time. I updated to Mountain Lion to download the new Logic Pro X. Now left with now recording software and it's not letting me buy the new one.

    Keeping getting an error with-in the App Store. Error 100 saying that my payment can't be received at the time. I updated to Mountain Lion to download the new Logic Pro X. Now left with now recording software and it's not letting me buy the new one.
    iMac, OS X Mountain Lion (10.8.4), trying to get Logic Pro X

    Hello jst84,
    The following article may be helpful in getting your purchase to complete.
    Mac App Store: "An unknown error occurred (100)" when purchasing
    http://support.apple.com/kb/TS3637
    Cheers,
    Allen

  • Library Update rqstd on Aperture 3.2; now won't open get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"   TIme machine won't load backup "error code -8003"

    Aperture working on OS 10.6.8 then Library Update rqstd on Aperture 3.2; said yes;
    now Aperture won't open,  get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"  
    TIme machine won't load backup "error code -8003"
    Tried reloading Aperture 3.2 but get same result.

    You’re running an outdated copy of Safari on your Desktop. That won’t work.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A to open the Applications folder. Check that the Safari application is in that folder. If it is, use it, and delete the copy on your Desktop. Never move or copy built-in applications.
    If you've deleted Safari from the Applications folder, back up all data, then reinstall OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • When installing Premiere Elements I get an error with Shared Technologies

    When installing Premiere Elements onto a Windows XP Service Pak 3, I get an error with Shared Technologies.

    Hi,
    Thx for the reply.
    I had Bridge open in background and once I closed that Elements installed correctly.
    Thank you.

  • What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    Can you give more details?   What exactly is the entire error message text?  there should be an error number too.   Are you trying to finalize this to an external disk?

  • HT3275 Can some HELP, I keep getting this error with my Time Machine Back up, "The backup disk image "/Volumes/JKPN Safe/JKPN IMAC.sparsebundle" is already in use.

    Can some one HELP me , I keep getting this error with my Time Machine Back up, "The backup disk image “/Volumes/JKPN Safe/JKPN IMAC.sparsebundle” is already in use.

    See > http://pondini.org/TM/C12.html

  • Invalid Year error when refreshing the report with date prompt

    Hi All,
    I am working on BO XI 3.1 with Informix database.
    When refreshing the report without any date prompt the report is running fine,but when applying the date prompt it is giving the error message
    "Invalid year in the date".
    I have tried changing the value in the advance tab of the object property to 'yyyy-mm-dd hh:mm:ss'
    But it also din't work for me.
    Please suggest.
    Thanks and Regards,
    Rishabh

    Hi Experts,
    Thanks for your suggestions.
    Since changing the PRM file was not a fesiable solution for us.
    We have manged to find a work around to solve this issue
    We have created the filters at universe level with following formula for all the date objects which we ere using at report level as a prompt:
    @Select(classname\objectname)=TO_DATE(@Prompt('Enter Date:','D',,mono,free,not_persistent), '%Y/%m/%d')
    Although when we parse this formula it wil give an error message saying 'illigle operation',
    still it will work when we use this at report level.
    Thanks and Regards,
    Rishabh

  • Error in date prompt after migrating from 5.x to XI R2

    Hi,
    We have migrated from 5.x to XiR2  SP5 and are facing a problem with the date input parameter.
    Our users use DESKI , when they try to access thier reports  based on Stored Procedure,and the reports  having date prompt , they get an error.
    In 5.x they used to enter the date as DD MON YYYY , in XIR2 they enter it as MM/DD/YYYY but still we get the error
    "The variable is of type date enter its value in the format 9/17/2009 14:50:00 PM"
    The users tried this too but still the same error persists. The Oracle.prm and Oracle.sbo file on teh users machine is the same as that of the server.
    I am able to recreate this error after logging onto the server and opening DESKi there. This error is occuring only with Stored procedures that take date as input parameter
    has anybody faced this issue before, any resolutions for this
    Thanks in advance
    Shreekantha

    Hi,
    After analyzing this problem , what we found that no Stored Procedures that take user input are functioning, irrespective of teh datatype of the input prompt.
    For all SPs that take user input we get an error saying
    Connection or SQL sentence error: (DA0005)
    Exception: DBD, ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'PROCEDURE_TEST_WITHOUTDATE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    State: N/A

  • Error with Date Variable

    I am trying to create a process to import to import data using a date variable but when I use the date to get the data from SQL server I am getting a error.
    I have tried setting the variable as both a string and date - Select
    CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) and map it to the Variable. The date variable is working. It’s correct in the Watch and I am able to use the variable to get data from an Open Link database (row_date = ?)
    in the OLE DB Source query. I get a "Invalid character value for cast specification"
    error when doing the same thing to get data from an SQL Server OLE DB Source
    where the date field is DateTime (row_date = ?). I have tried making the variable as a date and string but get the same error regardless. To make it work, I have to duplicate the date
    calculation in the query - HAVING (row_date = CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) ) which works fine.
    HAVING (row_date = ?) gives the error with the Parameter mapped to the variable.
    Any suggestions as to how to make this work correctly?

    May I suggest to use style 111 instead of 101?
    From experience, yyyy/mm/dd date format will work most of the time for date conversion and
    It's due to different date format from mm/dd/yyyy to the system date format that SQL Server is using.
    Hope this helps.
    ~ J.

  • Why do I get parsing errors with my WSDL URL for Web Services usage

    Hi,
    I am puzzled with the errors I get when I want to create a Web Service datastore.
    Scenario: I have created a SAP Web Service from CRM using SOAMANAGER. The WSDL URL produced by SOAMANAGER is accessibile when pasting the URL directly in Internet Explorer. WSDL URL [http://UXCIQ0M.WDF.SAP.CORP:50076/sap/bc/srt/wsdl/srvc_CBDCB34C89C29304E10000000A4282C0/wsdl11/allinone/ws_policy/document?sap-client=504]
    When using the WSDL URL in the Web Service datastore URL field, I get the error An error occurred while importing metadata: WSDLException; faultcode=PARSER_ERROR: Problem parsing: The element type "br" must be terminated by matching tag "/br". (BODI-1111469) (BODI-1112446)
    When I save the WSDL defintion in a local file and use a local file path, I get the errors An error occurred while importing metadata: WSDLException (at /wsdl:definitions/wsdl:portype/wsp:Policy): faultcode=INVALID_WSDL: Encountered unexpected element 'Policy. (BODI-1111469) (BODI-1112446)
    My questions:
    - Why do I get different parsing errors despite the fact that the XML is the same?
    - The WSDL is generated by SOAMANAGER. Shouldn't it work directly when integrating with Web Services generated from an SAP environment?
    - Is this related to confiurgation issue? I have set the Job Manager to Support adapter, message broker and SNMP communication
    - What is the difference between the datastore of type Adapter and the datastore Web Service? In the white paper [http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20bd5e60-11f9-2b10-2bbb-b5109cceff08?quicklink=index&overridelayout=true] it is mentioned to use the Adapter type to consume a Web Service. It is not clear to me why we have those 2 types.
    Thanks & Best Regards
    Isabelle

    Some updates on this issue, which might help others in the community.
    - Data Service doesn't support ws_policy.
    - SAP NetWeaver 7.0 SOAMANAGER generate WDSL with ws_policy. In future releases, it is possible to specify not to use ws_policy
    - In most cases, replacing ws_policy with standard  in the URL directly, works. It doesn't work with Data Services :(.
    - Replacing ALL ws_policy in the XML directly is currently the only way to have the WSDL definition being parsed properly by Data Services.

  • Excel 2013 Powerpivot datamodel error with DATE formula

    Hello forum users and Excel guru's alike.
    I have a question relating the datamodel in Excel 2013 Powerpivot. I am using a Dutch version of Excel (on Office 365) but formula's in Datamodel are all in English so I think most of you will understand the issue:
    What I want to do: Take a date and adjust this date to incorparate a number of months that is added in a other column.
    Example:
    Start of contract date: 24-5-2014 (this is a date field in the datamodel and it is called [StartContract])
    Contract duration in months: 10 (this is a number field in the datamodel and it is called [DurationInMonths])
    Output: 24-03-2015
    (this is the calculated field that doesn't work)
    My current formula looks like this:
    =DATE(YEAR([StartContract]);MONTH([StartContract]+[DurationInMonths]);DAY([StartContract]))
    It shows an error as soon as I hit Enter. The formula works fine when I replace [DurationInMonths] with the value "10" or when I leave out "+[DurationInMonths]". But that isn't an option!
    The following variation also doesn't work.
    =DATE(YEAR([StartContract]);MONTH([StartContract])+[DurationInMonths];DAY([StartContract]))
    Please, is there any one with a solution?
    Kind regards,
    Erik van Hurck

    Hi Tony,
    I have tried your solution, to no succes I am sad to say.
    I do agree that the formula works in Excel, but now switch over to the
    PowerPivot Data model and try the formula there. And it will repport an error:
    =DATE(year([StartDate]);month([StartDate]+[DurationInMonths]);DAY([StartDate]))
    is the formula I used in the Datamodel.
    The DurationInMonths field is:
    Whole numbers and formatted as: General
    The StartDate is:
    Auto (Date) and formatted as: Short Date
    For more Information I get this error:
    Cannot query internal supporting structures for column "EndDate" because they depend on a column, relationship, or measure that is not processed. please refresh or recalculate the model. Maybe this link will help further:
    http://office.microsoft.com/en-au/excel-help/upgrade-power-pivot-data-models-to-excel-2013-HA103356104.aspx

  • Sql loader error with date format

    Hi everyone,
    I have table and have a data in one coulmn RECORDED_DATE like '20090224' and my client is asking me to load this coulmn data in 'yyyymmdd' format.I am strucked up with my ideas.I used to_date('20090124','yyyymmdd') in control file.but it is also not working Here it is my control file
    LOAD DATA
    INFILE 'C:\xxxx\SQLLDR\HE data\HE_data_Feb.txt'
    BADFILE 'C:\xxxx\SQLLDR\HE data.bad'
    DISCARDFILE 'C:\xxxx\SQLLDR\HE data.dsc'
    INTO TABLE LSCCMGR.FASTPAY_HE_DATA
    REPLACE
    fields terminated by X'09'
    TRAILING NULLCOLS
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    AGENT_ID
    MEASURE
    TRANSACTIONS
    FEES
    If i excute like this i am getting the error like
    Record 1: Rejected - Error on table LSCCMGR.FASTPAY_HE_DATA, column RECORDED_DATE.
    ORA-01843: not a valid month
    Getting for all records,what i need o change to get the RECORDED_DATE as dateformat.Ple any one help me in this issue to resolve
    How can we perform this using sql loader pls let me know,Thanks in advance.
    Sravan

    Hi,
    &gt;&gt;(RECORDED_DATE "TO_DATE(:RECORDED_DATE,'mm/dd/yyyy')"
    *Change this line to*
    (RECORDED_DATE "TO_DATE(:RECORDED_DATE,'yyyymmdd')"Regards,

Maybe you are looking for