Quantcast
Channel: SQL Server Master Data Services forum
Viewing all 1311 articles
Browse latest View live

Master Data Services is driving me crazy! Please help - multiple questions

$
0
0

Hi

I am having some MAJOR issues with MDS and need some assistance - there are a number of problems I am currently experiencing and cannot find any documentation to assist.

The first one is;

From the MDS Management console, I have a version which is status commited and ready under version management. I want to create a new version which is open

1st question: how can you do this programatically without the front end ? Which stored procedure performs this task?

1st issue: using the front end - pressing "copy" takes around 30seconds then says "An unknown error has occurred" - this error is not helpful atall and means literally nothing. I cannot create a new open version

2nd Issue:

I Have an SSIS package which populates a table STG.CCM_Leaf - the package has 4 steps - assuming I have the open version which has worked in the past the package is configured as follows:

Step 1: Get batch and set to variables:

DECLARE @ModelName nVarchar(100) = 'Actuarial Classes'
DECLARE @Model_id int
DECLARE @User_ID int
DECLARE @Version_ID int
DECLARE @Version_Name nvarchar(100)
declare @batch_tag nvarchar(100)
SET @User_ID = (SELECT ID
                 FROM mdm.tblUser u
                 WHERE u.UserName = SYSTEM_USER)
SET @Model_ID = (SELECT Top 1 Model_ID
                 FROM mdm.viw_SYSTEM_SCHEMA_VERSION
                 WHERE Model_Name = @ModelName)
--get latest model version id
SET @Version_ID = (SELECT MAX(ID)
                 FROM mdm.viw_SYSTEM_SCHEMA_VERSION
                 WHERE Model_ID = @Model_ID)
set @Version_Name = (select Name
                              FROM mdm.viw_SYSTEM_SCHEMA_VERSION
                              WHERE id=@Version_id)
set @batch_tag = 'CCM' + '-' + Convert(Varchar,GetDate())

Select
@ModelName
,@Model_id
,@User_ID
,@Version_ID
,@Version_Name
,@batch_tag


The output of this sql step stores the necessary values

Step 2: Pick up the rows and add in the above variables from my source and store them in STG.CCM_Leaf

Step 3: Process the batch in MDS

EXEC [stg].[udp_CCM_Leaf]
      @VersionName = ?,
@LogFlag = 1,
@BatchTag = ?

Step 4: Validate the model:

EXECUTE mdm.udpValidateModel
@User_ID = ?,
@Model_ID = ?,
@Version_ID = ?,
@Status_ID = 1

The entries appear AS expected when i load the excel MDS add-in and this works like a charm.

The idea is, that the user will verify with an additional dropdown column whether the entry is accepted or rejected in excel and press Publish to push them back

As a test, I set the top entry to "Accepted" and pressed publish it says it is successful.

When i run Select * from stg_CCM_Leaf - the row which was "Accepted" still shows a NULL value in that column despite the excel open version showing accepted.

Q2:: Where is the "Accepted" value actually stored and why can't i see it in the LEAF table? if excel can see it it must be stored somewhere else - why can i not see it in this table>??

Question3:

Again - in MDS i can highlight all rows and delete them using the Delete button. All rows dissapear from excel and the underlying _LEAF table - if i then try and re-insert the rows I get an error on all rows and none of them will insert.

Final question: How do i "clean out" an entity for an open version? What is the stored procedure to do so - Why when  Ihave deleted an entry can i not re-load a new one with the same CODE value?

Sorry for the long post but all these questions are driving me crazy, I cannot find anty MDS documentation to help me on any of these subjects

Thanks


J


Master Data Services : Business Rules Copy / Import / Export (Cross Model)

MDS Migration - Denali > RC0

$
0
0

Thought this would be easy!!!!

In RC0 MDS deployment offers a basic wizard and now the MDSModelDeploy tool.

It informs - Model only > use wizard.  Model and Data > MDSDeployment Tool

Also we are informed by the Help preview:

Packages can be deployed to the edition of SQL Server they were created in only. This means that packages created in SQL Server 2008 R2 cannot be deployed to Microsoft SQL Server 2012 Release Candidate 0 (RC 0).

Sure enough, models from Denali fail in the Deployment wizard...

Does this mean there is no way to simply migrate an existing model and data package from Denali, or 2008r2 directly to 2012 (or worse 2012 when it released. To re-do complex models, even with the add-in will be unnecessarily time consuming. Hope I am wrong about the migration process!!!

Please advise.




Regards AB

Access Denied Issue in MDS Home Page

$
0
0
I have installed MDS while installing SQL Server 2014 on my local machine ( windows 10). However when I try accessing the home page of Master Data Manager, it is giving access denied error. I am unable to access the Master Data Manager itself. Can someone help me in getting this issue resolved?

MDS Database and Web Application are using same user account which is Administrator on the system.

-Regards Avi | Please kindly don’t forget to mark the post(s) that answered your question

The DeployNew command failed (MDSModelDeloy)

$
0
0

I am trying to deploy the sample .pkg's using the defaults and it is failing.  Could someone please tell me why ?

Tried changing  –service “MDS1” to  –service “MDS_1” and I got the same error

******These commands:************

"C:\Program Files\Microsoft SQL Server\110\Master Data Services\Configuration\MDSModelDeploy" listservices

rem this errs out
"C:\Program Files\Microsoft SQL Server\110\Master Data Services\Configuration\MDSModelDeploy" deploynew –package “C:\Program Files\Microsoft SQL Server\110\Master Data Services\Samples\customer_en.pkg” –model “Customer” –service“MDS1”

******Yield the following error:*******************


c:\MDS_Presentation>"C:\Program Files\Microsoft SQL Server\110\Master Data Services\Configuration\MDSModelDeploy" listservices
MDS services (Service, Website, Virtual Path):
MDS1, Default Web Site, MDS_1

MDSModelDeploy operation completed successfully. Elapsed time: 00:00:09.7083660

c:\MDS_Presentation>rem this errs out

c:\MDS_Presentation>"C:\Program Files\Microsoft SQL Server\110\Master Data Services\Configuration\MDSModelDeploy" deploynew –package “C:\Program Files\Microsoft SQL Server\110\Master Data Services\Samples\customer_en.pkg” –model“Customer” –service “MDS1”

MDSModelDeploy operation failed. Elapsed time: 00:00:00.3883468
Error:
The DeployNew command failed because either there is a missing - option or the name is not in quotes. All names that contain spaces must be enclosed in quotation marks.

 


Mark

Can i make changes to .aspx files ?

$
0
0

when we need to add or edit a member on a entity, for columns with foreign key, we get a search box to look up the value. Here the default search is based on name. We want the code to be the default search column. I see that when i changed in the backend .aspx file and restarted IIS, the change happened and now the default search is code. I just want to know if there will be any impacts going forward ? may be during upgrades or migrations ?

Thanks in advance !

Backup/Restore of MDS database

$
0
0

Hi!

We use Windows Server 2008 R2 Enterprise SP1 with SQL Server 2012 SP2. We are trying to restore a production backup of the MDS database into our test environment of the exact same version and configuration. The database restore itself is working fine but after the restore we cannot any longer use the MDS Web application. Using the MDS Configuration Manager we where adviced to use "Repair the database" command. After this repair we instead getting thehttp://localhost/MDS/Unauthorized.aspx and Access Denied.  There is no $-signs appended to any users in the mdm.tblUser table. We have followed virtually any MDS related thread on the Internet regarding this issue with no luck.

If we revert the database to the old MDS database the MDS Webb is working again! This leads us to believe that this must be database related but how? Does MDS storing IP-numbers or other environmental information in the database? How can we resolve this issue?

Best Regards

Jan   


JAIS

Failed to validate Business Rule created by MDS API in MDS 2012

$
0
0

I used MDSModelImport and created business rules for composite primary keys by MDS API.

When I first insert data from excel, I faced error "A database error has occurred".

After I tried to edit and re-save with no changes in mds web site, It worked. but It didn't work from API.

Let me know. Please.

Error Log

error number is 208: Code 208 invalid object name 'cteDuplicates669d2125e1dfca7671b321a20c997505'

Code for creating and publishing for composite primary keys:

private static void CreateAndPublishPrimaryBR(string modelName, string entityName, string[] columnNames)
        {
            try
            {
                // Set Model and Entity objects.
                Identifier modelId = new Identifier { Name = modelName };
                Identifier entityId = new Identifier { Name = entityName };

                // Create the request object.
                BusinessRulesCreateRequest ruleCreateRequest = new BusinessRulesCreateRequest();
                ruleCreateRequest.ReturnCreatedIdentifiers = true;
                ruleCreateRequest.BusinessRuleSet = new BusinessRules();

                // Create a new business rule.
                BusinessRule newRule = new BusinessRule();
                ruleCreateRequest.BusinessRuleSet.BusinessRulesMember = new List<BusinessRule> { };
                ruleCreateRequest.BusinessRuleSet.BusinessRulesMember.Add(newRule);

                newRule.Identifier = new MemberTypeContextIdentifier
                {
                    Name = "pk",
                    ModelId = modelId,
                    EntityId = entityId,
                    MemberType = MemberType.Leaf
                };

                newRule.Priority = 20;

                BRAction ruleAction = new BRAction();
                newRule.BRActions = new List<BRAction>();
                newRule.BRActions.Add(ruleAction);
                ruleAction.Sequence = 1;

                // Set the action prefix argument for Name attribute.
                BRAttributeArgument actionPrefix = new BRAttributeArgument();
                ruleAction.PrefixArgument = actionPrefix;
                actionPrefix.PropertyName = BRPropertyName.Anchor;
                actionPrefix.AttributeId = new Identifier { Name = columnNames[0] };

                // Set the action operator.
                ruleAction.Operator = BRItemType.Unique;

                if (columnNames.Length > 1)
                {
                    // Set the action postfix argument for
                    ruleAction.PostfixArguments = new List<object>();
                    for( int i= 1; i < columnNames.Length; i++)
                    {
                        BRAttributeArgument postArgument = new BRAttributeArgument();
                        ruleAction.PostfixArguments.Add(postArgument);
                        postArgument.PropertyName = BRPropertyName.Anchor;
                        postArgument.AttributeId = new Identifier { Name = columnNames[i] };
                    }
                }

                // Create the business rule.
                BusinessRulesCreateResponse ruleCreateResponse = mds.BusinessRulesCreate(ruleCreateRequest);

                HandleOperationErrors(ruleCreateResponse.OperationResult);

                // Create the request object.
                BusinessRulesPublishRequest rulePublishRequest = new BusinessRulesPublishRequest();
                rulePublishRequest.BRPublishCriteria = new BRPublishCriteria();
                rulePublishRequest.BRPublishCriteria.EntityId = entityId;
                rulePublishRequest.BRPublishCriteria.ModelId = modelId;
                rulePublishRequest.BRPublishCriteria.MemberType = BREntityMemberType.Leaf;

                // Publish the business rule.
                MessageResponse rulePublishResponse = mds.BusinessRulesPublish(rulePublishRequest);

                HandleOperationErrors(rulePublishResponse.OperationResult);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error: {0}", ex);
            }
        }





There was an error when loading the system settings for the selected Master Data Services database

$
0
0

Hi All,

I have an issue with an MDS implementation where suddenly I am unable to browse the MDS website. I get a "Service Unavailable http 503" error.

I went into Master Data Services configuration manager and tried to selected my MDS Database in the database section but I received the following error:

"There was an error when loading the system settings for the selected Master Data Services database"

And none of the information is displayed. I have another MDS database in the same SQL instance and I can view settings for this successfully.

I have checked in SQL Management Studio and the MDS DB in question appears to be online and accessible. I can access tables, select from views etc so I'm hoping it's not a big issue.

Does anyone have any idea what causes this and how to resolve?

Many thanks in advance.

Phil

How to add a new user in MDS if another computer with the same name exists in the same domain?

$
0
0

Hi,

While adding a new user in User and Group Permissions,I found this issue.

If the User Name and any other computer name in the same domain is same while adding a user to MDS, it adds a $ sign to the name and takes that other computer name instead of the user.

Staging data added to batch but the batch has a status of 'NotRunning'

$
0
0

I have imported data into an MDS staging table. When I execute the appropriate stored procedure to populate the entity, a batch is created, which can be viewed via the Integration Management in the MDS client, but the status of the batch is 'NotRunning. It is not automatically set to 'Queued to run' and ultimately 'Completed'.

I've looked at various postings on this and people suggest that the service broker message delivery should be enabled on the database, which it is.

Also, the 'Staging batch interval (in seconds) in the installation is set to 60, which seems reasonable.

This does seem to be intermittent, which implies there is nothing wrong with the parameters provided to the update stored procedure i.e. versionname, logflag and batchtag.

Also, when the batch generated by the stored procedure is run manually via the integration management start batches button, it runs without a problem.

Any ideas would be appreciated.

Error when opening MDS in Internet Explorer (SQL 2012)

$
0
0

Hi

I have installed MDS as per the prerequisites, I have made sure all the roles and features are installed.

I have created a new web application with success as well as the database.  On initially creating the new web application, MDS launches IE,  the UI opens and works perfectly but when you close IE and reopen it and try to access the MDS UI again, I get a page cannot be displayed error message

I have tried a couple of things but nothing works. I have trawled the internet and cannot find any solution to this.

Please can someone assist and advise on a solution to this.

The version of IE is Version 11.

Many thanks

K

Many-to-Many Relationships in Derived Hierarchies (Master Data Services)

$
0
0

I was looking what's new in Master Data Services 2016. I come across that MDS will supportmany to many relationship in Derived Hierarchies after seeing CTP 2.3. Initially I thought it is a cool feature.

I work for a prestigious bank in Europe and they always have tough requirement regarding hierarchy management. I thought this feature can address the need of bank and also make the user interface intuitive. I am referring to https://msdn.microsoft.com/en-us/library/mt345527.aspx , but my assumption was wrong. I tried exploring this feature in Azure environment with CTP 2.3 and found that you are not allowed to move the members of hierarchy from Hierarchy Editor. To move the members , you have to use the Entity Explorer and that is the reason this is not a nice feature.

Actually to address the same kind of issue in SQL 2012. We came up with an idea of Bridge entity in SQL 2012 which you call a class (( the new type of level) in SQL 2016 CTP 2.3.

Let me give you an overview of what we require. We have a requirement that we need a multi level hierarchy for different systems/applications. The product is mapped to hierarchy. So we have a model called Product and it can be used as a whole or subset as needed by the systems/applications. We map the product to hierarchy at the lowest level.

Assume you have a hierarchy with3 levels than we have Level1, Level2 andLevel3 defined as a separate entities. Level1 is the top level, so it is defined as a separate entity.Level2 is the second level and we define a Domain based attribute (DBA) for it which points toLevel1. Level3 is the lowest level where we define2 domain based attributes, first one is referring to Level2 and the second one is referring toProduct. You can argue that we can use the recursive entities but it has its own limitations. You can add product to any level (it should be at lowest level only) using recursive or parent child entity. MDS doesn’t support in a simple way to create a business rule which should allow user to add the product at only lowest level, workflow can work here but I don’t want to use it. Also the way it works and UI look will confuse the business users.

The idea of implementing this kind of solution is that to keep the Hierarchy key static even though you have shuffled the product. This hierarchy key will be referred to Fact tables. Whenever product is shuffled, there is a no need to reload the historical data for fact. Just process the shared dimension of product and the changed measures will appear in the report. Please take a note that here we have a typical requirement. Whenever product is shuffled within the hierarchy , the measure associated with it should be shown to the new place it belongs to now. Business don't want to see it as Dim Type 2. I can say it is typical Type 1 and not simple. If you want to keep it simple than you have to waste lots of resources and time.

So I see that Class ( the new type of level) in SQL 2016 is trying to address the our solution built in SQL 2012 but it is not flexible.

The problems are:

1.Microsoft is not exposing the new type of level and it seems to be implemented implicit.

2. In our solution still you can move around the products at lowest level directly from Hierarchy editor but you can't do it in SQL 2016.

3. The solution we made in SQL 2012 will break in SQL 2016 and it is really weird.

I believe it is a good initiative by Microsoft but I believe this has not been thought well before designing and implementing. It may be due to lack of real scenarios.

I urge Microsoft to address above problems and redesign this feature as it should not create issue for the solution you built in previous version (SQL 2012). I am happy to help Microsoft in doing so. You can contact me at manishkr.cv@gmail.com if you need more information on the same. I can share my mobile number as well if you need it. Looking forward to hear positively from Microsoft.

MDS Install on Win10 - configuring Windows Authentication

$
0
0

I am trying to configue a SQL 2012 MDS install on a machine freshly upgraded to Win10.

When entering the MDS Configuration Manager, I get an error on the Internet Information Services section as follows: Before creating an MDS web application, you must correct the following errors: Internet Information Services (IIS) is not configured on this server. These required Web Server role services are not installed: Windows Authentication

IIS is installed and configured on the machine. However in the Turn On/Off Windows tool where this seemed to exist in prior versions, Windows Authentication is not an available option. The 4 available options under World Wide Web Services/Security are Basic Authentication. IP Security, Request Filtering and URL Authorization (all of which are installed)

I suspect it is plain simple, but what step am I missing for this configuration to work ? I know IIS is up and running fine as the Reporting Services portal opens with no problems.

My settings for Authentication in IIS manager are as follows Anonymous Authentication, ASP.Net Impersonation and Basic Authentication Enabled and Forms Authentication Disabled

Thanks

looking for a workflow to send an email when a value change.

$
0
0

Hi,

today MDS can send emails only when there is validation failures.

I need to send an email when a value change to some users, but I dont want to make the record has failed. its not a validation.

so I'm looking for a custom workflow doing this.

is there some libraries of workflow available?

thanks.


MDS COnfig Manager-SQL SERVER2014

$
0
0

 I installed Master Data Services along with the SQL Server 2014.

Did all IIS activations listed.

I could open MDS Config Manager but still getting the following error-

Below mentioned .SVC mappings were installed on IIS

working on Windows 7 Professional

Error

Before creating MDS web application you must correct following errors.

Internet Information Services (IIS) not configured on this server.

The required .SVC handler mappings are not installed  in IIS.

Thanks

Vibha

How to use FORFILES Command to Delete SQL Server Backups?

$
0
0
 Recently I constructed a new backup process that I want to institute globally across all my SQL Server 2005 instances, Is there a way I can automate a file deletion process from within SQL Server?

view queries logs from sap business one

$
0
0

hello all

i like to know where i can view the logs of queries of sbo - cause i like to mapping all queries in sap -

for example to view the last time some one used specific queries

thanks in advanced

asaf

SYSERR4104 when upgrading MDS 2012 database file from version 11.2.0.0 to version 11.2.0.5

$
0
0

Hello,
we had an intranet SQL Server 2012 SP2 MDS installation (version 11.0.5058.0 with database version 11.2.0.0) hosting 3 production MDS models, one of them having 3 versions.

Currently our IT department installed SQLserver2012-KB3045319 and after that installation MDS database needed schema update. The update via Master Data Services Configuration Manager failed with this error

Microsoft.MasterDataServices.Configuration.ConfigurationException: SYSERR4104|The multi-part identifier "V1.VersionFlag_ID" could not be bound. ---> System.Data.SqlClient.SqlException: SYSERR4104|The multi-part identifier "V1.VersionFlag_ID" could not be bound.
   at Microsoft.MasterDataServices.Configuration.DatabaseUtilities.UpgradeMasterDataServicesDatabase(SqlConnection connection, String databaseName, Collection`1& businessRuleExclusionWarnings)
   at Microsoft.MasterDataServices.Configuration.Commands.UpdateMasterDataServicesDatabase.InternalProcessRecord()
   at Microsoft.MasterDataServices.Configuration.Commands.ConfigurationCmdlet.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
   --- End of inner exception stack trace ---
   at Microsoft.MasterDataServices.Configuration.InstanceManager.Execute(Command command)
   at Microsoft.MasterDataServices.Configuration.InstanceManager.UpgradeMasterDataServicesDatabase(DatabaseServerInformation serverInformation, DatabaseInformation databaseInformation)
   at Microsoft.MasterDataServices.Configuration.UI.ServerManagement.ConfigurationAdministration.UpgradeDatabase(DatabaseInformation databaseInformation)
   at Microsoft.MasterDataServices.Configuration.UI.MdsDatabase.UpgradeDatabase()

As a workaround to solve this error I created a new MDS database on this SQL Server (version 11.0.5613.0; database version 11.2.0.5) and imported packages of the 3 production models via MDSModelDeploy.

The 2 models without versions could be imported without error.

No version specific package of the model with 3 versions (VERSION_2013, VERSION_2014 and VERSION_2015) and 3 versionflags (2013, 2014 and Current (=always pointing at the latest version)) could not be imported. I got always the error

MDSModelDeploy operation failed. ...
Error:
The "ModelName" model cannot be deployed.
An error occurred while processing message request type 'ExportViewCreateRequest'. See exception details for more information.
Package deploymenr failed with 1 errors.
The multi-part identifier "V1.VersionFlag_ID" could not be bound.

I searched the package XML file for "V1.VersionFlag_ID" but could not find the string.

Many THX for any help solving this problem.

By the way: what is the best-practice for COMPLETE export (all versions) and COMPLETE deployment (all versions) of models with versions? I could not find any instructions for doing this.

Rainer Kroos

How to permanently delete a MDS group and user data?

$
0
0

We played with temporary MDS groups and users for a while in MDS. When we deleted them, we found that even though we cannot see them on the User and Group Permissions page, we still see them in the underlaying tables such as mdm.tblUser, mdm.tblUserGroup, mdm.tblSecurityRole, mdm.tblSecurityAccessControl, etc. How do we get rid of them permanently from the database? Is it OK if we just do a delete from these tables using SQL?

Thanks In Advance

Viewing all 1311 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>