PAX API - TI Process - error 438

Post Reply
tanjim.haque
Posts: 2
Joined: Tue Mar 14, 2023 8:16 pm
OLAP Product: DB2
Version: 11.0.912.9-0
Excel Version: 2206

PAX API - TI Process - error 438

Post by tanjim.haque »

Error 438 to execute TI process from macro for PAX addin.

Public Sub PAX_TI_Process(sHost As String, sServer As String, sProcessName As String, Optional sParam1 As String, Optional sParam2 As String, Optional sParam3 As String)

On Error GoTo HANDLER:
Dim oMessageSuppressor As CognosOfficeMessageSuppressor

'Use the message suppressor to turn off all Cognos Office messages.
Set oMessageSuppressor = New CognosOfficeMessageSuppressor

Dim sTIParamList As String

If Not IsMissing(sParam1) Then sTIParamList = sParam1
If Not IsMissing(sParam2) Then sTIParamList = sTIParamList + "," + sParam2
If Not IsMissing(sParam3) Then sTIParamList = sTIParamList + "," + sParam3

'Call the Cognos Office Automation object to refresh the data.
Application.COMAddIns("CognosOffice12.Connect").Object.AutomationServer.Application("COR", "1.1").ExecuteFunction sHost, sServer, sProcessName, sTIParamList

Exit Sub
HANDLER:
MsgBox "Error PAX API - TI_Process (ExecuteFunction)- " & Err.Number
End Sub

Public Sub test()
Call PAX_TI_Process("host address:port", "server name", "process name")
End Sub

i tried to check if it is connected to the server, using this
curl -v telnet://host address:port
it connects. Not sure where I am doing wrong.
Wim Gielis
MVP
Posts: 3230
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: PAX API - TI Process - error 438

Post by Wim Gielis »

Can you get it to work for a process that has no parameters ?
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
tanjim.haque
Posts: 2
Joined: Tue Mar 14, 2023 8:16 pm
OLAP Product: DB2
Version: 11.0.912.9-0
Excel Version: 2206

Re: PAX API - TI Process - error 438

Post by tanjim.haque »

It didnt work without parameters as well. I tried both with parameters and without parameters.
User avatar
WilliamSmith
Posts: 48
Joined: Tue Dec 13, 2022 8:54 pm
OLAP Product: TM1 / PA / PAx / PAW
Version: TM1 11
Excel Version: 365

Re: PAX API - TI Process - error 438

Post by WilliamSmith »

Error 438 in VBA generally means the object you are trying to invoke a property / method from is not a valid binding.

Do you have the Planning Analytics for Excel add-in loaded and fully enabled?
Post Reply