Hi there,
Does anyone know if it is possible to set the MTQ parameter to 1 at the beginning of a process and then to 45 at the end.
We running normally at 45 bit there are a few processes who cause issues if other processes run at the same time.
Just trying to avoid having to set MTQ manually each time they run.
Thanks
Setting MTQ value using a TI Process
-
- Posts: 37
- Joined: Mon Jul 19, 2021 2:15 pm
- OLAP Product: TM1
- Version: 2.0.0
- Excel Version: 365
- Location: Canada
-
- Regular Participant
- Posts: 232
- Joined: Wed May 06, 2020 2:58 pm
- OLAP Product: Planning Analytics
- Version: 2.0.9
- Excel Version: 2016
Re: Setting MTQ value using a TI Process
Hi, the parameter MTQ can only be controlled with tm1s.cfg or REST API, it is a dynamic parameter so technically you could update the parameter before execution but I'd be more curious why you'd need/want to set it to 1?
Assuming you have MTQQuery set to T, you could use DisableMTQViewConstruct in your TI process to disable the use of MTQ when calculating a view to be used as the datasource in the process and use EnableMTQViewConstruct to turn it back on
If your problem is that when the process runs, other processes are forced to queue due to no threads being available, then you may also consider lowering the MTQ down from 45 so that there is spare threads available for other processes to run.
There can be other reasons for processes to have issues if other processes are running at the same time if they share the same objects, it's not clear to me if thread capacity is your only issue here.
Assuming you have MTQQuery set to T, you could use DisableMTQViewConstruct in your TI process to disable the use of MTQ when calculating a view to be used as the datasource in the process and use EnableMTQViewConstruct to turn it back on
If your problem is that when the process runs, other processes are forced to queue due to no threads being available, then you may also consider lowering the MTQ down from 45 so that there is spare threads available for other processes to run.
There can be other reasons for processes to have issues if other processes are running at the same time if they share the same objects, it's not clear to me if thread capacity is your only issue here.
-
- Posts: 37
- Joined: Mon Jul 19, 2021 2:15 pm
- OLAP Product: TM1
- Version: 2.0.0
- Excel Version: 365
- Location: Canada
Re: Setting MTQ value using a TI Process
Thank you for the reply. It is definately not the number of threads but the interactions between processes that share some dimensions.
I am looking into the Synchronization of processes functionality now.
I am looking into the Synchronization of processes functionality now.
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Setting MTQ value using a TI Process
MTQ is a dynamic parameter, so in theory you can change it via the REST API and use it in the same server session, but the change isn't immediate - it takes up to a minute for the change to be reflected by the server. While I'm a fan of creative solutions, I doubt this is the best one for your problem - whatever the problem might be.
Can you tell us a bit more about the processes that "cause issues"? What are the issues?
Can you tell us a bit more about the processes that "cause issues"? What are the issues?
Kamil Arendt
-
- Posts: 37
- Joined: Mon Jul 19, 2021 2:15 pm
- OLAP Product: TM1
- Version: 2.0.0
- Excel Version: 365
- Location: Canada
Re: Setting MTQ value using a TI Process
They are processes that touch all dimensions. When we run then as part of our normal loads they do not cause issues because we can run then serial but if someone runs them adhoc or now they need to run them manually more often we are seeing the instance hang and have to be restarted which causes data loss and is a pain. I am trying to find a way to allow the users to run these processes when they require without causing system issues, or having to try and remember to let me know so I can manually turn off MTQ until they are done
- gtonkin
- MVP
- Posts: 1270
- Joined: Thu May 06, 2010 3:03 pm
- OLAP Product: TM1
- Version: Latest and greatest
- Excel Version: Office 365 64-bit
- Location: JHB, South Africa
- Contact:
Re: Setting MTQ value using a TI Process
As a test, in dev, with all the usual disclaimers, you could try using this function to set whilst in the process:
The function takes a string value e.g. '8', 'ALL'
As with all undocumented functions, YMMV...
Code: Select all
DebugUtilityEx('SetMTQ','<value>');
As with all undocumented functions, YMMV...
-
- Posts: 37
- Joined: Mon Jul 19, 2021 2:15 pm
- OLAP Product: TM1
- Version: 2.0.0
- Excel Version: 365
- Location: Canada
Re: Setting MTQ value using a TI Process
That functionality may no longer work as it will not allow me to save the process
- gtonkin
- MVP
- Posts: 1270
- Joined: Thu May 06, 2010 3:03 pm
- OLAP Product: TM1
- Version: Latest and greatest
- Excel Version: Office 365 64-bit
- Location: JHB, South Africa
- Contact:
Re: Setting MTQ value using a TI Process
Are you working on V11/V12?M1ndbender wrote: ↑Tue Sep 23, 2025 11:28 am That functionality may no longer work as it will not allow me to save the process
Possible, but does it give an error because you are working in PAW and PAW does not recognize?
You may see the red error circle but save works and TI runs, at least on my PAW 2.1.13 and PA 2.1.13