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

business Rules - User Defined Script an security

$
0
0

Hello,

I need to send an e-mail alert when a change has been detected.

I've created a business rules that call a user defined script when a change has been detected.

I try to call the msdb.dbo.sp_send-dbmail but it doesn't work : "The EXECUTE permission was denied on the object 'sp_send-dbmail', database 'msdb',schema 'dbo'

The business rule executes my stored proc with user 'mds_br_user' wich is a SQL user without login (Impossible to map to msdb).

Any idea or workaround ?

Thanks


Permission Error When Creating A New Entity IN MDS

$
0
0

Good day 

I'm trying to upload a list onto master data services by creating a new entity in ms excel however the error I get is: 

User does not have permission or object ID is incorrect, but when I look at the permissions I have for all the models, it seems I have all the permission in the world to make all the necessary changes, so this is totally confusing.

I hope someone will be able to help.



Thanks in advance.

excel add-in for multipe mds versions

$
0
0

We are transitioning from MDS2012 to MDS2016. Some of the users need to connect to both instances. The 2016 add-in does not support the 2012 databases and the other way around. I don't see how to install both add-ins in excel on a client computer. Does anyone know how to allow a user to access data from MDS2012 and MDS2016 using the excel add-in from the same PC?

Master Data Services 2016 Excel Add-in - Crashes Excel 2016 on Startup

$
0
0

Has anyone found an issue with the Master Data Services 2016 Excel-add in ( x64 ) causing Excel 2016 x64 to crash continually at start-up ?

I'm running Windows 10 Enterprise Version 10.0.10586 Build 10586

Excel is 2016 x64 running under Office 365 ProPlus

MDS Excel Add-in version 13.0.2121.20 (x64)

I also have the required .netframework versions and Visual Studio 2010 runtime installed.   Tried it on a Windows 7 machine with the same version of Excel and MDS plug-in without any issues; tried it on another Windows 10 Laptop and the issue occurred again.

Event Log errors:

Microsoft Excel: Rejected Safe Mode action : Excel is running into problems with the 'microsoft.masterdataservices.exceladdin' add-in. If this keeps happening, disable this add-in and check for available updates. Do you want to disable it now?

Faulting application name: EXCEL.EXE, version: 16.0.6769.2017, time stamp: 0x57014339
Faulting module name: KERNELBASE.dll, version: 10.0.10586.494, time stamp: 0x5775e4c5
Exception code: 0xe0434352
Fault offset: 0x0000000000071f28
Faulting process ID: 0x1eb0
Faulting application start time: 0x01d22467a6027154
Faulting application path: C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE
Faulting module path: C:\WINDOWS\system32\KERNELBASE.dll
Report ID: fef04df0-905a-11e6-88d5-5ce0c5ac6c2d
Faulting package full name:
Faulting package-relative application ID:

Ran the VSTO manually and get the following:

System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from file:///C:/Program%20Files/Microsoft%20SQL%20Server/130/Master%20Data%20Services/Excel%20Add-In/Microsoft.MasterDataServices.XLAddIn.vsto: the manifest may not be valid or the file could not be opened. ---> System.Deployment.Application.InvalidDeploymentException: Manifest XML signature is not valid. ---> System.Security.Cryptography.CryptographicException: No signature was present in the subject.
   at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
   --- End of inner exception stack trace ---
   at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
   at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

Any help would be appreciated.

Thanks :)

Master Data Services Excel Plugin add column does not work

$
0
0

Hello I’ am using Master Data Services(MDS) from Microsoft SQL Server 2016 and use the Excel Plugin to upload and download content on the Mater Data Server. Everything works except when i add an new column to an existing entity.

When I add the new column in Excel the column gets a green colour and when I press publish. Nothing happened. Only when I add new rows in Excel and press Publish then the content will be uploaded to the MDS Server.

My question is: Is it possible to add new columns in an existing data set? And how can you do that?

Many thanks!!

Erik

Statistics is not updating on secondary AG replica even tried with Sample percent(without full scan)

$
0
0
statistics is not updating on secondary replica in AG even tried with sample percentage in sql server 2012 sp3 cu4

MDS sobre SQL 2016 en Failover Cluster

$
0
0

Hola, acudo a vosotros para haceros una pregunta que me presentan...

Sobre una instancia de SQL 2016 ya instalada y funcionando con sus bases de datos, en Failover Cluster, me piden instalar Master Data Services (MDS). 

Se me presento este mismo problema hace tiempo sobre SQL 2012, en mismo escenario sobre Failover Cluster, y recuerdo que no estaba soportado, hasta que sacaron un "Fix", el cual forzaba después del fix si el clúster de conmutación por error ya está instalado y la función MDS no se encuentra instalada en los nodos de clúster, la instalación de SQL Server 2012 debe desinstalarse y luego reinstalarse según un procedimiento dado... para mas información os dejo el enlace:

https://support.microsoft.com/en-us/help/2683467/fix-master-data-services-is-not-supported-on-a-clustered-installation

Mi duda, es que si el procedimiento sigue de la misma forma en SQL 2016. No he encontrado nada que sugiera otra forma de instalarlo en versiones mas recientes.

La única recomendación que encuentro en el MSDN es instalar MDS sobre grupos de disponibilidad AlwaysOn como alta disponibilidad y no menciona nada sobre Failover Cluster

de antemano gracias


 Norman M. Pardell 

||Microsoft Certified IT Professional|| Database Administrator. Database Developer. SQL Server 2008

MDS Addin disabled and will not repair

$
0
0

I have a problem with the MDS Excel Addin being permanently disabled on Win 10.  After repair then reinstall I followed these steps to fix:

https://support.netdocuments.com/hc/en-us/articles/205219670-Changing-the-Load-Behavior-of-the-ndOffice-Add-ins?mobile_site=true

Here’s the initial state.  If I check the COM addin to enable, and go back in it is immediately disabled.

<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"><v:stroke joinstyle="miter"><v:formulas></v:formulas></v:stroke></v:shapetype>Unfortunately it was already set to auto load

So I went to their plan B.  This key was not in the registry at all so I manually entered it:

But no luck, it is still showing disabled.   Any ideas what to try next?

  - Pete


Web Page Crashes When Editing Model Permissions

$
0
0

SQL Server 2017 MDS ... seems to be OK for some users but not others.  This crash occurs for all users that are in the Local Administrators group of the Server where SQLServer is installed.  I have not seen this crash for users that are not in the Local Administrators Group.  What could be wrong?

User and Group Permissions -> Edit Selected User -> Click Models Tab


[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]
   System.String.Substring(Int32 startIndex, Int32 length) +14767352
   System.Linq.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) +23
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +78
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +152
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +91
   Microsoft.MasterDataServices.Core.BusinessLogic.Security.ToModelPrivileges(DataTable table, ResultType resultType) +1638
   Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetModelPrivilege(RequestContext context, Int32 principalId, SecurityResolutionType resolutionType, PrincipalType principalType, ResultType resultType, Collection`1 results) +213
   Microsoft.MasterDataServices.Core.BusinessLogic.Security.PopulateModelPrivilege(RequestContext context, Collection`1 users, SecurityResolutionType resolutionType, ResultType resultType) +325
   Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetUserSecurity(RequestContext context, SecurityPrincipalsCriteria criteria, OperationResult results, Boolean pruneDenies) +751
   Microsoft.MasterDataServices.Core.BusinessLogic.Security.GetSecurityPrincipal(RequestContext context, SecurityPrincipalsCriteria criteria, SecurityPrincipals principal) +482
   Microsoft.MasterDataServices.Services.Service.SecurityPrincipalsGet(SecurityPrincipalsGetRequest request) +149
   Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest(MdmServiceOperation`2 operation, TRequestType request, String caller) +159
   Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +421
   Microsoft.MasterDataServices.WebUI.ServiceAdapter.CacheModelPrivileges(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +109
   Microsoft.MasterDataServices.WebUI.ServiceAdapter.GetModelPrivilegesFromCache(Guid principalId, PrincipalType principalType, SecurityResolutionType resolutionType) +149
   Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.GetModelPermissions(SecurityResolutionType resolutionType) +291
   Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadTree(Node parentNode) +344
   Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData() +442
   Microsoft.MasterDataServices.WebUI.Common.ModelTreeview.LoadData(String principalId, PrincipalType principalType, DisplayModeType displayMode, Int32 modelId) +158
   Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadTree() +280
   Microsoft.MasterDataServices.WebUI.Security.Common.Models.LoadData() +16
   Microsoft.MasterDataServices.WebUI.Security.Common.SecurityEditPageBase.OnLoad(EventArgs e) +222
   Microsoft.MasterDataServices.WebUI.Security.Common.Models.OnLoad(EventArgs e) +27
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785
 

Can't Edit Permissions for Hierarchy Members

$
0
0

User and Group Permissions -> Edit Selected User -> Hierarchy Members Tab -> Hierarchy Drop Down

I have two derived hierarchies configured and neither appears in the Hierarchy Drop Down

I can't post images yet as I'm waiting for someone to verify my account.

"Body text cannot contain images or links until we are able to verify your account"

MDS 2017 Excel Add-on - Object reference not set to an instance of an object when connecting

$
0
0

Hi,

I have followed all documentation and online guides to set up MDS in SQL 2017 RTM. It all works and connects fine, including browse to the hompage from my machine fine.

EXCEPT using the MDS Excel add-in for SQL 2017 (onExcel 2016 64 bit). When adding a connection and clicking the 'Test' or 'Connect' buttons, nothing happens. Then I switched on the VSTO_SUPPRESSDISPLAYALERTS environment variables, and sure enough it's generating an exception:

Object reference not set to an instance of an object.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.MasterDataServices.ExcelAddInCore.AddInAdapter.Connect(ServiceAddress address)
   at Microsoft.MasterDataServices.ExcelAddInCore.Connections.ConnectButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any idea what could be going on?

Many thanks,

Signal_runner

MDS 2016 Excel Plug In Not Working

$
0
0

Hi All

Good Day!!

I am working on MDS 2016 as a developer and require excel plug-in for performing bulk data inserts, updates and deletes.

Though, it is a fairly simple installation process outlined by MS and same steps works on my colleagues' machine, but on my machine it does not. For clarity of problem, I will outline below exact steps followed by me for installation:

Excel Version:  MS Excel 2016 32 Bit

SQL Server Version : 2016

Runtime Installed  : MS Visual Studio Tools for Office Runtime 2010 

Excel Add In Installed : MasterDataServicesExcelAddinSS16

Step 1 - Install the VS tools mentioned above on local machine (where excel is installed)

Step 2 - Install Excel Plug In mentioned above

Post this, after opening excel I am able to see the Master Data Tab available will multiple options.

But while I am trying to establish a connection to SQL server, nothing happens. I created a Dev connection as per below image:

But when I click on test or connect, nothing happens....no error message, no loading screen. I tried many possible solutions available over the internet but did not happen. Can you please help me with the solution to this?

Let me know if further info is required for debugging the issue.

Many Thanks

Prakhar

MDS Explore web page not correct

$
0
0
I installed MDS and created the web app.  Most pages seem to work correctly but Not explore.  I can select and entity to work with but there is no place on the page to do any editing.  I have installed Silverlight 5 and am using IE11 to connect to the web site.  Any ideas on what I am missing here?

MDS 2012 custom workflow dll rule doesn't work from Excel add-in for bulk updates.

$
0
0

Hi,

I have a custom workflow dll that is configured to be called through a business rule for change tracking .

The rule executes fine when the changes to the attributes are made through MDS Explorer web UI one at a time ,  However, when the changes are made through the mds excel add-in, it sends the message for the top most record only.

For examples if there are 3 records in an entity , student.

Code      Student Name

1             Raj

2             Jack

3             Ashley

And all three names are changed by changing last letter , it  sends code '1' 3 times to the integration workflow service.

I even tried clicking apply rules before publish , but it still did the same.

Any thoughts/ideas would be greatly appreciated?

Level Number update when moving members in the hierarchy

$
0
0

I've been unable to find the answer to this question, so trying here.

There is a column called "ChildLevelNumber" in the view of each parent-child hierarchy (view usually called mdm.<EntityName>PC)

When moving a member between the nodes in the hierarchy that level is set to -1 and then can be corrected by some process.

I am guessing that it is done by this SP: mdm.udpHierarchyMemberLevelSave but how is it called?

So far I've tried validating model, running business rules etc - no luck.

MDS 2016 - tbltransaction table is missing

$
0
0

Hi.

We have recently upgraded from MDS 2012 to MDS 2016, and notice that tbltransaction table is missing. However I do find that there is table tbl_**_**_TR for each entity that should hold the transaction data for that entity, but I do not see this table for any existing entity in the model. Also I tried creating new entity with Transaction Log Type as Attribute/Member but did not create this table at SQL server.

I have reports built on tbltransaction to fetch the changes at entity level in a specified period , which fails in MDS 2016. Can anyone suggest any alternative for tbltransaction ? or any other way to set these reports ?

Thanks

The server was unable to process the request due to an internal error.

$
0
0

hi there,

I just noted index checking message as below sometimes cannot be correctly shown to user in MDS Add-in for Excel:

"The duplicated attribute value cannot be saved because there is an unique index "

Instead, it only ask client to turn on IncludeExceptionDetailInFaults, (either ServiceBehaviorAttribute or serviceDebug) or turn on tracing as per Microsoft .NET framework SDK. The error beginning with the below message:

"The server was unable to process the request due to an internal error."

Can this be due to permission access that stop the message showing error detail, or if I should try turn on the things as message suggested?

Conversion failed when converting the nvarchar value 'TEST Value' to data type int

$
0
0

Hi,

We're using SQL server 2016 SP1-CU7

I have Entity A and Entity B

Entity B contain a domain base attribute from Entity A and a free form text field.

I created a Derived hierarchy base on Entity A field 1 as parent and Entity B as child (which contains the domain base field from Entity A).

I have one user who has read permission on Entity A and Full Access for Entity B.
In the hierarchy members permission, using the derived hierarchy created earlier, I gave full access to 2 specific values in Entity A.

Now using the Excel add-in, the user is able to read, delete or insert new data in Entity B and can only select the two values in the domain base attribute field from Entity A. So everything is working well so far.

But when the user tries to insert and publish a large amount of entries (> 300 at a times). the user get an error.

When I look at the log file, the error is

06/16/2018 11:28:35,7f831ad0-f0f5-4059-a60c-31755040c9d6,EntityMembersCreate,Error,"SqlException message: A database error has occurred. Contact your system administrator.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Microsoft.MasterDataServices.Core.DataAccess.MdsDbUtilities.ExecuteMethodWithRecoverableErrorRetry(MethodDelegate method)
   at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.<>c__DisplayClass8.<ExecuteDataSet>b__6(SqlConnection connection)
   at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.ExecuteDatabaseCommand(Action`1 databaseActionMethod)
   at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.ExecuteDataSet(String query, Boolean returnSqlTypes, CommandType commandType)
   at Microsoft.MasterDataServices.Core.DataAccess.MasterDataAccess.EntityMembersSave(IDbHelper dbContext, Int32 userId, Identifier modelId, Identifier entityId, Identifier versionId, Identifier changesetId, MemberType memberType, EntityMembersSaveDataSet memberData, EntityMembersSaveMode saveMode, Boolean returnCreatedMembers, MemberTransactionBehavior transactionBehavior)
   at Microsoft.MasterDataServices.Core.BusinessLogic.Member.SaveMembers(EntityMembers members, Dictionary`2 membersByMemberTypeDictionary, EntityMembersSaveMode saveMode, Boolean membersOnly, MemberTransactionBehavior transactionBehavior, Boolean returnCreatedMembers, RequestContext context, OperationResult results)
SQL Error Debug Info: Number: 245, Message: Conversion failed when converting the nvarchar value 'TEST Value' to data type int., Server: MyServerName\MyServerInstance, Proc: udpEntityMembersSave, Line: 1631

When I remove the hierarchy members permission and give all access, the user is able to publish more than 1500 entries at a time.

Anyone has any idea why the user cannot publish more than a couple entries at a time? Is it a permission issue? Or a server setting perhaps?

Thanks!

How to retrieve the validation errors which failed business rule validations.

$
0
0

Hello Experts,

I am using SSIS to load master data files in MDS. I have a entity which has the cross field validations as a business rule in MDS. When I do call validate entity procedure, I can see that the validation failed for the records which do not meet rule specs.

But I do not see the validation errors been logged into MemberErrorDetails table. I tried to find the related table in MDS from which I can retrieve validation error but unable to find any.

I need to fetch these errors into the file and report it back to the users through the automated SSIS package.

Appreciate any help here.

Cheers,

Prashant Bhatt

Master Data Services - add column to notifications

$
0
0

I'm wondering if it's possible to change the format of the notification emails? I would like to add in a new column.

I've tried to edit SettingValue in mdm.tblSystemSetting for ValidationIssueHTML. However, the new column I added doesn't show in the emails.

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>