SSAS cube role members magically disappear overnight

Hello,
We are running SQL Server 2008 SP1 CU4 and I have been experiencing an occasional issue whereby our cube role members disappear - resulting in the user-dashboards failing on our website, so I am keen to resolve this.
Some background:
-We have two roles, one with 2 members and one with about 15-20.  When the issue occurs, both roles lose their members but the roles themselves remain.
-The SSAS database is set to do a full process every night at 11pm.
-I deploy cube changes by backing up the cube from my development machine, and restoring to the server.  My dev machine is on a different Windows domain.  When I restore I select "overwrite security information" but am always very careful to select
"Skip Membership".  The restores always complete successfully, and I can immediately re-process the cube and confirm that the original members are still there and functioning normally.
-I suspect that this issue is related to the nightly re-process of the database, however I have tested this theory by checking the membership the day after I've completed a cube deployment and everything is still Ok.
-This just happened again last night.  I reviewed the server logs and saw that the server rebooted last night at 9pm, followed by the cube re-process at 11pm.
-I noted this morning that the role membership has a single SID listed, and I can confirm that this is the SID of my local user account on my local machine.  So it appears that when the issue exhibits itself, the cube is reverting back to the role membership
contained in the restored database, even though I told it to skip membership.
To fix it this morning, I re-added the members and have saved a script to automate the process next time it occurs.  I am aware I could run this script after every re-process just to be safe - but I'd rather stop unpredictably losing the configuration
than automate the re-establishment of it!
What gives!? Any suggestions appreciated.
Michael

Hi Abbas,
We're clear on the difference between "build" and "process" right?
In my case, the cube processes every night - whereas we only change the design of the cube occasionally, maybe once every 2-3 months - therefore we are only
building it every 2 or 3 months.
Because my dev machine is on a totally different domain to the SSAS server, I can't (or at least I didn't think I could) specify the accounts that are members of the various roles during development.  I do this with the aid of a script every time we
deploy out a new version of the cube to the SSAS server.
So, after a build and deploy - the cube role membership is perfectly fine and behaves as expected for all users.  The thing that's puzzling us is that the role membership occasionally appears to unpredictably revert to prior settings (i.e. reverting
back to my deployed role membership config prior to running my script to set the correct role membership). 
The cube can be running fine for several months and then suddenly I get a call in the morning about users not being able to access the cube.  I find that the server was rebooted overnight and the role memberships have disappeared - this is not an immediate
result of a BIDS build/deploy as I think you are suggesting Abbas.
This hasn't occurred again since my last post in March this year, fingers crossed the problem has gone away.
Thanks,
Michael

Similar Messages

  • SSAS Cube Role Issue

    Hi,
    I want to grant access to a user to a SSAS database. I'm able to add him to two databases but when i try to add him to the third database, it seems to hang. I have tried both GUI and XMLA query for this.The ALTER ROLE XMLA query(after extracting the member
    tag from the role query of another database) gives the following error in a couple of seconds:
    "Transaction errors: Aborting transaction on session 115585.
    Transaction errors: Aborting transaction on session 115585. Transaction errors: Aborting transaction on session 115585.
    I had to kill the query eventually. It doesn't seem to be a user issue as a simple alter role of the existing role also gives this error.
    I'm using SSAS 2005. Its strange that it is showing this issue suddenly today. Can someone please help?
    Regards,
    Sumit

    A restart of the SSAS service worked in this case. Never thought it would be as simple as this.

  • How to read ssas cube and role from Excel vba

    Hi,
    I want to read all roles and cubes in SSAS Db from Excel Vba.
    1. First i want to read all the roles which was assigned to me
    2. based on the role, i have to read all cube name
    Please help me to
    accomplish this task.

    Hi Jack,
    In Analysis Services, Each role contains members, by Windows username or by Windows group, and permissions (read, process, administrator). If the user has the permission to access SSAS database, then the account was contained in one or more roles. When connect
    to SSAS database, we need to use an account to log on it, and SSAS will list all the cubes' name based on the role automatically.
    Reference
    Using Excel to interact with a SSAS cube
    Regards,
    Charlie Liao
    TechNet Community Support

  • Dimension Security causing SSAS cube to slow down

    Hi,
    Experiencing problems with with the SSAS cube once its processed. Sometimes takes around 20 mins for the excel to load once you drag down any dimension.The cube has got no calc scripts/named sets etc.It has around 17 dimensions and one dimension(Employer)
    has got 46 attributes and another (member)17.Others are pretty small.The Employer dimension is used twice as role playing and the both employer/member have got dimension security applied to it.There are about 6 roles have been set up to restrict access to
    members in these dimensions.
    The SQL profiler shows multiple "Query Dimension" (mostly for Employer dimension)followed by a lot of "Calculate Non Empty Current"s  .Suspect that the delay is due to the dimension security expression evaluation.This only happens
    during first access of the cube within a role and it's relatively quick when I'm accessing via a role which doesn't have dimension security applied to it.Is there anyway to automatically trigger this process right after the cube has been processed so that
    it doesn't cause agony to the first user?

    You could build a cache warmer that connects with EffectiveUserName=YourDomain\user1 on the connection string and loop through each user. But what is your dimension security expression? Maybe we can speed it up.
    http://artisconsulting.com/Blogs/GregGalloway

  • Using FORMAT_STRING from SSAS cube - not working consistently

    Here's the deal.  
    I've got an SSAS cube and I am scoping the format of the measures based on dimension members. 
    Like this.
    scope(( [Account].[Level 5].&[I000900000] )); 
    format_string(This) = "(#,0,);#,0,";   
    end scope; 
    I'm then calling this format in the SSRS report using typical SSRS trickery and hacks.  
    Well. When I run the report for one date (this is a GL financial cube), this works perfectly.  When I run the report for a different date, it all of a sudden doesn't work.  When I view the data in excel through a pivot table, everything is fine.
    It's driving me crazy.  Has anyone else experienced something like this.

    Hi Baracus,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Cache and performance issue in browsing SSAS cube using Excel for first time

    Hello Group Members,
    I am facing a cache and performance issue for the first time, when I try to open a SSAS cube connection using Excel (using Data tab  -> From Other Sources --> From Analysis Services) after daily cube refresh. In end users
    system (8 GB RAM), for the first time, it takes 10 minutes to open the cube. From next run onwards, its open up quickly within 10 secs.
    We have daily ETL process running in high end servers. The configuration of dedicated SSAS cube server is 8 core, 64GB RAM. In total we have 4 cubes - out of which for 3 is full cube refresh and 1 is incremental refresh. We have seen after
    daily cube refresh, it takes 10 odd minutes to open the cube in end users system. From next time onwards, it opens up really fast with 10 secs. After cube refresh, in server systems (16 GB RAM), it takes 2 odd minutes to open the cube.
    Is there, any way we could reduce the time taken for first attempt ?
    Best Regards, Arka Mitra.

    Thanks Richard and Charlie,
    We have implemented the solution/suggestions in our DEV environment and we have seen a definite improvement. We are waiting this to be deployed in UAT environment to note down the actual performance and time improvement while browsing the cube for the
    first time after daily cube refresh.
    Guys,
    This is what we have done:
    We have 4 cube databases and each cube db has 1-8 cubes.
    1. We are doing daily cube refresh using SQL jobs as follows:
    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <Object>
    <DatabaseID>FINANCE CUBES</DatabaseID>
    </Object>
    <Type>ProcessFull</Type>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
    </Parallel>
    </Batch>
    2. Next we are creating a separate SQL job (Cache Warming - Profitability Analysis) for cube cache warming for each single cube in each cube db like:
    CREATE CACHE FOR [Profit Analysis] AS
    {[Measures].members}
    *[TIME].[FINANCIAL QUARTER].[FINANCIAL QUARTER]
    3. Finally after each cube refresh step, we are creating a new step of type T-SQL where we are calling these individual steps:
    EXEC dbo.sp_start_job N'Cache Warming - Profit Analysis';
    GO
    I will update the post after I receive the actual im[provement from UAT/ Production environment.
    Best Regards, Arka Mitra.

  • Performance issue in browsing SSAS cube using Excel for first time after cube refresh

    Hello Group Members,
    This is a continuation of my earlier blog question -
    https://social.msdn.microsoft.com/Forums/en-US/a1e424a2-f102-4165-a597-f464cf03ebb5/cache-and-performance-issue-in-browsing-ssas-cube-using-excel-for-first-time?forum=sqlanalysisservices
    As that thread is marked as answer, but my issue is not resolved, I am creating a new thread.
    I am facing a cache and performance issue for the first time when I try to open a SSAS cube connection using Excel (using Data tab  -> From Other Sources --> From Analysis Services) after daily cube refresh. In end users system (8 GB RAM but around
    4GB available RAM), for the first time, it takes 10 minutes to open the cube. From next run onwards, its open up quickly within 10 secs.
    We have daily ETL process running in high end servers. The configuration of dedicated SSAS cube server is 8 core, 64GB RAM. In total we have 4 cube DB - out of which for 3 is full cube refresh and 1 is incremental refresh. We have seen after daily cube
    refresh, it takes 10 odd minutes to open the cube in end users system. From next time onwards, it opens up really fast with 10 secs. After cube refresh, in server systems (32 GB RAM, around 4GB available RAM), it takes 2 odd minutes to open the cube.
    Is there, any way we could reduce the time taken for first attempt ?
    As mentioned in my previous thread, we have already implemented a cube wraming cache. But, there is no improvement.
    Currently, the cumulative size of the all 4 cube DB are more than 9 GB in Production and each cube DB having 4 individual cubes in average with highest cube DB size is 3.5 GB. Now, the question is how excel works with SSAS cube after
    daily cube refresh?
    Is it Excel creates a cache of the schema and data after each time cube is refreshed and in doing so it need to download the cube schema in Excel's memory? Now to download the the schema and data of each cube database from server to client, it will take
    a significant time based on the bandwidth of the network and connection.
    Is it anyway dependent to client system RAM ? Today the bigest cube DB size is 3.5 GB, tomorrow it will be 5-6 GB. Now, though client system RAM is 8 GB, the available or free RAM would be around 4 GB. So, what will happen then ?
    Best Regards, Arka Mitra.

    Could you run the following two DMV queries filling in the name of the cube you're connecting to. Then please post back the row count returned from each of them (by copying them into Excel and counting the rows).
    I want to see if this is an issue I've run across before with thousands of dimension attributes and MDSCHEMA_CUBES performance.
    select [HIERARCHY_UNIQUE_NAME]
    from $system.mdschema_hierarchies
    where CUBE_NAME = 'YourCubeName'
    select [LEVEL_UNIQUE_NAME]
    from $system.mdschema_levels
    where CUBE_NAME = 'YourCubeName'
    Also, what version of Analysis Services is it? If you connect Object Explorer in Management Studio to SSAS, what's the exact version number it says on the top server node?
    http://artisconsulting.com/Blogs/GregGalloway

  • SSAS Cube Hierarchy Default Member, not aggregatable in pivot table multi select, Urgent

    Hi All,
    I have one problem in my project ssas cube. one of the dimension hierarchy, a value has been set up as default member in calculation tab.
    The problem is:
    When i filter (select multiple) this defaulted value and other value in excel pivot, it is always showing default member value instead of selected members aggregated value. if i remove default member it is working fine. Can you please provide work around
    for this.
    Please note that, if select multiple values within that hierarchy (this time not selected default value), aggregation is working fine.
    Thanks, Rajendra

    Hi Hirmando,
    According to your description, the default member cause incorrect data when dragging a attribute that contain a default member to the FILTERS area, right?
    I can reproduce this issue on my environment, when dropping this dimension in the filter area of my pivot table and select multiple members including the default member then only data for the default member is shown. Currently, it's hard to say the root
    reason that cause this issue. In order to narrow down this issue, please apply the latest server pack and cumulative update.
    Besides, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback So that microsoft will confirm if this is a know issue.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Insert SSAS Cube records measure and dimensions to relational table

    Hi,
    I need to retrieve one measure with a couple of its related dimensions from an ssas cube and have it stored in SQL table. How could this be done?
    In order to read data from cube and insert into SQL relational table
    this thread says to use openquery but states that it will only work if there are measures on the columns
    and no dimensions on columns.
    Is there a way to query a measure with a couple of its related dimensions
    in MDX using openquery? Or any other way to query the cube to get these into SQL?
    (Or should I better get the data from the base SQL tables which the cube is built from?)
    Thanks for advising
    Namnami

    Hi Namnami,
    Sure Darren Gosbell thread will help you, you can try below things.
    You can get more info on
    this link
    Basically to write SQL+MDX combined we have to create link server from where we want data to combine with SQL. To create link server you need to have Admin access to the SQL Server.
    IF IS_SRVROLEMEMBER ('sysadmin') = 1
    print 'Current user''s login is a member of the sysadmin role'
    ELSE IF IS_SRVROLEMEMBER ('sysadmin') = 0
    print 'Current user''s login is NOT a member of the sysadmin role'
    ELSE IF IS_SRVROLEMEMBER ('sysadmin') IS NULL
    print 'ERROR: The server role specified is not valid.'
    Above Query returns the whether you have admin admittance to the server or not to create Link Server.
    More Details on Hybrid Query-
    USE
    AdventureWorksDW2008R2
    GO
    EXEC
    sp_addlinkedserver
    @server='Test',
    @srvproduct='',
    @provider='MSOLAP',
    @datasrc='localhost',
    @catalog='Adventure Works DW 2008R2'
    Declare @MDXExpression as Varchar(MAX)
    Select @MDXExpression =
    SELECT
    NON EMPTY
    [Measures].[Sales Amount]
    ,[Measures].[Standard Product Cost]
    ,[Measures].[Tax Amount]
    ,[Measures].[Total Product Cost]
    } ON 0,
    NON EMPTY
    [Sales Channel].[Sales Channel].[Sales Channel]
    } ON 1
    FROM
    [Adventure Works]
    Exec ('SELECT * INTO ##TestTemp FROM OpenQuery(TestTest1,''' + @MDXExpression + ''')')
    SELECT
    CONVERT(varchar,t."[Sales Channel].[Sales Channel].[Sales Channel].[MEMBER_CAPTION]") AS [Date],
    (CONVERT(nvarchar,t."[Measures].[Sales Amount]")) AS [Sales Amount],
    (CONVERT(nvarchar,t."[Measures].[Standard Product Cost]")) AS [Standard Product Cost],
    (CONVERT(nvarchar,t."[Measures].[Tax Amount]")) AS [Tax Amount],
    (CONVERT(nvarchar,t."[Measures].[Total Product Cost]")) AS [Total Product Cost]
    from
    ##TestTemp t
    --DRop Table ##TestTemp
    Query Execution-
    1-     
    So above query first creates liked server with named as 'Test'.
    2-     
    After that MDX query executed on linked server where we have kept the MDX query in MDXExpression variable.
    3-     
    Using OpenQuery function data gets dump in to ##TestTemp table.
    4-     
    Finally we get the data from ##TestTemp table.
    Thanks,
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • SSAS Cube data display platforms (including per user permissions support)

    Hi,
    I've developed an SSAS cube for a small sales company. The company does not want to invest on sharepoint. They need to display cube data for each sales agent filtering his own records.  
    Excel and SSRS can display cube data but can they filter their data per user using the username in customdata? Can they connect with certain roles?
    Creating a .net application may also be a solution although it should take much time and effort for creation.
    What other options are there to display and work with SSAS cube data?
    What's preferable?
    Thanks
    Namnami

    Hi, 
    I didn't understand your above sentence: "there is only one
    hop and Kerberos is not required"
    what did you mean?
    I don't think roles is a good option for us, we have around 20 salesman and they keep on changing. 
    The cube currently displays in Performance Point by using CustomData and that works great. 
    But we want the users to consume it via excel, I just didn't understand clearly if username can be used
    safely without setting kerberoes. 
    Appreciate your advice!
    Namnami
    *** Update- I understand now, one hop meaning excel connects directly to cube does not require kerberoes and can use username(). Any example for two hops? Thanks a lot , you're advice really helped!

  • SSAS Cube Connection with SAP BO IDT

    Hi Guyz,
    I have one requirement where i have to connect the SSAS cube with SAP BO along with cube security.I was able to connect the SSAS cube with the help of IDT using cube's Dll file , but i couldnot able to implement cube security in my SAP BO environment. The security incides the specific roles which are there in cube. My connection is not implementing the security which is there in cube.
    Kindly , provide any insights if anyone have on these.
    Thanks in Advance.
    Shweta

    Dear, Roberto,
    Our user has Full Access to all BPC tasks and it is administrator in BI system.
    Also we can successfully connect with the same user using Connection type "Local".
    We had done some investigation and in the BPC SQL Server trace log we can catch the following message when an error occurs:
    ==============[System Error Tracing]==============
    [System  Name] : BPCXMLAService [Message Type] : ErrorMessage [Job Name]    : ValidateUser [DateTime]    : 04/23/2014 10:58:06 [UserId]      : [Exception]    DetailMsg  : {System.Exception: Invalid user    at SAP.BPC.Services.Webservice.XMLAService.XMLAService.ValidateUser()} ==============[System Error Tracing  End ]==============
    It is very interesting that after the EPM workbook is launched via BI Launch Pad till an error occurs we are NOT provided with possibility to enter any username and password. So the EPM add-in should use the same user which was logged into BI Launch Pad - in our case the user with administrative rights both in BI Launch Pad and BPC systems. Am I missing anything?
    Looking forward your feedback.
    Thank you in advance.
    Best regards,
    Donatas

  • SSRS Date parameter - current month from SSAS cube

    I have a SSAS cube with a date dimension called Posting Period and now I would like to have my report parameter using this date dimension to show the current month.
    So far I have worked out the following expression which are working(Fiscal year calendar going from May to May) for the year component - but I can't figure out how to get it to work on Quarter date part (and the month) so as you can see
    the Quarter and month is hardcoded in the below expression:
    ="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year(Today())-1) + "].&[Q4].&[10]”
    Any help would be appriciated.
    Tx

    Hi HCMJ,
    In your scenario, you use the expression
    ="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year(Today())-1) + "].&[Q4].&[10]”
    to set the default value of the parameter and then use it in the MDX query, right?
    If in this case, you can use the expression below
    ="[PostingPeriod].[Posting Period].[Year].&[2013].&[Q" & DatePart(DateInterval.Quarter,today()) & "].&[10]”
    to set the value on Quarter date part.
    And it returns:
    If I have anything misunderstood, please point it out and elaborate the meaning of "but I can't figure out how to get it to work on Quarter date part (and the month) so as you can see the Quarter and month is hardcoded
    ", so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSRS Expression Current month in a Fiscal calendar dimension from a SSAS cube

    How to create an expression for a default SSRS parameter to a SSAS cube when using i Fiscal Year calendar - and where I want to show current Calendar month and year (for example February 2014) 
    This is an example of my Time dimension for February 2014:
    [Time].[FiscalYMD].[Fiscal_Year].&[2013].&[10]
    The fiscal calendar goes from May - May - which means that April 2014
    would look like this:
    [Time].[FiscalYMD].[Fiscal_Year].&[2013].&[12]
    and May 2014 would look like this:
    [Time].[FiscalYMD].[Fiscal_Year].&[2014].&[01]
    Please advise

    Hi HCMJ,
    To represent the fiscal calendar, you shift the current date by 4 months back. Then you can do:
    ="[Time].[FiscalYMD].[Fiscal_Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[" & Month( DateAdd( "m", -4, Today() ) ) & "]"
    It just gets the year and month of '4 months ago'. I have not tested it, but I guess it should work.
    Regards
    Andrew Borg Cardona

  • Memory on phone has disappeared overnight!

    Hi
    I have the 6300.
    It has a built in memory card which has disappeared overnight.
    Does anyone have any ideas?
    Much appreciated.
    Thanks

    Whoa! Maybe someone has sneaked in to your phone.

  • SSAS cubes - fragments

    Hi,
    Hoping someone can help. I have defined a logical model over the top of a set of SSAS cubes in a single SSAS database. This consists of a summary cube and detailed cubes that relate to individual products. I would like to have a "Product" dimension that will allow the user to drill between the products and for dimensions at lower levels of granularity (i.e. that are only relevant to one product) data should be sourced from the relevant detailed cubes. Unfortunately although the summary cube has a product dimension the detailed cubes don't - when I try to map the detailed cube to the product dimension using an expression I get the following error message: "Target data source does not support the Complex Expression operation."
    e.g.
    Product Dimension has 3 products in it: Bikes, Cars and Boats. There is a summary cube that contains all 3 products and has the Product dimension defined.
    There are 3 detailed cubes for Bikes, Cars and Boats that don't have a product dimension. In my mappings for the Product Name attribute of the Product dimension I have the following:
    Logical Table Source..... Mapped As
    SummaryCube..... Product.Product
    BikeCube... 'Bikes'
    CarCube... 'Cars'
    BoatCube.. 'Boats'
    Hope this explains it. I get the error message whenever I'm trying to get data from the detailed level cube.
    Thanks,
    Rob

    Hi Platt,
    By default, the default account for AS services 'NT Service\MSSQLServerOLAPService' has only public permission to few databases. If you haven't change the AS services account, or haven't grant the permission for this account, then you cannot deploy
    the AS project to server.
    So in your scenario, ensure the service "SQL Server Analysis Services" is running with a proper Log On As user. This user should have administrator permission on Analysis Services and the proper permissions on the database engine. To avoid this
    issue, you can grant the SELECT permission for the default account for AS services to data source DB. Or you can change the services account to this domain user who has the corresponding to the data source DB.
    http://jetreportskb.host4kb.com/article/AA-00238
    http://msdn.microsoft.com/en-in/library/ms175371.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Exporting 7 min. video from Aperture and received error.  How can I get the original back?

    I uploaded a video from my iphone 5 into Aperture and then I tried to export it to my desktop.  After I clicked on Export, it attempted to export for a while but then gave me an error message saying that 0 of 1 videos was exported and it couldn't exp

  • Help: set the list item when scrollbar scrolls

    i need help regording how to set the listbox list item to be selected (i.e. item to be highlighted) when the vertical scrollbar scrolls.

  • Unanswered question

    Hi, I am bit confused about what 'Unanswered question' means which is present at the bottom on every forum's main page. Now according to my understanding it means that it has not been answered. No replies at all. But why has the following thread been

  • Passport is 100 more expensive in canada than US

    that is the way: =============================== BlackBerry CEO John Chen says he will try to leverage the 'emotional' attachment of Canadians to the company to lure back customers. BlackBerry launched its new Passport device Wednesday.

  • Setting a JPanel alignment

    hi all, I'm using a BorderLayout for my simply application. I have created a JPanel that contains two buttons, as follows: JPanel pannello_pulsanti=new JPanel(); pannello_pulsanti.setLayout(new BoxLayout(pannello_pulsanti, BoxLayout.LINE_AXIS)); salv