TM1 Formulas not returning values on macro enabled excels

Post Reply
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

TM1 Formulas not returning values on macro enabled excels

Post by anoops81 »

Hi All ,

We are facing an issue in macro enabled tm1 excel templates. The problem is tm1 formulas sometimes are not returning any value . For ex:
the following macro has DIMIX & DTYPE formula .

Code: Select all

If Application.Run("DIMIX", dimensionName, Sheets("Cover").Range("Z" & i)) = 0 Then
         Error_Count.Add CellHeader & " - " & Sheets("Cover").Range("Z" & i)
         Error_Str.Add "Element doesn't exist in Dimension"
      Else
         If Application.Run("DTYPE", dimensionName, Sheets("Cover").Range("Z" & i)) = "C" Then
            Error_Count.Add CellHeader & " - " & Sheets("Cover").Range("Z" & i)
            Error_Str.Add "Data cannot be loaded to the Consolidated Element"
         End If
      End If
The above code is working fine for almost 90% of runs but it is failing for the rest 10% . There is no error message from TM1 . We are unable to give this to client because of this 10 % fails.


I appreciate your response .

We are using tm1 9.5.1 & ecxel 2003 .

Thanks & Regards
Anoop
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: TM1 Formulas not returning values on macro enabled excel

Post by anoops81 »

Hi All ,

I am missing any information here ? Please feel free to respond .

It seems TM1 forum also doesnt return any response sometimes :P :P


Regards,
Anoop
Paul Segal
Community Contributor
Posts: 312
Joined: Mon May 12, 2008 8:11 am
OLAP Product: TM1
Version: TM1 11 and up
Excel Version: Too many to count

Re: TM1 Formulas not returning values on macro enabled excel

Post by Paul Segal »

anoops81 wrote:Hi All ,

I am missing any information here ? Please feel free to respond .

It seems TM1 forum also doesnt return any response sometimes :P :P


Regards,
Anoop
You do need to bear in mind that this is all voluntary, and that getting your solution released to your client may not be our top priority.

Also, it would be useful to know what you have done to help yourself figure this out. Have you done a watch to see what's happening, or taken any other debugging measures? I'd be surprised if there is a problem with the TM1 functions themselves.

For example, what happens if the server is under heavy load - will the code wait for a response or just march on?
Paul
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: TM1 Formulas not returning values on macro enabled excel

Post by anoops81 »

Hi Paul ,

We will check on the debugging options for this error .

Thanks for the reply ..

Regards,
Anoop
Post Reply