0
Hello, I am trying to get data in Power BI via Query on an Oracle DB and is showing the following error.
Cannot establish connection Details: "Oracle: ORA-01843: not a Valid Month"
SELECT DISTINCT
J.JOBID,
J.JOBNAME,
--J.FOLDERPATH,
SUBSTR(R.RUNSTARTTIMESTAMP,10, 2) "HORA START",
SUBSTR(R.RUNSTARTTIMESTAMP,13,2) "MINUTO START",
SUBSTR(R.RUNENDTIMESTAMP,10, 2) "HORA END",
SUBSTR(R.RUNENDTIMESTAMP,13,2) "MINUTO END",
SUBSTR(R.RUNSTARTTIMESTAMP,9, 6) "STARTTIME",
SUBSTR(R.RUNENDTIMESTAMP,9, 6) "ENDTIME",
R.RUNSTARTTIMESTAMP,
R.RUNENDTIMESTAMP,
R.ELAPSEDRUNSECS
FROM
DSODB.JobExec J,
DSODB.JobRun R,
DSODB.JobRunLog L,
DSODB.LogTypeRef T
WHERE J.ProjectName = 'MDM_PRD'
AND J.JobName = 'Jb_PssBip_Wpd001_SelectOrigemCarregaTrilha'
AND R.JOBID = J.JOBID
AND L.RUNID = R.RUNID
AND L.LogType = T.LogTypeCode
AND r.runstarttimestamp BETWEEN '17/07/18 00:00:00,000000000' AND '17/07/18 23:59:00,000000000'
ORDER BY r.runstarttimestamp
ASC
But the Runstarttimestamp field has exactly the format that is in the between. When I perform a query by SQL Developer it returns the results normally.
Since it’s the first time I use Power BI, is there any rule that I’m not using correctly? Could someone help me?
select sysdate from dual;
05/08/18
select localtimestamp,current_timestamp,systimestamp from dual;
05/08/18 16:34:35,657223000 05/08/18 16:34:35,657223000 AMERICA/SAO_PAULO 05/08/18 16:34:35,657209000 -03:00
Hello Diego. Thank you for your reply. I did the test on the nominee and returned the same error :/ AND r.runstarttimestamp BETWEEN '2018-07-17 00:00:00' AND '2018-07-17 23:00:00'
– Carlos Henrique Cardoso
No success yet. I will set fire to this hahahaha query
– Carlos Henrique Cardoso
@Diegorafaelsouza It worked man! Thank you very much. You are beast
– Carlos Henrique Cardoso
I recorded what I had said in the comments as a response to later community queries. So you can close this thread
– Diego Rafael Souza