TM1 C API (.NET) - element names with trailing spaces
Posted: Thu May 30, 2013 4:49 am
Hi all,
I know this is a bit fringe, but I'm hoping someone who has worked with the TM1 C API from .NET has come across this and found a resolution.
The Dimension Editor in Perspectives allows you to create an element name such as "aaa ", if you paste the value as text into the dimension list instead of using "Insert Element" or its variants. This in itself is probably a bug, but it works in 10.1.
In code, when I retrieve an element created as "aaa ", I get "aaa?" returned. However, when I call TM1ObjectListHandleByNameGet with a TM1ValString containing "aaa?", I get "Object Property Not List". Thinking I might be able to translate "aaa?" to a name that would work, I tried "aaa" and "aaa ", but surprisingly, both of these resulted in "Object Property Not List" also.
So I get a name back from the API that fails when I try to retrieve it, and can't find a variation of that name that I can retrieve!
Has anyone come up against this before, and did you find a resolution?
Thanks in advance,
Harvey.
I know this is a bit fringe, but I'm hoping someone who has worked with the TM1 C API from .NET has come across this and found a resolution.
The Dimension Editor in Perspectives allows you to create an element name such as "aaa ", if you paste the value as text into the dimension list instead of using "Insert Element" or its variants. This in itself is probably a bug, but it works in 10.1.
In code, when I retrieve an element created as "aaa ", I get "aaa?" returned. However, when I call TM1ObjectListHandleByNameGet with a TM1ValString containing "aaa?", I get "Object Property Not List". Thinking I might be able to translate "aaa?" to a name that would work, I tried "aaa" and "aaa ", but surprisingly, both of these resulted in "Object Property Not List" also.
So I get a name back from the API that fails when I try to retrieve it, and can't find a variation of that name that I can retrieve!
Has anyone come up against this before, and did you find a resolution?
Thanks in advance,
Harvey.