How to execute python scripts from Cognos Analytics
How to execute python scripts from Cognos Analytics
Troubleshooting
Problem
How to execute python scripts from Cognos Analytics
Cause
In general, you will need to review and convert Cognos Java SDK code to python script
Sample python script to upload a file (csv, xls,xlsx) to Cognos Analytics 11.1.7 and above using the REST API
Here is the link to download sample python script
https://accelerator.ca.analytics.ibm.com/bi/?
perspective=authoring&pathRef=.public_folders%2FIBM%2BAccelerator%2BCatalog%2FContent%2FAPI000
06&id=i770C8258004B4D84B47D25EDD3C82E10&objRef=i770C8258004B4D84B47D25EDD3C82E10&acti
on=run&format=HTML&cmPropStr=%7B%22id%22%3A%22i770C8258004B4D84B47D25EDD3C82E10%22
%2C%22type%22%3A%22reportView%22%2C%22defaultName%22%3A%22API00006%22%2C%22permis
sions%22%3A%5B%22execute%22%2C%22read%22%2C%22traverse%22%5D%7D
Document Information
More support for:
IBM Cognos Analytics (https://www.ibm.com/mysupport/s/topic/0TO500000002PVJGA2)
Component:
SDK
Software version:
All Versions
Document number:
7009031
Modified date:
30 June 2023