Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi,
For the following script I am getting field not found error:
[Max_Dim_time]:
load date(floor(max("UPD_TS")), 'DD/MM/YYYY') as "Max_Upd_Time" resident [Dim_Office_Updated_Date] order by "Max_Upd_Time" DESC;
I have traced that for this portion of code : order by "Max_Upd_Time" DESC i am getting error.
Please help me for this.
Thanks,
Sandip
You can't use a field in the Order By clause which is being created in the same load. Try creating your "Max_Upd_Time" field in the previous load and then try like:
[Dim_Office_Updated_Date]:
load [UPD_TS],
date(floor(max("UPD_TS")), 'DD/MM/YYYY') as "Max_Upd_Time"
from $(vExtractPathName)\Dim_Office.qvd(qvd);
[Max_Dim_time]:
Order
load "Max_Upd_Time"
resident [Dim_Office_Updated_Date] order by "Max_Upd_Time" DESC;
Can you send full script. I mean before resident load file
[Dim_Office_Updated_Date]:
load [UPD_TS] from $(vExtractPathName)\Dim_Office.qvd(qvd);
[Max_Dim_time]:
load date(floor(max("UPD_TS")), 'DD/MM/YYYY') as "Max_Upd_Time" resident [Dim_Office_Updated_Date] order by "Max_Upd_Time" DESC;
You can't use a field in the Order By clause which is being created in the same load. Try creating your "Max_Upd_Time" field in the previous load and then try like:
[Dim_Office_Updated_Date]:
load [UPD_TS],
date(floor(max("UPD_TS")), 'DD/MM/YYYY') as "Max_Upd_Time"
from $(vExtractPathName)\Dim_Office.qvd(qvd);
[Max_Dim_time]:
Order
load "Max_Upd_Time"
resident [Dim_Office_Updated_Date] order by "Max_Upd_Time" DESC;