Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am using QlikSense Desktop and I spent a time by trying how to call stored procedure in Oracle from Qlik.
When I run this procedure from SQL developer with the same user and from the same computer it is working
OK. The procedure is without parameter and only wipe the table.
The final version is:
LIB CONNECT TO [Oracle_DB];
SQL {CALL sp_wipe table};
SQL{CALL sp_fill_data_1};
SQL{CALL sp_fill_data_2};
SQL{CALL sp_fill_data_3};
tab1:
Select fields..... from Oracle_DB.table;
tab2:
Load field1 as XXX, field2 as YYY resident tab1;
This code produce in Qlik error message:
The file has the wrong format
Detail: QVX_UNEXPECTED_END_OF_DATA: Unable to get column information for the fields that are used in the query:
Object reference not set to an instance of an object.
What is interesting is that the procedure did the job in Oracle successfully - wipe the table.
I have another 3 procedures and all of them did the job well but produce the same error.
If I run the whole script in debug mode I can run the whole script with these errors and I get all data in table.
Thanks for any help incl. how to not stop the script in case of error.
Thanks
How about the privileges? Do you/team have the read-only permission to SP?
I don't know you have given typo error or missed this. We need to execute as
SQL EXEC {CALL sp_wipe table};
SQL EXEC {CALL sp_fill_data_1};
SQL EXEC {CALL sp_fill_data_2};
SQL EXEC {CALL sp_fill_data_3};
Hello, any ideas ? We are running Oracle 11g (11.2).
Thanks
For me it is fetching from SP. Not sure, what you've tried?
I will do the summary and little simplification. I have one stored procedure in Oracle DB. This procedure is working without any issue (I run it from SQL developer tool). This procedure only delete all data from one table in Oracle DB. I wrote code in Qlik Sense Desktop:
LIB CONNECT TO [Oracle_DB];
SQL {CALL sp_wipe_table};
This code produce the following error: