Writing Data from Excel to Tm1 Cube
Posted: Wed Nov 18, 2009 7:13 am
Could any one please advise me how to write data from Excelsheet to TM1 Cube What are the step and involved
Discussing all things TM1, Planning Analytics, PAx and PAW
https://www.tm1forum.com/
A key error means that either:Firefly wrote:Thanks you All for the information. Appreciate for your all quick suggestion. I tried to do this following steps still I am getting Key error .Please advise Am i doing anything wrong?
I have a cube called status. which has two dimension one is month and other is text. when i did the DWR i see a result like this
Text
MOnth 10
when i try send with DBSW(12,Statuscube, Month ,Text) it still show a key error.Please advise me
(In reality, in 9.4 I have no problem sending a string to a cube using DBSW. However you shouldn't rely on it.)DBSW sends a numeric value to a TM1 cube. This function cannot send a string to a cube. To send strings, use the DBSS function.
DBSW(12,Statuscube, Month ,Text)
Aaaaand... "the fx" in this context would mean, what exactly? I'd normally think that you're referring to "the function" but you're saying that the result of that is a key error.edward wrote: =DBSS(B63,$D$50,pVersion,pYear,$D$56,pDivision,pBusinessUnit,pCostCategory,$A63,BK$61)
result
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
even I have result in the fx I still have key_err on my excel sheet.
If any of the cells that you point to in your DBS formula contain DBRW formulas, change them to DBR instead to ensure that they're evaluated separately from the main batch of TM1 formulas. If not, describe the formulas that the cells contain.edward wrote:I am wondering if I am doing anything wrong ..
You're missing the server reference from your cube reference in argument two. I.e. you need something like this (where server is your TM1 instance name)edward wrote:
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
D'oh! I remember thinking about that when I was writing the reply, then left that entire paragraph out. The perils of multi-tasking...Martin Ryan wrote:You're missing the server reference from your cube reference in argument two. I.e. you need something like this (where server is your TM1 instance name)edward wrote:
=DBSS("ukb0m","Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
=DBSS("ukb0m","server:Global Overheads Budget Data","Budget V1","FY12","Annual","UK Business Parks","Developments","Travel and Entertainment","0002","Cost Code")
Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
Alan Kirk wrote:Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
In any case, if you are using DBS/DBSS/DBSW formulas to write to a cube, it's worth using the formula tracer in TM1 Tools to determine where the formula is writing to. If you get the "wrong" results it's almost certain that it isn't writing to where you think it's writing.
Hi Christopher,Christopher Kernahan wrote:For those without TM1 Tools, if you select the formula, click into the fx bar in Excel, doubleclick on the argument, and press F9, it will change the cell reference into the contained value.
Have you taken a moment to read the entry on DBSS in the Reference Guide?edward wrote:Hi Alan,Alan Kirk wrote:Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work. If you aren't, please clarify exactly what you are doing.edward wrote:Thanks Guys it worked when I add the server name .. now I have a problem ... one line with the DBSS is correct in the cube and rest are all in correct when it writes in the cube ... excel 2003 .. I tried it from tm1 9.4.1 and 9.5.1 .. all have the same outcome that most of the numbers are incorrect in the cube , however, the spreadsheet has the correct number ...
In any case, if you are using DBS/DBSS/DBSW formulas to write to a cube, it's worth using the formula tracer in TM1 Tools to determine where the formula is writing to. If you get the "wrong" results it's almost certain that it isn't writing to where you think it's writing.
Yes DBSS is being used to write numbers. Is here any other way to use different function?
(Or DBSW, but not DBSS.)This function sends a string to a cube of any number of dimensions. This function cannot send a numeric value to a cube. Use the DBS function to send numeric values.
Did you notice that comment from Alan? That's probably your problem. You should be using dbsw or dbs.Alan Kirk wrote: Are you saying that you're using a DBSS to write numbers? Because if you are, that won't work.