We have a MS SQL Server database and this works in the report expression.
If (isdate([Demand Deposits / Savings].[Dates].[Charge Off Date]) = -1) then
([Demand Deposits / Savings].[Dates].[Charge Off Date])
else
(NULL)
But I will say that for all of our date fields/columns we check the for validity prior to creating a view with a datetime type column. Sometimes the customers have some half cooked column data that might be a date because it is user free form comments and they use the ISDATE.
what is your backend database? What does the raw data look like and what does your report expression look like that is giving the errors?
------------------------------
brenda grossnickle
------------------------------
Original Message:
Sent: Mon November 04, 2019 03:49 PM
From: Jenifer Broughton
Subject: String(date) to real date to use in filter??
I'm trying to convert a string (that should be a date). But I keep getting errors like:
ORA-01830: date format picture ends before converting entire input string
RSV-SRV-0042 Trace back:
or
RSV-SRV-0063 An error occurred while executing the 'asynchRunSpecification_Request' command. XQE-DAT-0001 Data source adapter error: java.sql.SQLDataException: ORA-01843: not a valid month
How can I get around this?
Thanks,
Jen
------------------------------
Jenifer Broughton
------------------------------
#CognosAnalyticswithWatson