I haven't played with JSON yet in IBM PA. The documentation states that it is available only in v12, so I'm unsure how you would manipulate the JSON file from the TI process.
Original Message:
Sent: Thu April 10, 2025 06:05 AM
From: Vitalij Rusakovskij
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hello Vlad,
it sounds great!
Is it also possible for JSON as Drill-result?
To get JSON at the end, you need in Epilog the following command:
ReturnTableHandle();
------------------------------
Vitalij Rusakovskij
Original Message:
Sent: Tue April 08, 2025 10:24 PM
From: Vlad Didenko
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hi Vitalij,
I have added custom logging to the SPACE roadmap!
You can AsciiOutput
to write custom headers and content to a text file in your Prolog, Metadata or Data section and use RETURNSQLTABLEHANDLE;
in the Epilog, assuming you are using that file as an ODBC data source for your dill through process with a query like select * from YourFileName.csv
------------------------------
Vlad Didenko
Founder at Succeedium
TeamOne Google Sheets add-on for IBM Planning Analytics / TM1
https://succeedium.com/teamone/
Succeedium Planning Analytics Cloud Extension
https://succeedium.com/space/
Original Message:
Sent: Mon April 07, 2025 09:19 AM
From: Vitalij Rusakovskij
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hello Vlad,
the 2 idea sound great!:
button and custom logging utility.
3: you can define your own output file with special column and row names.
Is it technically possible?
------------------------------
Vitalij Rusakovskij
Original Message:
Sent: Sat April 05, 2025 12:02 AM
From: Vlad Didenko
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hi @Vitalij Rusakovskij,
Drill-through functionality is available via the TM1 REST API.
For files, the server returns both column headers and data.
If the TI process has access to the file, you can customize both the headers and the data as needed.
Re-reading the previous posts... @Edward Stuart's intention was to leverage the drill through functionality to automatically display the custom log file when the process finishes execution, but the UI does not open the drill through viewer if you simply call the drill process it through the REST API.
There are a few ways we could easily add this functionality to SPACE, for example:
A button to quickly display the contents of a custom log file located on the TM1 server.
A custom logging utility that TI processes can leverage (via an API call to the SPACE server), combined with an embedded log viewer embedded into PAW, offering features like filtering and search.
Let me know your thoughts or if you'd like to collaborate on a prototype!
------------------------------
Vlad Didenko
Founder at Succeedium
TeamOne Google Sheets add-on for IBM Planning Analytics / TM1
https://succeedium.com/teamone/
Succeedium Planning Analytics Cloud Extension
https://succeedium.com/space/
Original Message:
Sent: Fri April 04, 2025 08:21 AM
From: Vitalij Rusakovskij
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
maybe you are right, George.
Do you think, it would be necessary, to have or to get the possibility of changing the column and row names?
@Vlad Didenko,
do you have this functionality already?
------------------------------
Vitalij Rusakovskij
Original Message:
Sent: Fri April 04, 2025 08:17 AM
From: George Tonkin
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hi Vitalij, Not that I am aware of as the data is simply being represented in a grid.
------------------------------
George Tonkin
Business Partner
MCI Consultants
Johannesburg
Original Message:
Sent: Fri April 04, 2025 02:26 AM
From: Vitalij Rusakovskij
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hello George,
is it possible to rename or to define the names of the cells in ASCII afterwards or does it stay unchanged?
Thanks in advance.
------------------------------
Vitalij Rusakovskij
Original Message:
Sent: Fri October 20, 2023 09:31 AM
From: George Tonkin
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Hi Ardian,
The drill process should be a fairly simple one, or is on my side:
Prolog:
DataSourceType = 'CHARACTERDELIMITED';DataSourceNameForServer=pFilename;
Epliog;
ReturnCSVTableHandle;
pFilename in my case happens to be an element from a dimension containing TM1ProcessError logs.
Performing the drill then passes the element to the parameter and that is used as the data source.
I did remove the path statement I join as a prefix to pFilename to keep the example simple.
I also removed a lookup to a cell where the user can specify the DatasourceASCIIDelimiter, again to keep the example simple.
HTH
------------------------------
George Tonkin
Business Partner
MCI Consultants
Johannesburg
Original Message:
Sent: Fri October 20, 2023 09:22 AM
From: Ardian Alikaj
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
I tried using ReturnCSVTableHandle in a drill process, to allow end users to open an Audit file that gets created when they run an Action button that uploads data into a cube. The Audit file contains the lines that were skip and an error description so they can fix the data and load the file again.
When I use ReturnCSVTableHandle, to return the Audit File through a Drill Process, it throws an error as below:
Drill error
Drill Process returned an error. The element or other information might be empty.
And the file remains locked, so it seems like TM1 accesses the file but it fails to display it in the grid
As an alternative, I have created a cube, with a few dimensions (Client, LOB, Business Function, Line Item, Measures), and the rejected rows are stored in the cube. Then in the Drill Process, we create a view with Data related to that Specific User/Business Function, and use RETURNVIEWHANDLE to return the View. This work fine, but even though we secure the LOB dimension, this is not enough. Our security model is more complicated, so users should not be able to see the data other users are loading.
We don's have a Security Group for each user, so we cant apply the security in the Client dimensions (which is a copy of }Clients dim)
------------------------------
Ardian Alikaj
Original Message:
Sent: Thu October 19, 2023 10:48 AM
From: Edward Stuart
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Success of sorts, jumped on a call with @George Tonkin and the drill through process was simple enough and worked as expected, I've not used "ReturnCSVTableHandle" before so it was a new one for me:
"To support drillthrough to CSV, the TI function ReturnCSVTableHandle returns the handle of the CSV datasource. The REST API reads the datasource and converts the data to drillthrough rows."
Drill.To.Debug.File Process:
#Section Prolog
DatasourceASCIIDelimiter = ',';
DataSourceType = 'CHARACTERDELIMITED';
DatasourceNameForServer = 'GetCubeDetails.txt';
#Section Epilog
ReturnCSVTableHandle;
and a DrillThrough Rule referencing the above process
[] = S: 'Drill.To.Debug.File';
The resultant Drill Through returns:
"The naming scheme of the CSV columns follows the Excel scheme: A, B, ... Z, AA, AB, and so on."
This drill through to CSV/ text file works well for static files or for listing all files in a /Logs folder for example but the hope is to run a request to IBM Planning Analytics to immediately run this drill through to file to review an AsciiOutput.
For the time being I will make a ProcessLog cube with StatusCode and Body for HttpRequests to get this feedback and will continue to investigate the API calls to see if we can trigger the grid view which could give immediate feedback if a call has not been successful
------------------------------
Edward Stuart
Original Message:
Sent: Thu October 19, 2023 06:13 AM
From: Edward Stuart
Subject: Planning Analytics Engine - Drill Through to AsciiOutput File
Over in the blogs section I have been slowly adding new content around the Planning Analytics Engine, in one of those posts @George Tonkin raised a good point that we could potentially Drill Through to AsciiOutput files as part of the Debugging process.
As many do, I tend to run a series of AsciiOutput statements into my TI Processes to test all manner of different conditions/ values/ logic etc..
In the Planning Analytics Engine, we no longer have access to the underlying folder structure and as such any debugging will default to the file manager. We can add folders at will to the file manager but fundamentally we need to download the debug file to check it's contents.
We could debug into a 'debug cube' but the point of AsciiOutput is it is quick and easy and flexible.
George mentioned that we could use 'ReturnCSVTableHandle' which in turn relates to 'ExecuteRelationalDrillThrough' which can operate on an ODBC data source or a csv table
The theory is that we could add an API call to the end of a development process to automatically pull up the details of an AsciiOutput file generated as part of the debugging process instead of continually accessing the file manager and downloading the files
------------------------------
Edward Stuart
------------------------------