Product:

Planning Analytics Workspace 2.1.19

Microsoft Windows 2022 server

Problem:
Unable to connect to a TM1 server from Planning Analytics Workspace (PAW) and the error message “ConnectTimeoutException” appears.

Planning Analytics For Excel: ConnectTimeOutException error message. Unable to refresh contents of widget.

500 (internal server error)

A connection could not be established from PAW to the TM1 server model however the same TM1 server model was accessible via Architect.

Other TM1 server models connect fine from PAW.

Suggested Solution:
In the tm1s.cfg file of the affected TM1 server model, the parameter IPaddressV4 was configured incorrectly.

Set the IPaddressV4 to the correct value (e.g. IPaddressV4=”10.200.100.22″) and restart the TM1 server.

 

More Information:

https://www.ibm.com/docs/en/planning-analytics/2.1.0?topic=parameters-ipaddressv4

https://bihints.com/sites/default/files/tm1scfg.html

Planning Analytics Configuration File Breakdown

if the machine has multiple network cards (Ethernet or vEthernet, it does not matter) then the “TM1 Admin Server IP address” is the one with the lowest Interface Metric number.
This value can be found by running this command in Powershell:

Get-NetIpInterface

 

If we want to modify the interface number of one card (so that to clarify the configuration), This can be done by using the following command:

set-netipinterface -ifIndex <ifindex_of_the_card_to_modify> -InterfaceMetric <new_number_to_use>

(a reboot might be necessary)

Product:

Microsoft Windows Server

Issue:

List the domain controllers in your network. To find out if they have moved/changed. This to check why you sometimes can not login that fast to Cognos Analytics.

Solution:

In a CMD prompt enter:

nltest /dclist:yourdomain.com

 

In Cognos Analytics you can specify if Cognos should use one DC or all in the domain to get load balance in login.

  1. On every computer where you installed Content Manager, open Cognos Configuration.

  2. In the Explorer window, under Security, right-click Authentication, and then click New resource, Namespace.

  3. In the Name box, type a name for your authentication namespace.

  4. In the Type list, click the appropriate namespace and then click OK.

    The new authentication provider resource appears in the Explorer window, under the Authentication component.

  5. In the Properties window, for the Namespace ID property, specify a unique identifier for the namespace.

  6. Specify the values for all other required properties to ensure that Cognos 8 components can locate and use your existing authentication provider.

  7. Specify the values for the Host and port property.

    To support Active Directory Server failover, you can specify the domain name instead of a specific domain controller. For example, use mydomain.com:389 instead of dc1.mydomain.com:389.

  8. If you want to be able to search for details when authentication fails, specify the user ID and password for the Binding credentials property.

    Use the credentials of an Active Directory Server user who has search and read privileges for that server.

  9. From the File menu, click Save.

  10. Test the connection to a new namespace. In the Explorer window, under Authentication, right-click the new authentication resource and click Test.

 

Check also that CA can access the SQL database that is used for the content store, if that has communication limitations, you can also be hard to login to Cognos Analytics.

More Information:

https://merits.rootsgardenschool.edu.pk/list-domain-controllers-cmd 

https://industrialmonitordirect.com/blogs/knowledgebase/discovering-active-directory-dcs-on-otit-networks 

https://www.ibm.com/docs/en/cognos-analytics/12.0.x?topic=server-configuring-active-directory-namespace 

https://kzncognos.kzntreasury.gov.za/cognos8/documentation/en/inst_cr_winux_id13700configuringcognos8componentstouseactivedirectory.html 

Product:

Microsoft SQL Azure

Issue:

What index does exist in the database?

Solution:

Enter below query in SSMS to find list of all index:

SELECT
s.name AS SchemaName,
t.name AS TableName,
i.name AS IndexName,
i.type_desc AS IndexType,
i.is_primary_key,
i.is_unique,
i.is_unique_constraint
FROM sys.tables t
INNER JOIN sys.schemas s
ON t.schema_id = s.schema_id
INNER JOIN sys.indexes i
ON t.object_id = i.object_id
WHERE i.index_id > 0 -- Excludes heaps
ORDER BY s.name, t.name, i.name;

 

To list number of records in a AZURE database enter:

SELECT
SCHEMA_NAME(t.schema_id) AS SchemaName,
t.name AS TableName,
SUM(ps.row_count) AS Rader
FROM sys.tables t
JOIN sys.dm_db_partition_stats ps
ON t.object_id = ps.object_id
WHERE ps.index_id IN (0,1)
GROUP BY
t.schema_id,
t.name
ORDER BY Rader DESC;

 

To check if the database is in restoring state, switch focus to MASTER database, and run below script:

SELECT
name,
state_desc,
create_date
FROM master.sys.databases
WHERE name = 'MyRestoredDatabase';

 

Result:

state_desc Meaning
ONLINE Restore completed
COPYING Database creation/restore in progress
OFFLINE Not available
RECOVERING Final recovery phase

 

More Information:

How to count the number of rows in a table in SQL Server – Brent Ozar Unlimited®

SQL COUNT() Function

 

Product:

Notepad++

Issue:

How to check that the downloaded notepad program is the correct one?

Solution:

Check the file hash, to ensure that the file is the original one from notepad++ web site.

Download the file from Download Notepad++ v8.9.8.1 (stable: auto-update triggered) | Notepad++

In our example we take the x64 version and click on installer (exe) link to download. Save the file in a folder like c:\temp\check

Then you need to download the checksum from there site;

Click on “SHA-256 digests of binary packages” to download the text file, with the hashes for all files of this version, to your folder c:\temp\check.

Open the file npp.8.9.8.1.checksums.sha256 in Notepad.  Look at the line that is for your version.

Start PowerShell on  your windows computer.

Go to the folder where you stored the exe file you downloaded, in our example c:\temp\check

Enter command: Get-FileHash -Path “npp.8.9.8.1.Installer.x64.exe” -Algorithm SHA256

Replace with your file name, to make the test accurate.

Compare the hash in the txt file with the one you get in powershell above. If they match your are in good status.

 

To convert a txt files content to all CAPS (UPPERCASE) use:

(Get-Content 'secondhash.txt').ToUpper() | Set-Content -Path secondhash.txt

 

More Information:

How to Verify Checksum of a File in Windows? – GeeksforGeeks

How to Verify Checksum of a File – Technology Spy

Get-FileHash -path filename.txt -Algorithm XXX

To get a list of parameter values for Algorithm, you can use Get-Help Get-FileHash

MD5 Example: Get-FileHash -path filename.txt -Algorithm MD5
SHA1 Example: Get-FileHash -path filename.txt -Algorithm SHA1
SHA256 Example: Get-FileHash -path filename.txt -Algorithm SHA256

How to Compare Two Files in Notepad++

Use PowerShell to Compare Two Files – Scripting Blog [archived]

Product:
LM Studio
Microsoft Windows 10 or later
Nvidia GEFORCE GTX 980 with 4 GB ram or better

Issue:

How test LLM (Large Language Model) locally on my computer?

How run LM Studio on my Windows?

Solution:

There are many ways to do this, but this is one of the simpler. https://blog.n8n.io/local-llm/

First your computer needs a CPU that supports AVX2 instruction set.

https://us.forums.blizzard.com/en/d2r/t/list-of-avx-supported-processors-intel-amd/12969

You need a Nvidia Graphic card with at least 4 GB RAM or more. The graphic cards memory holds the LLM model and the GPU is the one doing the work when you use a LLM. The more memory the better LLM can you use.

https://llmconfigurator.com/en/guides/best-gpu-buyer-guide 

Your Windows computer need at least 16 GB of RAM.

Download the LM STUDIO from https://lmstudio.ai/download 

If you download LM Studio Bionic, you must install the latest supported v14 (for Visual Studio 2017–2026) from here:

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Bionic will not start if you do not have the latest Visual C++ Runtime libraries.

Run LM-Studio-0.4.26-4-x64.exe to install the software on your computer.

Start LM Studio from the icon.

Now you need to download a LLM model – inside LM Studio go the the model search and see a list of models to use. Check the size of the model in the description.

Select a model that fits in your graphics cards memory. Click download to get it to your computer.

Go to library, and select the model and click on load Model. Here you can adjust context length (this requires more memory) before you Load Model. This will load it to the GPU memory.

Then you can go to the CHAT, and start using the model.  Questions that take seconds on internet, will take 10s of minutes on your computer. But it is all local.

The symbols think and vision, is that it will show how the LLM think, and that it can understand pictures if you send one to it. The LLM can not draw pictures.

To make a local Large Language Model (LLM) draw pictures, you need to pair the text model with a separate image generation model (such as Stable Diffusion or FLUX) or use a tool that connects them. Standard text-only LLMs process and output words, not pixels, so they cannot draw on their own unless paired with an image backend (though some modern environments like Ollama are adding experimental native text-to-image support for specific vision/image models).

 

For one user, it is easier and cheaper, to use a subscription to some of the paid service on internet, than to have a local LLM model.

https://www.artspace.ai/ 

https://opentherank.com/ai-pricing/

https://opentherank.com/ai-pricing/le-chat/ 

https://chat-box.ai/

 

More Information:

An LLM (Large Language Model) is a type of artificial intelligence trained on massive amounts of text to understand, summarize, translate, and generate human-like language. [1, 2]
How It Works
  • Next-token prediction: LLMs read text broken down into small pieces called tokens (words or parts of words) and guess what word should come next. [1, 2]

  • Transformer architecture: They rely on deep learning neural networks (introduced by Google) that use “self-attention” to track how words relate to one another across long sentences. [1, 2]

  • Massive scale: They are trained on billions or trillions of words from books, websites, articles, and code. [1, 2]

https://www.twoody.com/local-llm-calculator/nvidia-gpu 

https://www.databasemart.com/blog/choosing-the-right-gpu-for-popluar-llms-on-ollama

https://cpu.userbenchmark.com/ 

https://www.epey.co.uk/cpu/technologies-supported/avx2/ 

https://www.cpu-world.com/cgi-bin/CPU_Chart.pl

https://www.junian.dev/downloads/vc-redist/ 

https://lmstudio.ai/docs/app/basics 

https://aipricecompare.org/ 

https://artificialanalysis.ai/models

https://sandner.art/run-large-language-models-locally-a-practical-guide-to-local-llms-llama3-gemma-mistral/

https://www.pluralsight.com/resources/blog/ai-and-data/how-run-llm-locally-desktop

 

Product:

Planning Analytics (TM1 server) version 3.1.7 Technical Preview
Microsoft Windows 2022 server

Issue:

How install TM1 v 12?

https://www.ibm.com/support/pages/node/7280180

Solution:

Download the media file from fix central  ( tm1-v12.5.9-standalone-windows.zip)
Copy the file to the Windows 2022 server and unzip it in a folder.

The server need to have contact with internet, as the installations program above, will download other software parts from IBM.

Select the exe file, Right click and run as administrator.

Press Next

Press I Agree

Press Next

Press Next

Select the folder for the TM1 instance, maybe something else than the user folder ( for example c:\ibm\tm1), then press Install

Wait

During install MONGODB is downloaded and installed.

Press Next

Press OK

Copy the values to notepad, and press Next

Press Finish

The files you may need to change in the configuration is in this folder or C:\ibm\tm1

You have to search the IBM forum for more information about version 3.1

 

 

The TM1 service will contain all the other TM1 applications you create on this server.

You can from PAW 3.1 connect to this server with the information you saved in notepad.

In PAW create a new environment, and connect to this TM1 server. Then create a new database.

If you upload a csv file from inside PAW, then the file will be in a folder similar to this C:\ibm\tm1\databases\tm1-i-d9ob6uqqt3r0no1b4k4g-d-daum6j2qt3r1cc35agv0\files\ on the TM1 server.

 

More Information:

https://www.ibm.com/docs/en/planning-analytics/3.1.0?topic=12-configuring 

https://code.cubewise.com/software/products/atmosphere/atmosphere-integrations/

https://succeedium.com/space/

https://community.ibm.com/community/user/blogs/jessica-nicholls/2025/02/03/managing-paaas-with-apis 

Details about new features in Planning Analytics 3.1 can be found here:

Installation instructions for Planning Analytics Local 3.1 components can be found here:

Product:

Planning Analytics Workspace 3.1.7 Technical Preview

Microsoft Windows 2022 server

Issue:

How install PAW on Windows?

How create a new TM1 server in version 3.1.7?

 

Solution:

Download the media, ipa_workspace_win_2022_3.1.7.103.zip,  from IBM website:

https://www.ibm.com/support/pages/ibm-planning-analytics-local-technical-preview-317-available-download-fix-central 

If you run on a virtual machine, ensure you have support for PAE/NX and Nested VT-x/AMD-v. You may need at least 8 fast cpu core and fast SSD hard drives for the PAW server.

First install Mirantis Docker runtime and reboot server. https://www.mirantis.com/download/mirantis-cloud-native-platform/mirantis-container-runtime-trial/ 

To install Mirantis on air-gapped server , after you downloaded all files, enter: .\install.ps1 -Offline

To check version of docker, enter Docker version

Unzip the media to a local folder on the server ( c:\ibm\paw317 ).

Run the Start.ps1 script to install of Planning Analytics Workspace 3.1.7 (installation of PAW 3.1.7 is similar to previous PAW installations)

The install will check the server before it start the installation of PAW.

You will be asked if it should install to other drive – recommendation is to use D: drive or other than system drive.

The install starts automatic after the check.

When installation is done, you can copy the paw.ps1.sample to paw.ps1 file and edit it, in notepad++,

Ensure you have on a other computer with a old TM1 11 (planning analytics 2.1.9) with Native security active (IntegratedSecurityMode=1).  Note down the port used by your native application (planning sample HTTPPortNumber=12354). You need use this in the PAW.PS1 file.

Remove the section for Authenticate with OIDC. And update below two lines only:

## b) Authenticate using a TM1 server
## 
$env:PAAuthMode="tm1"

# URL of the TM1 server to be used for PA Workspace authentication
$env:TM1LoginServerURL="https://192.168.1.106:12354"

Save the file.  Ensure firewalls are open for port 12354 to make it possible for PAW server to talk to old TM1 server.

After the installation you may need to reboot server or manually go and run \scripts\paw.ps1 without parameters to create and start PAW.

(When installation is finish you should be able to login to PAW with the user of a old TM1 v11 as authenticator)

Login with Admin and apple.

Have a new TM1 v12 installed on other server – during that installation you get to note down Tm1 url and client ID and Client Secret. This is needed when you connect your new PAW 3.1 to a TM1 v12 ( PAL 3.1) database.

In PAW go to Administration and Environments.

Click on ADD button and enter the values you got from the installation. Give the environment a name (TEST).

Click save.  Select the new TEST environment in top right corner.

New TM1 create all TM1 database inside the existing TM1 service. Go to Database in Administration and click Create button.

Name the database (PLANNING) and click create.  Now the new database is created.

This TM1 database have on the v12 server access to some folders under the TM1 service.

Inside PAW workspace things are the same, depending on version of PAW 3.1.11 you have different new functions.

 

https://www.ibm.com/docs/en/planning-analytics/3.1.0?topic=offerings-planning-analytics-local-technical-preview 

https://www.ibm.com/support/pages/node/7287976

 

You have to search the IBM forum to get more information about PAW 3.1.

 

To connect PAW to TM1 version 12 database that use OIDC, you need to change paw.ps1 in folder C:\ibm\paw317\config

 

If you are using self-signed SSL certificates for TM1 servers or Cognos Analytics, you may need to add certificates
to the list of CA certificates used by Planning Analytics Workspace.

Place files containing certificate authority certificates in the config/certs directory.

Run the ‘scripts/process_certs.ps1’ script to add the CA certificates to the ‘cacerts’ file.

After the ‘cacerts’ file is successfully updated, restart the Planning Analytics Workspace services.

 

More Information:

https://community.ibm.com/community/user/blogs/stuart-king1/2026/01/26/planning-analytics-local-31-technical-preview

https://community.ibm.com/community/user/discussion/planning-analytics-3x-on-prem 

https://docs.mirantis.com/mcr/20.10/install/mcr-windows.html

https://exploringtm1.com/how-to-install-mirantis-container-runtime-docker-on-windows-server-2019/

 

Details about new features in Planning Analytics 3.1 can be found here:

Installation instructions for Planning Analytics Local 3.1 components can be found here:

Product:
DuckDB v1.5.5 (Variegata)

Issue:

How sum a big csv file?  Excel is to small.

Solution:

Download DUCKDB, that is an embedded column-oriented database purpose-built for analytical workloads (OLAP).
DuckDB load your data in memory on your laptop, and then let you use SQL querys to find out information.
DuckDB’s SQL parser is derived from the pg_query library (https://www.sqlite.org/cli.html) , which is itself derived from PostgreSQL’s SQL parser that has been stripped down as much as possible.

On windows download the duckdb zip file, and unzip it to a folder like c:\duckdb. Go to that folder with powershell and enter DUCKDB to start the program.  https://duckdb.org/install/?platform=windows&environment=cli

 .\duckdb.exe

To import a csv file, that use European characters (note it use Linux syntax, forward slash for folders) , use a command like this:

create table budget as select * from read_csv_auto('c:/temp/db/datatabell.csv' , encoding='Latin-1') ;

This will create a in-memory databas called budget, that you can query, like to list number of rows:

select count(*) from budget ;

To get a sum for a month (note that it differs for small and capital letters  Month and month are two different columns):

select sum(amount) from budget where Månad='01' and År=2027;

Enter below to get a quick glance of what column names exist in the database table:

select * from budget ;

Then you can see the name and if it is int64 or varchar.   To find rows with zero as value, enter:

select * from budget where amount = 0;

 

To stop duckdb enter  .exit.  When you  exit duckdb the database is erased.

 

More Information:

DuckDB’s architecture delivers several distinct advantages over traditional databases and data analysis tools:

  • Vectorized query execution — Processes data in batches of 2048 rows, maximizing CPU cache efficiency and enabling SIMD acceleration
  • Columnar storage — Only reads the columns your query requests, dramatically reducing I/O compared to row-based systems
  • Direct file querying — Query CSV, Parquet, and JSON files directly without importing them first — a massive productivity boost
  • Hybrid execution — Supports both in-memory and on-disk processing, automatically spilling to disk when datasets exceed available RAM
  • Full SQL standard compliance — Supports complex queries including window functions, CTEs, PIVOT, and UNION that go far beyond what Excel or Pandas can do
  • Multi-language support — First-class bindings for Python, R, Java, Node.js, C++, Rust, and many more
  • Extension ecosystem — Load extensions for HTTP/S3 access, full-text search, spatial data, and more

How DuckDB Compares to Alternatives

Aspect DuckDB SQLite Pandas PostgreSQL
Storage model Columnar Row-based In-memory Row-based
Analytics perf ⚡ Fast Slow Fast (fits RAM) Moderate
Setup time Seconds Seconds Minutes (env) Hours (server)
Max dataset >RAM (spills) <RAM <RAM >RAM
SQL features Full Basic No native SQL Full

 

https://duckdblab.org/en/post/duckdb-beginners-guide-2026/ 

https://duckdb.org/docs/lts/data/csv/overview

https://duckdb.org/docs/current/guides/file_formats/csv_import

https://duckdb.org/docs/current/sql/introduction

https://motherduck.com/blog/duckdb-tutorial-for-beginners/

https://www.sqlite.org/cli.html

https://en.wikipedia.org/wiki/DuckDB

https://github.com/davidgasquez/awesome-duckdb 

https://duckdblab.org/en/cheatsheet/

https://duckdb.org/docs/current/sql/dialect/friendly_sql

Query Features

Product:

Microsoft Azure SQL

Issue:

Store procedures / process take a long time to finish – than a few weeks ago to a lot less of time.
The usage of resources in the SQL server is flat in the monitor view.

Solution:

Check that you do not have any columns that use [NVARCHAR](MAX) in a stage table or other table. This can when data grow in your tables, make the SQL CPU /Memory resources – be to small for it to handle.

Check also if you can make a CREATE NONCLUSTERED INDEX on you largest table that are in use in the query, to help improve performance.

As a very short term solution, you can increase cpu and memory on your Azure SQL instance, but this is not a good solution.

When you combine an nvarchar(max) with an nvarchar(100), SQL Server often implicitly promotes the result to nvarchar(max). Once an expression becomes a LOB (Large Object) type, SQL Server may switch to much more expensive processing. Nvarchar(max) is treated differently than normal string types. nvarchar(100) is stored directly in-row.
nvarchar(max) may be stored off-row. “Stored off-row” means SQL Server may not keep the actual string data inside the data page that contains the rest of the row. A SQL Server data page is only 8 KB. Then SQL Server must maintain LOB pointers and perform additional I/O.

This increases CPU and memory usage. When SQL Server sees nvarchar(max), it must assume values could be huge (up to 2 GB).

Check whether SQL Server is using off-row storage

SELECT
OBJECT_NAME(object_id),
lob_used_page_count,
used_page_count
FROM sys.dm_db_partition_stats
WHERE object_id = OBJECT_ID('dbo.Test');

 

If lob_used_page_count is non-zero, SQL Server is storing LOB (nvarchar(max), varchar(max), xml, etc.) data on separate pages.

 

To see what SQL are doing, enter:

sp_who2

More Information:

https://www.brentozar.com/archive/2016/10/max-data-types/

https://www.brentozar.com/archive/2025/10/which-should-you-use-varchar-or-nvarchar/

https://www.brentozar.com/free-sql-server-training-videos/ 

https://vladdba.com/2024/05/26/the-curious-case-of-the-truncating-nvarcharmax-variable/

https://www.conradakunga.com/blog/how-to-index-a-nvarcharmax-table-in-sql-server/ 

https://learn.microsoft.com/en-us/sql/t-sql/data-types/nchar-and-nvarchar-transact-sql?view=sql-server-ver17 

https://erikdarling.com/using-sp_tableoption-to-store-lob-data-off-row/ 

https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/performance/troubleshoot-memory-issues

Product:

Microsoft AZURE SQL database

Issue:

It is running a long time, what is the SQL doing?

Solution:

In SSMS, run below query’s to get some information:

 

SELECT
r.session_id,
r.status,
r.wait_type,
r.wait_time,
r.blocking_session_id,
r.cpu_time,
r.total_elapsed_time,
DB_NAME(r.database_id) AS database_name,
t.text
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) t
ORDER BY r.total_elapsed_time DESC;

 

 

SELECT
r.session_id,
s.login_name,
s.host_name,
r.status,
r.command,
r.cpu_time,
r.total_elapsed_time,
r.logical_reads,
r.reads,
r.writes,
DB_NAME(r.database_id) AS database_name,
t.text AS sql_text
FROM sys.dm_exec_requests r
JOIN sys.dm_exec_sessions s
ON r.session_id = s.session_id
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) t
WHERE r.session_id <> @@SPID
ORDER BY r.cpu_time DESC;

 

 

The key columns are:

  • wait_type → what resource it is waiting for.
  • blocking_session_id → another session blocking it.
  • wait_resource → the specific resource.

 

More Information:

https://www.mssqltips.com/sqlservertip/5521/understanding-and-using-sql-server-sysdmexecrequests/ 

https://dev.to/shiviyer/mastering-performance-troubleshooting-with-sysdmexecrequests-in-azure-sql-3f0j