SSAS Tabular Model Error while opening model on the workspace database.

Oli Shingfield 1 Reputation point
2021-04-01T14:36:19.347+00:00

Hi guys,

I was working on a model and there is a duplicate value in one of the tables which is causing an error. The error occured when I removed a filter which caused a duplicate value in one of the relationships. I was just going in to apply the filter back on to the table when SSAS crashed. Now whenever I open the model I am getting the error below. I can see the model tables when I open it in SSMS. Is there any way to apply a filter to the Table inside SSMS so that it doesn't error when opening the model in SSAS?
83647-error.png

EDIT:
Does anyone know how to add a filter to the XML in SSMS?
I need to add 1 filter to the table and this will fix the issue. Please see the screenshot below:
![83753-fix.png][2] [2]: /api/attachments/83753-fix.png?platform=QnA

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,291 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,821 Reputation points
    2021-04-02T09:13:46.913+00:00

    Hi,

    Does anyone know how to add a filter to the XML in SSMS?

    Find the project folder, Open the .bim file with NotePad and you can add the M code in the tabular project definition file. Then process and deploy the project, hope this could solve you problem.

    Regards,
    Lukas


  2. Mohammad Karimi 0 Reputation points
    2024-04-19T16:59:41.3933333+00:00

    I fixed this problem by changing the Integrated Workspace Mode option from False to True.

    I said that my experience might be useful for you

    Screenshot 2024-04-19 202719

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.