Hello All,
I'm facing a strange error.
When i invoke a Triple Exponential Smoothing Algorithm from SQL Console,
Everything works fine as expected and i get the desired results.
The input data and parameters have been prepared as explained in the documentation.
CALL _SYS_AFL.WOW_FCST_TRIPLE (V_WOW_FCST_DATA, WOW_FCST_PARAMS, WOW_FCST_RESULTS) WITH OVERVIEW
The problem arises when i try to invoke the same PAL Algorithm procedure from a SQL Script procedure.
Input data, parameter and parameters are same, and I triple checked for errors with this.
Procedure is created without any problem , but when i run it i get the error :
Could not execute 'call getTesOutputNew('2010-01-05')' in 196 ms 773 µs .
SAP DBTech JDBC: [2048]: column store error: search table error: [2620] VINAY.GETTESOUTPUTNEW: line 5 col 2 (at pos 97): InternalFatal exception: _SYS_AFL.AFLPAL:TRIPLESMOOTH: AFLFunctionFatal exception: PAL error[73001043]:Value [7] of parameter CYCLE is invalid. $APPEND$
What is strange is that , when i run the algorithm in SQL Console, i use the same parameters and it works fine.
Below is the snippet for create procedure : , i have checked for authorization,syntax and other issues and everything is what its supposed to be.
PFA the indexserver trace.
Any pointers on this?
dropprocedure getTesOutputNew;
CREATEPROCEDURE getTesOutputNew( IN TES_TILL_DATE DATE)
LANGUAGE SQLSCRIPT AS
BEGIN
inputtable = select
row_number() over (orderby"DATE" ) as CALENDAR_DATE,
PROD_QTY
from VINAY.ITEMSALESUBSET
where"DATE"
between'2010-01-01'and :TES_TILL_DATE
orderby
CALENDAR_DATE ;
P_WOW_FCST_PARAMS = select * from VINAY.WOW_FCST_PARAMS;
CALL _SYS_AFL.WOW_FCST_TRIPLE (:inputtable,:P_WOW_FCST_PARAMS, P_WOW_FCST_RESULTS) WITH OVERVIEW;
SELECT * FROM :P_WOW_FCST_RESULTS;
--insert into VINAY.FCST_HIST
--select top 1 *,to_DATE('2010-01-01'),'140574' AS "ARTICLE",'1282' AS "STORE" from :P_WOW_FCST_RESULTS order by CALENDAR_DATE DESC;