MS Excel cannot read the Roles definition on Analysis Service cube

Hello,
While using Analysis Service connection via Excel, apparently it does not automatically provide Roles or EffectiveUserName in the connection string based on username/password we provide. We must manually edit the connection string.
Does this thing already defined as bugs, or there is other explanation ? Is there any related with this ?
Thanks.

Hi Prayijana,
In your scenario, you said that you need to manually edit the connection string for different users to connect to SQL Server Analsysi Services Multidimensional database, right?
When using excel to interact with a SSAS cube, we can use the default settings "Use the authenticated user's account". In this case, excel will use the current account to connect SSAS cube. If the account has a matched role on the databse,
then he can access to the cube.
If this is not what you, please provide us more informantion, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Excel Automation with Interop - Windows Service - Microsoft Excel cannot access the file

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file:
    Unhandled exception Occured : 'Microsoft Excel cannot access the file 'bla.xls'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.'.'
    The code snippet used to open the file:
    xlApp = new Application();xlApp.Visible = false;xlApp.UserControl = false;xlApp.Application.ScreenUpdating = false;xlApp.DisplayAlerts = false;xlWorkbook = xlApp.Workbooks.Open( Filename: filePath,  UpdateLinks: 2,  IgnoreReadOnlyRecommended: true, Editable: false);
    The console app and windows service are running on a Win Server 2008 64-bit OS with Excel 2013 32-bit installed. The service is running with a special user account, which has all the right permissions on accessed files and folders. The excel process is also
    started with the same account (I cheched that one). 
    I already tried to do the following, but to no avail:
    Run excel.exe /automation -> worked fine
    Created the folders and also gave full control to the account under which the service is run (even gave full control to Everyone)
    C:\Windows\SysWOW64\config\systemprofile\Desktop
    C:\Windows\System32\config\systemprofile\Desktop
    Configured DCOM
    Excel Application -> Identity -> Specific user account
    Excel Application -> Identity -> Interactive User
    Excel Application -> Security -> Launch permissions -> Everyone full control
    Several combinations of the above
    So I really am stuck with this problem right now. Any input on this is appreciated.

    I have a windows console application, which automates Excel. In our scenario the application gets called from a Windows Service. If the console app is executed directly everything works fine. If the console app is executed through the Win Service, we get
    the following error when trying to open the excel file
    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office
    may exhibit unstable behavior and/or deadlock when Office is run in this environment.
    If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side.
    If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
    You can read more about that in the
    Considerations for server-side Automation of Office article.

  • Microsoft Excel cannot access the file "-". There are several possible reasons. Windows Server 2008 R2 with Microsoft Office 2010

    I have a problem with starting the Excel Application under a particular user (service account).
    I try to schedule this C# script through an application X (not Windows Task Scheduler. And this
    application will always use a service account to run services on the server). If I run the C# script in
    command prompt under the same user, it runs. Under the application X, which uses the exact same
    user, to initiate the C# script, it fails to open the Excel application (not sufficient permission?).
    This script calls application.Workbooks.Open(<ExcelFileName>,0,false,Type.missing....). At this line
    of code, it gives the following error:
    Microsoft Excel cannot access the file "...". There are several possible reasons:
    -The file name or path does not exist.
    -The file is being used by another program.
    -The workbook you are trying to save has the same name as a currently open workbook.
    I tried all the methods that I found online as follow:
    Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop" (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop" (for 32 bit Windows).
    Changed the DCOM config for the Microsoft Excel application to include this user for Local/Remote Launch and Access.
    Enabled all macros in Excel application and set the Trust Center.
    Add the user to have full control on all folders that contain the Excel file.
    Under DCOM
    config, Microsoft Excel Application, if I modify the Identity tab to check on "This User" and enter the username/password to let Excel always run under that user. Then the application runs perfectly. However, other users can't run the excel application
    on their own with the following error: "Cannot use object linking and embedding". If I check "Use the launching user", then Excel can't be launched. No errors in the logs or events anywhere to check.
    Yet, still the same error. I think it's permission but I am not sure where and what to do for this to work.
    Now, normally, when I run this excel report, I can double-click on the file and it'd automatically run,
    save the new parameters into the current file and generate a new excel file (with date attached to the
    file name). That means there is a change (save) to the original file.
    Environment: Windows Server 2008 R2 and running Microsoft Excel 2010.
    I appreciate all your help!

    I am wondering if this has anything to do with having the user log into Excel.
    In point #5 above: Under DCOM config, Microsoft Excel Application, if I modify the Identity tab to check on "This User" and enter the username/password to let Excel always run under that user. Then the application runs perfectly. However, other
    users can't run the excel application on their own with the following error: "Cannot use object linking and embedding". If I check "Use the launching user", then Excel can't be launched. No errors in the logs or events anywhere to check.
    Because running with the launching user proposes an user to run the Excel application. However, I do not think there is any where that we can pass in the password for this user to Excel. However, this Excel has all the permissions to Excel application as
    well as the folders that have the Excel files.
    Please help!
    Thank you!

  • I get a message saying that "Excel cannot open the file

    Every now and then, when I try opening an Excel file, I get a message saying that "Excel cannot open the file 'file.xlsx' because the file format or the file extension is not valid. Verify that the file has not been corrupted and that the file extension
    matches the format of the file.

    I see this most often when a file has been transferred around a lot and gets corrupted due to bad sectors on hard drives, 
    bad thumb drives, etc...
    Occasionally, I find a repair utility that will....kind of....fix it. You tend to lose all formatting and usually the user 
    would have to spend more time doing than life than simply starting from scratch. If on a file server, shadow copies
    (previous versions) are a god send.
    If it happens completely randomly, does it happen more often to the same group of people? Perhaps an update malfunctioned? 
    Reinstall Office? Try XLSX Open File Tool for recovery your documents (http://www.xlsx.openfiletool.com/)
    There could be so many reasons this could happen, but all the above is where I'd start.
    Also read this
    https://groups.google.com/forum/#!topic/xlsx-viewer-download/Yf8eudHMWv8

  • Excel 2007 ignores the roles configured on SSAS 2008

    Hi,
    I am facing a common problem for which I have found very useful threads but they didn't manage to help me.
    My problem is on excel report, Dimension data is not filtering correctly when I connect with user credentials for which a role is configured on the cube. Excel 2007 ignores the roles configured on SSAS 2008 and I tested with 2 different users with the same
    role configuration.
    I ensured that the user doesn't fall in the server admin role and . I started up an SQL Profiler and I ensured no  * in the list of roles of the user.  I ensured also that there is no "built-in administrators group" configured (Security\BuiltinAdminsAreServerAdmin).
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/7052f751-8478-4ab2-aba8-d250a1606e07/deny-access-to-analysis-services-cube-from-excel-2007
    Also I am planning to upgrade my Service Pack 1 to the cumulative pack Hot Fix 2710 ( KB969099 ) as it seems there are some known issues about dimension security on SSAS 2008. Do you really think it is a question of upgrade?
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4b4e6e3c-bebe-4f81-8462-b2d0bd61ad11/dimension-attribute-security-on-ssas-2008-not-working-but-works-fine-on-2005
    However I managed to work around the issue on SSAS and on Excel as follow but it is the not the solution expected: 
    - On SSAS 2008 R2 cube browser, while testing using the role: Dimension values filtered correctly the required data 
    - On Excel: Unless the role is specified in the configuration of the connection then the data is not filtered.
    http://kevin_s_goff.typepad.com/kevin_s_goff_weblog/2009/12/1242009---testing-ssas-roles-in-excel.html
    It is really urgent,
    Many thanks

    Hello,
    I'm experiencing exactly the same issue and I can't find any solution to it.
    Were you able to solve it? If so, how did you do it?
    Thanks!!!

  • Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file [help]

    Hi,
    I have a excel file that I have been using since beginning of year.
    Yesterday, I tried to open it but a message comes out "
    Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file"
    After I click yes, the page is blank. The file is about 400kb in size.
    I have try open and repair and third party repair program and not working also.
    I would appreciate a lot if you can help me.
    Thank you very much.

    Per your post, this problem might be caused by malware on the affected machine.
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    In order to clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx) to kill the malware, and then repair Excel file itself.
    If this is not the case, feel free to post back and let me know. Thanks.
    Tony Chen
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Excel cannot open the file 'file.xlsx' because the file format

    Every now and then, when I try opening an Excel file, I get a message saying that "Excel cannot open the file 'file.xlsx' because the file format or the file extension is not valid. Verify that the file has not been corrupted and that the file extension
    matches the format of the file.

    Hi,
    Which Excel version are you using? As far as I know, this issue is caused by malware on the affected machine.There are now two known variants of malware which causes this problem: Win32/Crilock.A and
    Win32/Buma!rts. They have both been identified as a new family of ransomware.
    We'd better clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx).
    For more detail information, please refer to the following link:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Excel cannot open the new form. The Form contains schema validation errors.

    i am running the approval workflow on a document library, while trying to open Excel
    file i get the error.
    Excel cannot open the new form. The Form contains schema validation errors.
    Detailed error:
    Element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}Body' is
    unexpected according to content model of parent element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}SharePointListItem_RW'.<o:p></o:p>
    Expecting: {http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}WorkflowLink,
    {http://schemas.microsoft.com/office/inf....
    neeraj

    Hi,
    According to your description, my understanding is that when you are running approval workflow and opening the Excel file, then it will occur the error above.
    For a better troubleshooting, I suggest you can try to create a new normal excel file and then run the workflow and open the file to test if it works. It will help to figure out if this is the file itself issue or the SharePoint issue.
    Also, please provide some more detailed information such as screen capture, it will easier to find the root cause of the issue.
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Microsoft Excel cannot paste the data

    Hi,
    I have a user that is working on a Vista Terminal Server with Excel 2010 on it.  The user will copy a large amount of data in Excel 2010 and try to paste it into Excel 2010 on his local machine being Win 7 and Excel 2010.  Sometimes it works, for
    example if the terminal server has just been rebooted, but then most of the time Excel locks up and throws this error "Microsoft Excel cannot paste the data".  Has anyone ever had this problem and if so, have an answer for the problem?  Anyone have
    any suggestions?  Could it possibly be the clipboard?
    Any help is greatly appreciated.
    Thank You!

    I had to create an acct here just to reply in hopes I could help others with this error as it was driving me nuts.
    There is one solution I have not seen suggested, that I determined I could reproduce 100% of the time for the messagebox error of "Microsoft Excel cannot paste the data" either between workbooks, worksheets, or even within the same worksheet.
    I wonder how many of these folks have clipboard managers/enhancers running?  Even though there is no legitimate reason a simple paste even of unformatted cells of only values would still result in the above error, but in my case having CLIPJUMP running
    and simply maintaining clipboard history of multiple entries, a simple single data item paste from Excel, to Excel, results in this Excel error.
    My clipboard manager <tries> to grab formatting, as do many others, which is why I believe some posted workarounds involving pasting into another app and back have helped.
    So, even though they may not ever conflict with anything.....disable <anything> that touches the clipboard in <any> way, and from what I can tell that will solve many occurrences of this error since different clipboard managers/enhancers
    have become more and more common.
    Simply shutting down my clipboard manager for the time I use Excel has 100% eliminated this error.

  • When connecting my 120GB iPod Classic I receive the prompt; iTunes cannot read the contents of the iPod "Name". It asks me to reset it. All my music appears to have been erased  iPod yet 41GB of data is on it. Help!

    When connecting my 120GB iPod Classic I receive the prompt; iTunes cannot read the contents of the iPod "Name". It asks me to reset it. If I do this I will lose the contents of the iPod. The iPod shows no music on it yet 41GB of data is on it under "About" on the iPOD itself. It would appear that the music files are still there. I don't want to reset the iPod as it will mean reloading a significant amount of music i.e. my entire CD collection. Any suggestions? Has my iPod died?

    (I'll lose all my music right?)
    That is correct. A restore wipes all content from the device, resets all settings back to their defaults, and loads a fresh copy of the iPod's software onto the device.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    After all the music is safely in iTunes again, go ahead and restore the iPod to factory settings as it says.
    B-rock

  • "Itunes cannot read the contents of ipod. Go to the summary tab in Ipod preferences and click Restore to restore this ipod to factory settings." What is this?

    I have been getting this error message since about the end of June when I updated to the latest version of iTunes. It's pretty annoying. Let me lay out how this has been happening for the past month, the best I can. I have a 32GB 4th gen iPod Touch
    I load content up to my iPod. Music, Apps, Videos, pictures, etc.
    My iPod works well for a little while, days sometimes a week is the longest I went without seeing this message.
    I connect iPod back to my laptop through the standard pack in Apple USB connector.
    I get the "Itunes cannot read the contents of ipod. Go to the summary tab in Ipod preferences and click Restore to restore this ipod to factory settings." message. When I go to the preferences tab, I click restore and iTunes gets stuck trying to restore my iPod. Then I have to uplug my iPod. And Shutdown/Restart my PC reconnect my iPod, and go through the restore process again.
    I have been doing this for as I said, a month. It's getting pretty grueling to keep havomh putting cotent on my iPod after these restores.
    I've tried everything.
    I've stopped autosync, it still happens.
    I tried to reinstall iTunes(be it I didn't full uninstall before trying to install again and got the option to fix corrupted files and such
    I've deleted all old back up, and it still happens
    Today is the fist time I'm fully uninstalling iTunes, and then reinstalling to see if this works.
    But do you guys have any otehr solutions for this? As I said, this didn't start happening until I installed the lastest version of iTunes 10.6.3

    - Have you tried another cable?
    - Another USB port?
    - When you have the problem, connect it to another computer to help determine if you have an iPod or computer problem.
    - Try just restoring the iPod to factory settings/new iPod. Do not restore from backup. If you still have the problem with this and all computer that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 

  • "iTunes cannot read the contents of the ipod", How can I fix this?

    Hello everyone, I am having trouble with my iPod touch 32GB and getting iTunes to detect it. I'm using Windows 7.
    When plugging it in tonight, I got the message "iTunes cannot read the contents of the iPod (Name). Go to the summary tab in the iPod preferences and click restore to restore this iPod to factory settings". I attemped to do this, but I then got an iTunes error "3184" and was unable to install the iPod software.
    I've tried...
    - Using a different computer
    - Using a different USB cable
    - Rebooting the iPod
    Nothing seems to work. I've read a solution as to delete one of the iTunes files on the iPod, but the iPod doesn't show up in my Windows Explorer, so I am unable to do this. The computer does however charge the battery when I have the iPod plugged in. I'm also able to still listen to music on the iPod as well.
    One other note, I had the same thing happen to my previous iPod touch. I got my original iPod touch back in December 2010. In October 2011, the iPod just died one day and I was not able to turn it on at all or charge it. When I'd plug it into the computer, I got the exact same errors and was unable to restore the iPod. I sent it in to Apple as it was still under warrenty and they sent me a replacement. Now 3 months later it's happened again. Of course the warrenty starts from the day you purchase the original, so this is no longer under warrenty despite having it for only 3 months. The only difference this time is that the battery still charges and I can still turn it on and listen to music.
    Any ideas?
    Thanks

    hi Angie!
    hmmm. is there an Apple Store convenient where you can take the ipod for a check-up?
    love, b

  • ITunes cannot read the data on my iPod touch

    Just three weeks or so ago, I was able to use iTunes without any problems to put a few songs on my iPod Touch 2nd Gen. Recently, however, whenever I try to connect my iPod to iTunes via USB, I get an error message that says something along the lines of: "iTunes cannot read the data on xxx's iPod Touch. Go to the Summary tab and choose Restore to restore this iPod to it's original factory settings.". I don't know why it says this since my iPod is functioning normally. My iPod shows up on the left hand side of the iTunes window as "iPod" instead of "xxx's iPod Touch" like it used to. The only options I have are Check for Update (disabled) and Restore. Is there any way to fix this without restoring my iPod? And if I have to restore, can I do so without losing (or having to re-transfer) any of my data that hasn't been or can't be backed up? Please help and thanks in advance!
    P.S. My iPod is in its genuine state: it hasn't been jailbroken or anything like that.

    Unfortunately, I've already tried that. Also, here is a list of other things I've tried, but have taken no effect:
    -Recharging, Restarting, Resetting, and Reconnecting my iPod Touch to my computer
    -Restarting my computer
    -Reinstalling iTunes
    -Reinstalling all iTunes, Apple, and iPod USB drivers
    -Updating the same drivers (but no updates were found)
    -Using a different USB port
    -Connecting to a different computer (doesn't work on my Toshiba laptop either, which is running the same OS and the same version of iTunes as my PC)
    My backup plan was to copy the new songs to my iPod by pasting them through Windows Explorer. My iPod shows up as a portable device under My Computer - as always - but the only thing I can access is a folder full of the photos on my iPod. I think this is normal, but I can't do what I want to do! Do you (or anyone else) have any other good ideas? Remember, I really don't want to do a restore unless I absolutely have to.

  • ERROR : Cannot read the request body while creating new calendar event api.

    Hi, 
    I was trying to create and update the calendar event using [POST] https://outlook.office365.com/api/v1.0/me/events and [PATCH] https://outlook.office365.com/api/v1.0/me/events/<eventId> respectively.
    When i try with poster or postman, I get this error
    {error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} }
    its not working . Any help will be appreciated.
    Note: GET events and DELETE Events are working. I think the API with payload is not working.
    Test Data :
    URL: https://outlook.office365.com/api/v1.0/me/events/
    Method: POST
    JSON Data(Payload):
      "Subject": "Discuss the Calendar REST API",
      "Body": {
        "ContentType": "HTML",
        "Content": "I think it will meet our requirements!"
      "Start": "2015-01-06T07:03:07.481Z",
      "End": "2015-01-05T07:03:07.481Z",
      "Attendees": [
          "EmailAddress": {
            "Address": "[email protected]",
            "Name": "Konveen"
          "Type": "Required"
    Error:
        "error": {
            "code": "ErrorInvalidRequest",
            "message": "Cannot read the request body."

    Hi Sahil,
    I was able to make your request work fine against my Office 365 mailbox with 2 changes.
    1. Can you please make sure you are adding header "Content-Type: Application/Json"?
    2. Can you please make sure your end time is AFTER start time?  Looks like there is a typo with your current request as the start time is on 2015-01-06 and end time is on 2015-01-05.
    Hope that helps ...
    Thanks,
    Venkat

Maybe you are looking for

  • Dvi to vga adapter?

    I want to connect a 20" VGA monitor to my Powermac dual 2.7. I looked in the Apple store and here's what they had: "The Apple DVI to VGA display adapter was specially designed to allow users to connect their DVI equipped PowerBook G4 or Power Mac G4

  • Dashed Table borders do not render correctly when PDF created from MS word 2013

    I have a defined format for many documents which have all been created in MS word 2007.  Never any problem creating PDFs of  these using ADOBE XI Pro. Updated to MS 2013 and now when converting the same doc to PDF all dashed borders around tables ren

  • XY Graph reference to report generator issue when program is compiled

    I am using Simplicity PDF generator to add a XY Graph to a PDF report, same handle is used in Excel report and works fine. The XY Graph shows up fine when the code it run in development mode, when run as executable, the graph insert routines fail for

  • Two keys suddenly stop working

    The end key/right arrow key doesn't work. When i hold down the left shift key to get an uppercase i, the combination doesn't work. It does work with the right shift pressed. Any idea what is going on? Everything worked fine until today. Thanks!

  • Good practices with GUI? (deriving classes)

    Hello! I wonder if it is good practice to have the GUI in the init()-class, or superclass in an Applet? I have an applet with the GUI in the init(), and all events in the GUI is passed to it's child-class, named Manager. What about listeners, should