Hi
We recently "downgraded" from TM1 9.5.2 to cognos express with xcelerator 10.1. (due to cheaper pricing model) Part of the change was to move to Cam level security.
Since moving to CAM level security we have lost the ability to use Excel VBA and "N_Connect" to TM1. I have searched various threads on this forum and had no luck in solving this. I am assuming the process we have previously adopted is a fairly common requirement, however implemented differently under CAM level security or best practice.
Our old update spreadsheet process was (ran daily, automatically):
1: run via Microsoft scheduler open Excel with TM1 addin to a specific spreadsheet. (No human intervention)
2: when excel opened this triggered Workbook_Open() - excel VBA
Problem step 3: the VBA then Logged onto TM1 via Application.Run "N_CONNECT". (I have unsuccessfully tried Application.Run ("NET_CONN") as well)
4: Macro Refereshed data, hardcodes and saves to a common location on our intranet for users to access
Step 3 above “N_Connect” does not work with Cam security. The old process suited our site well as data was made available daily in excel form on the intranet, excel master templates were easy to maintain if required, scheduled daily with no manual intervention.
I also have tried a TI process, ExecuteCommand(*.*) to kick off a batch file (open the excel file) but this executes on the client not the server so connecting is still an issue (if scheduled via a chore).
I would appreciate your thoughts on this problem, if there is no direct answer to the automatic log on issue, what work arounds / better practices have you employed to automatically update spreadsheets without a physical user having to do it.
Regards
JD
Automatic spreadsheet update, Cam level security
-
- Posts: 32
- Joined: Fri Jul 09, 2010 12:12 am
- OLAP Product: tm1
- Version: TM1 Build Number: 11.8.01300.
- Excel Version: Version 2401
Re: Automatic spreadsheet update, Cam level security
Sorry just noticed the other thread posted today with same issue. (no easy answer)
-
- MVP
- Posts: 3655
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Automatic spreadsheet update, Cam level security
As there is no way to automate connection with VBA when using CAM if you want to keep your solution of excel hardcoded report generation with windows scheduler then you are pretty much limited to dedicating an old workstation or else a server rdp login and maintaining an always logged in excel session so that windows scheduler and VBA are only opening files and refreshing without any logon action.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- MVP
- Posts: 733
- Joined: Wed May 14, 2008 11:06 pm
Re: Automatic spreadsheet update, Cam level security
Lotsa - I linked to a couple of forum posts on this thread that indirectly address this topic.
Robin Mackenzie