You are currently offline, waiting for your internet to reconnect

MDS entity-based staging may fail when a duplicate Batch Tag value is used in SQL Server 2012

Symptoms
Consider the following scenario:
  • You use the Microsoft SQL Server 2012 Master Data Services (MDS) entity-based staging process to import data into MDS.
  • You populate various MDS staging tables (stg.name) with the staging data by using the BatchTag column to identify the batch.
  • You use the same BatchTag value to populate a separate staging table that belongs to a different entity in a different MDS model.
  • You run the necessary stored procedures to start the batch processing. Or, you start the staging batch from the Integration Management functional area on the MDS website.

    When you start the staging process, you use one of three stored procedures:
    • stg.udp_name_Leaf
    • stg.udp_name_Consolidated
    • stg.udp_name_Relationship

    Note The name placeholder is the name of the staging table that was specified when the entity was created.

    The following examples show how to start the staging process by using the staging stored procedure:
    exec mds.stg.udp_entityname1 'versionAdescription',0,'batchtag'

    exec mds.stg.udp_entityname2 'versionBdescription',0,'batchtag'
In this scenario, you receive the following error message when you start the staging process:
MDSERR310029
The status of the specified batch is not valid.

Additionally, when you check the batch status, you notice that the batch that has the BatchTag value remains indefinitely stuck in status Running.

Note You can check the batch status from the MDS website by clicking Integration Management and then selecting the model to view the status or by querying the [mdm].[tblStgBatch] table.
Cause
This problem occurs because the MDS entity-based staging process checks the BatchTag status regardless of the MDS model.
Resolution
If your batch is stuck in Running status, stop the batch process, and then try to process the batch again. To stop the batch process, run the following SQL statement:
Exec [mdm].[udpStagingBatchQueueActivate]
To resolve this problem, update the BatchTag value in the staging table for the records to a new name. Additionally, make sure that the importstatus_ID field is set to 0 for the records.
More information
For more information about starting the staging process, go to the following Microsoft Developer Network (MSDN) website:Watch a video that shows how to use the new MDS entity-based staging in SQL Server 2012:For more information about how to populate the Master Data Services database, visit the following Microsoft TechNet website:For more information about the statuses when you import data during the staging process, visit the following Microsoft TechNet website:
Properties

Article ID: 2712547 - Last Review: 11/19/2012 18:10:00 - Revision: 4.0

Microsoft SQL Server 2012 Business Intelligence, Microsoft SQL Server 2012 Developer, Microsoft SQL Server 2012 Enterprise

  • kbtshoot kbexpertiseinter kbprb kbsurveynew KB2712547
Feedback
.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> >/html>ick="setLanguage(language);" class="ng-binding" id="language-es-es">España - Español
Paraguay - Español
Venezuela - Español
://c1.microsoft.com/c.gif?DI=4050&did=1&t="> var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" d')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> >