Invalid Julian day
Posted: Mon Sep 29, 2014 2:09 am
Hi all
I made a job involves timestamp comparison but it keep give me Invalid Julian day error.
the job itself is nothing too special
![Image](http://i.imgur.com/z5lP0s5.png)
and i am sure the problem is from this constraint
the TRX_DIM.DATE is a timestamp typed variable. I think the problem is from the string to timestamp conversion. if i change NullToValue(Trx_Dim.P_TRANSACTION_TS, "2099-21-31-00.00.00.000000") to CurrentTimestamp() it works. but i just can't get this statement works! I did lots of research and experiments but still can't fix the problem, any ideas?
cheers
abyss
I made a job involves timestamp comparison but it keep give me Invalid Julian day error.
the job itself is nothing too special
![Image](http://i.imgur.com/z5lP0s5.png)
and i am sure the problem is from this constraint
![Image](http://i.imgur.com/XBTkTYv.png)
Code: Select all
NullToValue(Trx_Dim.P_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE and NullToValue(Trx_Dim.C_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE and NullToValue(Trx_Dim.S_TRANSACTION_TS, "2099-21-31-00.00.00.000000") <= Trx_Dim.DATE
cheers
abyss