Hello, I'm trying to get data in Power BI via Query in an Oracle DB and is experiencing the following error.
Unable to 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
However, the Runstarttimestamp field has exactly the format that is in the between. When I perform a query through SQL Developer it returns the results normally.
Since it's the first time I use Power BI, is there a rule 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