Hi Amir,
Just to check that this is not an PAL configuration problem.
Please do the following PAL check with following commands:
SELECT * FROM "SYS"."AFL_AREAS" WHERE SCHEMA_NAME = '_SYS_AFL' AND AREA_NAME = 'AFLPAL';
SELECT * FROM "SYS"."AFL_PACKAGES" WHERE SCHEMA_NAME = '_SYS_AFL' AND AREA_NAME = 'AFLPAL';
SELECT * FROM "SYS"."AFL_FUNCTIONS" WHERE SCHEMA_NAME = '_SYS_AFL' AND AREA_NAME = 'AFLPAL';
You can also do the same to test your APL (Automated Predictive Libraries):
select * from "SYS"."AFL_AREAS";
select * from "SYS"."AFL_PACKAGES";
select * from "SYS"."AFL_FUNCTIONS" where AREA_NAME='APL_AREA';
select * from "SYS"."AFL_FUNCTION_PARAMETERS" where AREA_NAME='APL_AREA';
None of the result tables should be empty if PAL & APL is configured correctly.
As for autorizations you can refer to the SAP HANA PAL guide:
For each AFL area, there is a role. You must be assigned this role to execute the functions in the library. The role for the PAL library is automatically created when the Application Function Library (AFL) is installed.
The role name is:
AFL__SYS_AFL_AFLPAL_EXECUTE
To generate or drop PAL procedures, you also need the following role, which is created when SAP HANA is installed:
AFLPM_CREATOR_ERASER_EXECUTE
From the document "SAP HANA Predictive Analysis Library (PAL)" - based on SAP HANA Platform SPS 09, Document Version: 1.1 – 2015-02-16
Try it out and please share your results.
Best regards,
Kurt Holst