Quantcast
Channel: Comments on: Create an Excel-file with PL/SQL
Viewing all articles
Browse latest Browse all 73

By: Ralph Bieber

$
0
0

Hi Anton,

first let me thank you for this great package.

Please note that I had an issue getting ORA-6502. I got this error when appliying “Auto Filter” in procedure “finish”. I debugged the procedure and found out an issue with concatination variable t_xxx.
When replacing this code using dbms_lob.writeappend resolves the issue.

I propose to replace all concatinations with pipe by dbms_lob.writeappend for t_xxx.

– ############################### CHANGED CODE #############
for a in 1 .. workbook.sheets( s ).autofilters.count()
loop
t_tmp:= ”;
t_len := length( t_tmp );
dbms_lob.writeappend( t_xxx, t_len, t_tmp );
end loop;
– ############################### CHANGED CODE #############

– ############################### ORIGINAL CODE #############
for a in 1 .. workbook.sheets( s ).autofilters.count()
loop
t_xxx := t_xxx || ”;
end loop;
– ############################### ORIGINAL CODE #############

kind regards

Ralph


Viewing all articles
Browse latest Browse all 73

Trending Articles