MDS Error Handling: Fixing Common Master Data Services Errors
In this article
MDS (Master Data Services) errors usually show up in three places: staging batch failures, business rule validation errors, and web service or Excel add-in timeouts. Most are fixed by reading the error tables, correcting the source rows, and re-running the batch or validation.
Time 20 min · Steps 6 · Level Medium
How to Handle an MDS Error From Start to Finish
- Find where the error surfaced. Note whether it appeared in the staging process, during business rule validation, in the MDS web application, or in the Excel add-in. The location tells you which error log to read.
- Read the staging error tables. For each staging table there is a matching errors table (for example, stg.name_Errors for entity staging). Query it and look at the ErrorCode and ErrorMessage columns to see which rows failed and why.
- Check the batch status. In Integration Management, look at the batch record: Running means it is still processing, Completed means it finished, and errored batches keep rows in the error tables rather than loading them into the master data.
- Fix the source rows. Correct the data in the source file or system: trim spaces, fix member codes, supply required attributes, and make sure domain-based values actually exist in the target entity.
- Re-run the batch or validation. Requeue the staging batch, or in Explorer select the version and re-run business rules. Only rows that pass validation move to a validated state.
- Confirm the fix. Re-query the error tables (they should be empty for the batch), check validation status in the version, and spot-check a few members in Explorer or the Excel add-in.
MDS Error Symptoms, Causes and Fixes at a Glance
The fastest way to resolve an MDS error is to match the message you are seeing to its usual cause. The table below covers the ones that account for most support questions.
| Symptom | Likely cause | How to confirm | Fix |
|---|---|---|---|
| Staging batch finishes but no members load | Rows failed validation and were written to the staging error table | Query the _Errors table for the batch ID | Fix the listed rows in the source and re-run the batch |
| "Member code already exists" or duplicate key error | The same member code is staged twice, or it already exists in the entity | Search for the code in Explorer | Remove the duplicate row or change it to an update rather than an insert |
| Domain-based attribute fails | The referenced value does not exist in the target entity | Open the target entity and search for the value | Add the missing value first, or correct the reference in the source |
| Business rule fails on many members | Rule condition does not match the data shape (for example, a required value that is blank) | Open the member's validation status in Explorer | Fix the data or adjust the rule condition, then re-run validation |
| Excel add-in cannot connect or times out | Connection settings, credentials, or a slow MDS web service | Test the MDS web URL in a browser | Correct the server URL in the add-in settings and re-sign in |
| Version cannot be committed | Validation is not complete for all members | Check the version's validation status in Version Management | Re-run business rules, fix failures, then validate the version again |
Why Staging Batches Fail and How to Fix the Most Common One
Most staging failures come down to data quality in the source file, not a broken MDS installation. The single most common cause is a required attribute that is blank or a member code that does not match what MDS expects.
Fixing a failed staging batch step by step
- Open Integration Management and note the failed batch's ID and status.
- Run a query against the staging error table for that entity, filtering on the batch ID, and list the failed rows.
- Group the errors by error code: duplicates, missing required values, and invalid domain values are handled differently.
- Correct the source file or table: remove duplicate codes, fill required attributes, and add missing domain values to their entity.
- Clear or re-stage the corrected rows, then start a new staging batch.
- When the batch reports Completed, confirm the error table has no rows for the new batch ID.
Menu names and table names can differ slightly between versions of SQL Server Master Data Services, so match what you see on your own installation rather than exact labels.
Quick Checks Before You Dig Deeper Into an MDS Error
- Is the batch actually finished, or still Running? Wait for the status to settle before troubleshooting.
- Does the error table for the batch have rows? An empty error table points to a connection or permissions problem instead of a data problem.
- Do the domain values referenced by your rows exist in the target entity today? Someone may have deactivated or deleted them.
- Can you sign in to the MDS web application in a browser? If not, the add-in error is a connection issue, not a data issue.
- Has the version been locked or committed? Staging into a locked version fails regardless of data quality.
Preventing Recurring MDS Errors
Most repeat errors disappear if you clean data before it reaches staging. Validate member codes and required fields in the source system first, keep domain-based value lists in sync between systems, and run a small test batch before a full load. Re-run business rules after every bulk change so members do not sit in an unvalidated state, and give the service account running the staging process only the permissions it needs so permission errors surface clearly rather than silently. Where a full load is large, split it into smaller batches so a single bad row does not block thousands of good ones.
MDS Error Handling Questions That Come Up Often
Do failed rows block the rest of the batch?
Rows that fail are written to the error table and skipped; rows that pass still load. A batch is not all-or-nothing, so you can fix only the failed rows and re-stage those.
Can you re-run business rules on just some members?
Yes. In Explorer you can re-run validation on selected members rather than the whole version, which is much faster after fixing a small set of rows.
Why does the same error return after fixing the data?
Usually the corrected file was never re-staged, or the fix was made in MDS but the source system keeps sending the old value on the next load. Fix the source, not just the master record.
Where do Excel add-in errors come from?
Most are connection or sign-in issues rather than data errors. Test the MDS web URL in a browser first; if that works, check the connection settings inside the add-in.
Official source: Microsoft Learn