cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Optimized Story - Export to Csv / Xlsx - Script Error

11-15-2024 1:45 PM
rabia_tas Explorer
1696 views 5 comments Go to solution
0 Likes
SAP Managed Tags
Labels
Optimize StorySAP Analytics Cloud Export to CSV
Subscribe

Hello,

I am working with an Optimized Story in SAP Analytics Cloud (SAC) where I have created a button with a script to export table data to a CSV/Xlsx file. When I attempt to export the table using the button in our current tenant, I receive the following error message:

rabia_bi_0-1731674286521.png

However, when I try the exact same export in another tenant, it works without any issues. Both tenants are using import data. Does anyone know the possible reason for this discrepancy?

Thank you for your assistance.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

chmbilal
Participant

Hi,

Please check Script and try to set Widget by script. e.g


ExportToExcel_1.setWidget(Table_1);
ExportToExcel_1.exportReport();

 

Hopefully this will resolve the issue.

Regards

Bilal 

rabia_tas
Explorer
0 Likes

Hi,

Thank you very much, I adjusted the script the way you mentioned, and it worked.

It also works now with just exportToExcel_1.exportReport();.

I guess there was a system issue.

Thanks again for your response.

rabia_tas
Explorer
0 Likes
h
MiriMai
Discoverer
0 Likes
Hi, can you share the script to export to XLSX file?

Answers (0)