MartinBrandl wrote:
I am developing a TM1 driver in C++ for an ETL-Application and don't use any TM1 clients like Perspective.
TM1SystembuildNumber does return the build number of the local client API (tm1api.dll) rather then the TM1 server version - as mentioned in the API documentation.
Oh dear. I'm afraid that you appear to be correct, though I can't test this with the current version since I don't have a 9.5.2 version which uses different servers and clients.
The API version number is
supposed to be returned via TM1SystemVersionGet (which, just for the sake of consistency (not), returns an integer rather than a string). TM1SystemBuildNumber and TM1SystemBuildNumber_VB (both returning strings) are
supposed to return the server version according to all of the documentation. However when I tested it against a 9.0 server using 8.2.12 API dlls (and, obviously, the TM1SystemBuildNumber_VB function) the answer I got was "8.2.12.1940".
I'd suggest reporting this as a bug. I don't know that you'll get anywhere, but I'd suggest doing it anyway. I can't, because they won't even listen to any request that mentions 9.0 any more.
(Your conversation with support, imagined version:
Support: "Oh, that's a bug in the documentation. We'll change the documentation to fix it in a few years. Maybe."
You: "Hang on, how can it be a documentation bug? If that was the case then TM1SystemVersionGet would be redundant."
Support: "Aaaahhh..."
You: "So how
DO I get the server version?"
Support: "Sorry, you can't do that. Would you like to log it as an enhancement? We can add it as the 9,746th item that we'll look at."
You" "What are the first 9,745?"
Support: "Varying the transparency and shades of colour of toolbars and graphs in web reports."
You: "
ALL of them???"
Support: "Well no, just the first 9,000 or so.")
OK, so I have an active imagination but I don't think I'm far off the mark there. My guess is that somebody screwed up. I'd bet that when they were testing it they tested it with the same client and server version and consequently got the result that they were expecting, without realising that it happened to be from the wrong source.