SSAS Error

Hi
1) Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_Dim_x0020_Document_x0020_Type', Column: 'Item_x0020_No_', Value: '1100'. The attribute is 'Item No'.
How can I resolve this on package level.
2) I am also not able to see all the fields of a fact table when creating cube, where I can se all fields in dataview.

Hi MohitJainMJ,
For the first problem, it's common error
Errors in the OLAP storage engine: A duplicate attribute key has been found when processing
Here are some blogs which describe this error, please refer to the links below.
http://blog.oraylis.de/2013/08/a-duplicate-attribute-key-has-been-found-during-processing-revisited/
http://blog.tutorem.com/post/2011/09/09/Microsoft-SSAS-OLAP-Error-A-duplicate-attribute-key-has-been-found-when-processing-table-column-value.aspx
For the second problem, to see all the fact fields, please expand the fact table in the Tables tab.
If I have anything misunderstood, please point it out.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support

Similar Messages

  • Where are my ssas errors logged?

    Hi.  I got this error from a sql agent driven cube process yesterday and am wondering where the log of errors is created...
    Executed as user: x\servername$. <return xmlns="urn:schemas-microsoft-com:xml-analysis"><results xmlns="<root">http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults"><root
    xmlns="urn:schemas-microsoft-com:xml-analysis:empty"><Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception"><Warning WarningCode="1092354050" Description="Server: Operation completed with 1042 problems
    logged." Source="Microsoft SQL Server 2008 R2 Analysis Services" HelpFile="" /></Messages></root></results></return>. 
    The step failed.
    if its a property I can see related to the server in ssms, which property as I see lots of stuff with the word log in the property name.

    As it is executed from SQL agen job then you can consider
    sysjobhistory for error messages. you can view it by using below code 
    SELECT *
    FROM msdb.dbo.sysjobhistory
    WHERE run_status = 0
    AND Job_id IN
    (SELECT Job_id
    FROM msdb.dbo.sysjobs
    WHERE name = 'Job_Name')
    Note: 
    Status of the job execution:
    0 = Failed
    1 = Succeeded
    2 = Retry
    3 = Canceled
    You can also view error details from different type of
    SSAS logs . 
    Hope this will help.
    Glad to help! Please remember to accept the answer if you found it helpful. It will be useful for future readers having same issue.
    My Profile on Microsoft ASP.NET forum

  • SSAS SQL Profiler Trace Results - Error metadata unknown

    I am using a control that generates MDX queries and am tracing these through SQL Server Profiler. On one of the MDX queries, the Query End event is showing a 49 in the Error column. Does
    anyone know where to find what the codes in the Error column translate to for MDX trace events?
    Chad Dotzenrod SWC | TECHNOLOGY PARTNERS 1420 Kensington Road, Suite 110 Oak Brook, Illinois 60523-2144 http://www.swc.com

    The textdata has the mdx query that is getting an error but no error detail so this doesn't help.  We were hoping there was a dictionary of all the SSAS error codes for queries so that we could understand what error code 49 means.
    Chad Dotzenrod SWC | TECHNOLOGY PARTNERS 1420 Kensington Road, Suite 110 Oak Brook, Illinois 60523-2144 http://www.swc.com
    Hi Chad,
    SQL Profiler will not capture the detail error message under the "Error" column. I would recommend you submit a wish to the Microsoft Connect at
    https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Best Regards,
    Elvis Long
    TechNet Community Support

  • MDX Error in Reporting Services/Sharepoint

    Hi,
    I'm using SQL Server 2008 R2 SP1 CU5.
    I have a reporting that executes a DataSet with a MDX query. That report was executing very well before (in SQL Server 2008 R2 SP1), but after we updated SQL to SP1 Cumulative 5, the report returns an error. 
    The strange thing is, if we execute the MDX query in Analysis Service, and after that execute the report in sharepoint 2010, it works fine, but about 10 minutes after the reporting returns error again, until we execute again the query in AS.
    The error returned isn't clear, just say "Operation Cancelled", this same message is returned by the Analysis Services Log (Profiler).
    Some idea?
    PS.: Sorry my english.
    Se esta sugestão for útil, por favor, classifique-a como útil. Se ela lhe ajudar a resolver o problema, por favor, marque-a como Resposta.

    Hi Fdev,
    According to your description, you encounter the issue after apply SQL Server 2008 R2 SP1 CU5, right?
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • Error while browing cube in SSMS but now while executing MDx

    Hi all,
    I have a cube and When I browse(in SSMS) I get error while if I write MDX (in SSMS) and execute that, It executes without any error.
    This is strange and only happens for one measure group while it does not happen for other.
    In first case when I try to slice the count measure by a parent child attribute  (Relationship is Many to many on key column), it throiws me this error and server stops (I have to restart the server) :
    The query could not be processed:An error was encountered in the transport layer.The peer prematurely closed the connection.
    in second scenario when I slice by a description attribute (relationship is again many 2 many) I get this error :
    The query could not be processed:
    o File system error: The record ID is incorrect. Physical file:
    \\?\C:\ProgramFiles\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Data
    The error doesnot happen if I execute an MDX in SSMS.
    Any suggestion(s) what is wrong here ?
    - Girija
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

    Hi Girija,
    Acording to your description, you encounter the error when browsing the cube, right?
    It's is not sufficient for us to be able to figure out what is going wrong based on the limited description. Based on my research, some kind of data corruption happened to the database on your machine can cause this issue. In your scenario, please reprocess
    the database and check if this issue persists or not. Here are some similar threads for your reference.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/abbc5561-7989-4699-8bf6-9283e66cabb5/file-system-error-the-record-id-is-incorrect?forum=sqlanalysisservices
    http://connect.microsoft.com/SQLServer/feedback/details/337651/analysis-services-file-system-error-the-record-id-is-incorrect-physical-file-logical-file
    Besides, are there any detail error message in the log file? You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • "Internal error: An unexpected exception has occurred" error message displayed when browsing a cube.

    “Internal error: An unexpected exception has occurred“ error message displayed when browsing a cube.
    The error behaviour is quite irregular and does not occur for specific condition.
    Will cumulative update 9 for SQL Server 2008 R2 (SP1) installation help to fix the issue which is provided on the below link:
    (http://support.microsoft.com/kb/2152148)
    The current version of SQL Server I am using is as below:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    Thanks in advance for the help!

    Hi Mon,
    The hotfix you said is for Microsoft SQL Server 2008. So it will not work on your scenario since you are using SQL Server 2008 R2.
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.

    The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.
    We get this error when we try to check the properties of an analysis server using SQL Server Management studio(right click the instance name
    and check properties). We have resolved this issue twice by Stopping the SQL Server analysis service,removing db folders from Analysis Server Data folder and starting the services back on. The db folder that we removed was advised by the BI team.
    The SQL Server Analysis Server is 2012 SP1

    Hi RB_ORIPW,
    The table with name of 'XXX' doesn't exist.
    An error occurred when loading the model(Micorsoft.AnalysisServices)
    If I understanding correctly, you encounter the error randomly, now what you want it that avoid this issue completely, other than stop the services, detele the db filder and restart the services, right?
    The error might be caused by that the data file is corrupted. However, we cannot give you the exact reason that cause this issue. You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Besides, here is fix that describe the similar issue, and it was fixed in Cumulative Update 7 for SQL Server 2012 SP1, please refer to the link below to see the details.
    http://support.microsoft.com/kb/2897263/en-us
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Error after process a Tabular model

    Hi,
    When I process a Tabular model, sometimes I have the next error
    "Error moving file '\\?\G:\filename.80.det.xml_TEMP_3804' to file '\\?\G:\filename.80.det.xml': ." I see in a XEvents trace that process finished ok and then throw the error.
    Does somebody know the reason?
    Regards,

    Hi Numer04,
    It's hard to give you the exact reason that cause this issue. However, you can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • Fault tolerance and availability of SSAS Multidimentional Server

    We have dedicated Azure VM for SQL Server 2014 SSAS.
    What could be done for situation where error occurs with the SSAS server?
    We would like to ensure that Power View reports on SharePoint 2013 are up and running.
    Kenny_I

    Hi Kenny_I,
    In order to minimize downtime, you can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Besides, we can cluster SSAS. SSAS supports clustering natively. This is since 2008 R2. Meaning that, if Server1 dies, clients will automatically access Server2.
    SSAS Cluster
    Regards,
    Charlie Liao
    TechNet Community Support

  • Internal error: The parameter is not valid When Trying to Create an Offline Cube

    Hello,
    Can someone Please help me Understand the error which am getting while Creating an offline cube?
    My script is somewhat like this
    CREATE global CUBE [ABCoffline]
    Storage 'C:\Test\Testing\abc.cub'
    FROM [abc]
    MEASURE  [abc].[A],
    MEASURE [abc].[B],
    MEASURE [abc].[C],
    MEASURE  [abc].[D],  
    DIMENSION [abc].[D1],
    DIMENSION [abc].[D2]
    If I remove the measure D am able to create cube.However if I include the measure am not able to and getting the error
    Adding More information. My relationship between the dimensions and fact goes like this
    can someone please advise!!

    Hi Chris,
    According to your description, the cube works fine, you can connect to it in client application. The only issue is that counter the error when create a local cube based on it, right?
    In your scenario, which version of SQL Server are you using? Only with the dimple error message, it's hard to analyze this issue. In order to narrow down the issue, please apply the latest services and cumulative updates based on your SQL Server version.
    You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSAS - No connection could be made because the target machine actively refused it

    SSAS Service was working fine…. All of sudden it stopped not sure why the service was stopped. I would like to findout why the service stopped, its just to make sure it should not happen in future
    Please help me with suggestions.
    Thanks & Regards, Santhosh

    Hi Santhosh,
    Based on your description, we just know the SQL Server Analysis Services (SSAS) stopped. So we cannot give you the exact reason that cause this issue. However, you can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • Cannot connect to specific Cube through BI Semantic Model for Power View in SharePoint 2013

    I'm trying to create a connection to an Analysis Services Cube through a BI Semantic Model connection in SharePoint 2013 to create a Power View report. I'm able to connect to other cubes on the same server, and I have SQL Server 2012 SP1 Update 9 installed
    so it's not a versioning issue.
    I've captured a log of two different connection attempts to show this in action. I can't post links, but just send me a message if you need it, just in case there's any interest in it. The first is a successful connection to an alternate cube
    on the same server, and the second is an unsuccessful attempt that produces and error with "Internal error: An unexpected exception occurred.".
    On the SharePoint side, the error is reported as:
    Internal error: An unexpected exception occurred. ---> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException: Internal error: An unexpected exception
    occurred.
    This cube was working the previous day, but it has since been edited and it no longer works now but there's no clear reason why. It can still be queried directly through SSMS with MDX queries, and produces no errors.
    Any help is much appreciated,
    Ryan

    Hi Ryan Myers,
    According to your description, when you tried to connect to an Analysis Services Cube in SharePoint 2013 through BI Semantic Model, you get the error message: Internal error: An unexpected exception occurred. But the MDX queries works fine in SSMS.
    It's hard to give you the exact reason that cause this issue based on the limited information, please validate if the connection string is correct. Besides, we can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    We can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log)
    Reference:
    Data collection for troubleshooting Analysis Services issues
    Data Connection For a Power View Report
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • How to Zero Debt After Account Closure Date in MDX Calculated Measure

    Thanks in advance to anyone who can help me with the below problem.
    I’m building a Finance cube, it holds all customers we have billed and any cash received against their debt. I have a few calculated measures that work out Total Debt, Total Cash. From these I have a calculated measure called Total Debt Outstanding which
    is (Total Debt - Total Cash)
    My problem, when an account is closed the debt is not always zero. We don’t always get all the cash to cover the debt so just write off the outstanding debt. I have a requirement to zero out the debt after closure date has passed. 
    If I look at the calculated measure [Total Debt Outstanding] today for all accounts it will include debt figures from closed accounts, I need the calculated measure
    [Total Debt Outstanding] to ignore this and not to inflate my current debt figure.
    Example
    Account 12345, Debt £3142 added on 15/03/2013, Cash £1,687
    received on 12/12/2013, Total Debt Outstanding £1107. The Account closed on 15/12/2013 with a balance of £1107, after the closure date I need the total Debtor outstanding figure to be £0 if you browse the cube with my date dimension. 
    My date dimension Hierarchies is Year-Quarter-Month-Day
    I have tried using the Scope function to Zero the Total Debt Outstanding figure after closure date but can’t get it to work. 
    My scope calculation is below:
    Scope([Measures].[Total Debt Outstanding]);
    This = IIF([Date].[Year-Quarter-Month-Day].Currentmember > [ClaimData].[Closed].[Closed].Currentmember,0,[Measures].[Total Debt Outstanding]);
    End Scope;
    My Account Opening and Closing dates are in my ClaimData fact table, with Opening Date linked to the date dimension. I can’t link Closing date as we don’t always have a closing date until the account closes, so SSAS errors.
    Many Thanks

    Hi,
    Try compare key value of members. For example,
    [Date].[Year-Quarter-Month-Day].Currentmember.Properties("key") > [ClaimData].[Closed].[Closed].Currentmember.Properties.("key")
    And think about UnknownMember in Date dimension. In this case you can link Closing date
    Best regards,
    Aleksandr Severin

  • Server: The operation has been cancelled

    I went thru the related threads before creating this, it seemed to be a different problem. 
    I am getting below error on a particular cube, while running queries.. Below is one of them.. The same query on other cubes in the same server complete successfully... One peculiar thing though is im getting the result back as well as error...
    Result in Result tab in SSMS, and Error in Messages tab... Can anyone please help...  
    select distinct measure_name from $SYSTEM.MDSCHEMA_MEASURES
    Error...
    Executing the query ...
    Obtained object of type: Microsoft.AnalysisServices.AdomdClient.AdomdDataReader
    Server: The operation has been cancelled.
    Execution complete
    Suman

    Hi Suman,
    For the error "Server: The operation has been cancelled", please refer to the links below to check if it works or not.
    http://tablesinadb.blogspot.kr/2012/03/operation-has-been-cancelled-when.html
    http://multidimensionalmayhem.wordpress.com/2011/10/08/an-informal-compendium-of-ssas-errors-part-4-ssas-object-design/
    Besides, are there any detail error on the log? You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    If the issue persists, please provide us more information, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Table not exist

    Hello All, 
    Here is the weird issue I have.
    Last night, for some reason, the server was forced to restart. When it came back, I opened Tabular project BIM file with my windows account(it is in local Admin Group), it complained "you cannot open the bim file because you are not the administrator
    in localhost". 
    Then I was trying to use another account, which is local admin in windows and the admin in SSAS Tabular instance. 
    When I opened the SSMS to connect SSAS Tabular instance with the admin account, it was good. But when I right click on the instance level, it pops an error the table "XXX" not exists, which stops me doing anything further. 
    Later on, even I tried the admin account to open Tabular project, it also complains the same "you cannot open the bim file you are not the admin for localhost"
    Anyone knows how to resolve this?
    Thanks in advance.
    Derek

    Hi Derek,
    According to your description, the Tabular Model Services was forced to restart because of some reasons, and then you counter the error when right click on Tabular instance.
    The table with name of 'XXX' doesn't exist.
    An error occurred when loading the model(Micorsoft.AnalysisServices)
    The error might be caused by that the data file is corrupted. You can redeploy the project to AS server with another name and check the issue is persists. However, we cannot give you the exact reason that cause this issue. You can troubleshoot
    this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for