【发布时间】:2015-03-26 12:14:50
【问题描述】:
我们的 QVW 脚本失败,因为它找不到要连接的表或加载到 QVD 中。
部分重新加载时显示的错误消息
错误信息 1 找不到表 连接(日期) 加载 'P' & Num(period,'00') & yearcode AS #dFinYearPeriod, Num(period,'00') as dFinYearPeriod, Num(period,'00') 作为 dFinPeriod, '' 作为 dMonthEnd, Text(yearcode-1) & '/' & Text(yearcode-2000) AS dFinYear, Num(yearcode) AS dFinYearOnly, '' 作为 dMonth, 年份代码为 dYear, '' AS dMonthNo, '' 作为 dFinYearEnd_Cur, '' as dFinYearEnd_Prev
错误信息 2 找不到表 将日期存储到 C:\QlikView\QVD\DATES.qvd (qvd)
我们一直在通过脚本来回运行,找不到错误原因。据我们所知,QVW 没有任何改变,OLEDB 连接正常,所涉及的存储过程正常工作,sql 脚本也是如此。
从我们收到的错误消息来看,这似乎是脚本故障点,但我们无法找出原因...
DATES:
LOAD
'P' & Num(dFinPeriod,'00') & Date(dFinYearEnd_Cur,'YYYY') AS #dFinYearPeriod,
if(isnull(dMonthEnd),
Num(dFinPeriod,'00'),
(if(dMonthEnd = '',
Num(dFinPeriod,'00'),
Num(dFinPeriod,'00') & ' (' & Text(Date (dMonthEnd,'MMM')) & ')'
)
)
) as dFinYearPeriod,
Num(dFinPeriod,'00') as dFinPeriod,
Date(dMonthEnd, 'DD/MM/YYYY') as dMonthEnd,
Text(Date(dFinYearEnd_Prev,'YYYY')) & '/' & Text(Date (dFinYearEnd_Cur,'YY')) AS dFinYear,
Year(Date(dFinYearEnd_Cur, 'DD/MM/YYYY')) AS dFinYearOnly, //Return integer
Text(Date(dMonthEnd,'MMM')) AS dMonth,
Text(Date(dMonthEnd,'YYYY')) as dYear,
Num(Month(dMonthEnd),'00') AS dMonthNo,
Date(dFinYearEnd_Cur,'DD/MM/YYYY') as dFinYearEnd_Cur,
Date(dFinYearEnd_Prev,'DD/MM/YYYY') as dFinYearEnd_Prev
//Filter to only financial year 2011/2 and later
WHERE Text(Date(dFinYearEnd_Cur,'YYYY'))>=2012
;
SQL EXEC
dbo.spGetMonthEnds
;
//Add on the non-date f periods ie. 13 to 16
Concatenate (DATES)
LOAD
'P' & Num(period,'00') & yearcode AS #dFinYearPeriod,
Num(period,'00') as dFinYearPeriod,
Num(period,'00') as dFinPeriod,
'' as dMonthEnd,
Text(yearcode-1) & '/' & Text(yearcode-2000) AS dFinYear,
Num(yearcode) AS dFinYearOnly,
'' AS dMonth,
yearcode as dYear,
'' AS dMonthNo,
'' as dFinYearEnd_Cur,
'' as dFinYearEnd_Prev
;
SQL Select
yearcode,
period
from
d_details
where
period <>'R' and
period >12 and period <=16
and yearcode >=2012
group by
yearcode,
period
;
STORE DATES into $(vFolder)DATES.qvd (qvd);
DROP Table DATES;
完全重新加载时的消息
Connecting to Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=WRVS;Data Source=rvs-psfsql-1-a;Use Procedure for Prepare=1;Auto Translate =True;数据包大小=4096;工作站 ID=WRVS-CLICK-1-A;对数据使用加密=False;尽可能使用列排序标记=False 连接的 日期
脚本执行似乎正常工作,它正在拉回线路,但似乎无法找到要连接或存储到 QVD 中的 DATES 表。
发生的日期操作很早就已经到位,SQL 脚本中没有什么奇怪的东西可以打破这些。
有什么想法吗?
谢谢
【问题讨论】:
-
通过调试器运行时也没有收到任何错误消息。
标签: qlikview