<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573082#M17613</link>
    <description>&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process job is 'add_update_person'.&lt;/P&gt;&lt;P&gt;yes, it worked before, and this issue happens only in production and we know there are lot process that runs in parallel in production that updates mdm_process_conrol table. But we are getting this error frequently nowadays.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We added this begin and end transaction statements, but still we are getting this error. We know that this is not a deadlock error. But not sure why we are getting this error. We checked with DBA and he confirmed he is not seeing any thing weird in the SQL server logs.&lt;/P&gt;&lt;P&gt;I have also attached the screenshot of the process job and the node in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Node name :&amp;nbsp;Gather Post-Live Stats&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 13:23:46 GMT</pubDate>
    <dc:creator>nbkohkt</dc:creator>
    <dc:date>2019-07-12T13:23:46Z</dc:date>
    <item>
      <title>Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/572887#M17600</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are getting the below error in one of our job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019-07-10T09:33:58,059 ERROR [ROOT][53A9AEFD4BDBEE9E_JOB_7_0][539E8D0EF9C1EC5D_JOB_13_0][DATAFLOW_10_0]Node DATAFLOW_10 error: [1:EXPRESSION:&amp;nbsp; Start Process Control] Expression Plugin - [25000] [DataFlux][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION. (3903);[25000] [DataFlux][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION. (50000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we checked our job, it is coming from the below expression step, but it has the proper begin and end transaction statement,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me where the error comes from?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pre-processing expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hidden string default_dsn&lt;BR /&gt;hidden string PKG&lt;BR /&gt;hidden dbconnection conn&lt;BR /&gt;hidden dbcursor db_curs&lt;BR /&gt;hidden dbstatement stmt&lt;BR /&gt;integer stats_process_id&lt;BR /&gt;string(25) ENTITY_TYPE&lt;BR /&gt;string STAT_LOCATION&lt;BR /&gt;integer MDM_STAGING_ID&lt;BR /&gt;hidden integer entity_type_id&lt;BR /&gt;hidden integer srcSysId&lt;BR /&gt;hidden string(50) process_name&lt;BR /&gt;hidden string(50) process_type&lt;BR /&gt;hidden string(513) user&lt;BR /&gt;hidden integer i&lt;BR /&gt;default_dsn = getvar("MDM_DSN")&lt;BR /&gt;PKG = getvar("MDM_PACKAGE")&lt;BR /&gt;ENTITY_TYPE = 'PERSON'&lt;BR /&gt;STAT_LOCATION = 'POST_LIVE'&lt;BR /&gt;MDM_STAGING_ID=getvar('MDM_STAGING_ID')&lt;BR /&gt;entity_type_id = getvar("ENTITY_TYPE_ID")&lt;BR /&gt;srcSysId = getvar("srcSysId")&lt;BR /&gt;process_name = 'GATHER POST-LIVE STATS'&lt;BR /&gt;process_type = 'Index Rebuild'&lt;BR /&gt;user = getvar("DFINTL_DIS_USER",username())&lt;BR /&gt;i = 0&lt;/P&gt;&lt;P&gt;conn=dbconnect(default_dsn)&lt;BR /&gt;stmt=conn.prepare("{CALL " &amp;amp; PKG &amp;amp; "MDM_START_PROCESS_CONTROL(?, ?, ?, ?, ?, ?)}")&lt;BR /&gt;stmt.setparaminfo(0, "integer", 15)&lt;BR /&gt;stmt.setparameter(0, MDM_STAGING_ID)&lt;BR /&gt;stmt.setparaminfo(1, "integer", 15)&lt;BR /&gt;stmt.setparameter(1, entity_type_id)&lt;BR /&gt;stmt.setparaminfo(2, "integer", 15)&lt;BR /&gt;stmt.setparameter(2, srcSysId)&lt;BR /&gt;stmt.setparaminfo(3, "string", 50)&lt;BR /&gt;stmt.setparameter(3, process_name)&lt;BR /&gt;stmt.setparaminfo(4, "string", 50)&lt;BR /&gt;stmt.setparameter(4, process_type)&lt;BR /&gt;stmt.setparaminfo(5, "string", 513)&lt;BR /&gt;stmt.setparameter(5, user)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (i == 0)&lt;BR /&gt;begin&lt;BR /&gt;i = i + 1&lt;BR /&gt;/* Start process control */&lt;BR /&gt;db_curs = stmt.select()&lt;BR /&gt;db_curs.next()&lt;BR /&gt;stats_process_id = db_curs.valueinteger(0)&lt;BR /&gt;db_curs.release()&lt;BR /&gt;stmt.release()&lt;BR /&gt;conn.release()&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 18:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/572887#M17600</guid>
      <dc:creator>nbkohkt</dc:creator>
      <dc:date>2019-07-11T18:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/572999#M17601</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that you are using SAS MDM, and that the code you sent is part of the post process updates.&lt;/P&gt;
&lt;P&gt;Could you specify which process job and which node are exactly in error? Was this process working before? Is it a production environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 07:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/572999#M17601</guid>
      <dc:creator>VincentRejany</dc:creator>
      <dc:date>2019-07-12T07:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573082#M17613</link>
      <description>&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process job is 'add_update_person'.&lt;/P&gt;&lt;P&gt;yes, it worked before, and this issue happens only in production and we know there are lot process that runs in parallel in production that updates mdm_process_conrol table. But we are getting this error frequently nowadays.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We added this begin and end transaction statements, but still we are getting this error. We know that this is not a deadlock error. But not sure why we are getting this error. We checked with DBA and he confirmed he is not seeing any thing weird in the SQL server logs.&lt;/P&gt;&lt;P&gt;I have also attached the screenshot of the process job and the node in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Node name :&amp;nbsp;Gather Post-Live Stats&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573082#M17613</guid>
      <dc:creator>nbkohkt</dc:creator>
      <dc:date>2019-07-12T13:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573760#M17632</link>
      <description>Would suggest to open a ticket by tech support and to look at the TSQL code of the procedure called. Iirw it is supposed to read/write into the process control table.</description>
      <pubDate>Tue, 16 Jul 2019 07:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573760#M17632</guid>
      <dc:creator>VincentRejany</dc:creator>
      <dc:date>2019-07-16T07:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573842#M17633</link>
      <description>&lt;P&gt;Below is the stored procedures, when i checked the syntax of these, i dont see any issue, could you please check it for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USE [SASMDM];&lt;BR /&gt;GO&lt;BR /&gt;SET ANSI_NULLS ON;&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON;&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE [sasmdm].[mdm_start_process_control]&lt;BR /&gt;(&lt;BR /&gt;@parm_staging_id INT,&lt;BR /&gt;@parm_entity_type_id INT,&lt;BR /&gt;@parm_src_sys_id INT,&lt;BR /&gt;@parm_process_name VARCHAR(50),&lt;BR /&gt;@parm_process_type VARCHAR(50),&lt;BR /&gt;@parm_user NVARCHAR(513)&lt;BR /&gt;)&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;SET NOCOUNT ON&lt;BR /&gt;DECLARE @process_id INT&lt;BR /&gt;EXEC @process_id=[mdm_start_process_control_next] @parm_staging_id,@parm_entity_type_id,@parm_src_sys_id,@parm_process_name,@parm_process_type,@parm_user&lt;BR /&gt;select @process_id as process_id&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;USE [SASMDM];&lt;BR /&gt;GO&lt;BR /&gt;SET ANSI_NULLS ON;&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON;&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE [sasmdm].[mdm_start_process_control_next]&lt;BR /&gt;(&lt;BR /&gt;@parm_staging_id INT,&lt;BR /&gt;@parm_entity_type_id INT,&lt;BR /&gt;@parm_src_sys_id INT,&lt;BR /&gt;@parm_process_name VARCHAR(50),&lt;BR /&gt;@parm_process_type VARCHAR(50),&lt;BR /&gt;@parm_user NVARCHAR(513)&lt;BR /&gt;)&lt;BR /&gt;AS&lt;BR /&gt;DECLARE @timestamp datetime;&lt;BR /&gt;DECLARE @process_id INT;&lt;BR /&gt;SET NOCOUNT ON&lt;BR /&gt;BEGIN TRY&lt;BR /&gt;&lt;BR /&gt;SELECT @timestamp = GETDATE()&lt;BR /&gt;&lt;BR /&gt;BEGIN TRAN&lt;BR /&gt;INSERT INTO [MDM_PROCESS_CONTROL]&lt;BR /&gt;(&lt;BR /&gt;mdm_staging_id, mdm_entity_type_id, mdm_src_sys_id, process_name, process_type, process_running, process_user, process_start_dttm)&lt;BR /&gt;VALUES&lt;BR /&gt;(@parm_staging_id, @parm_entity_type_id, @parm_src_sys_id, @parm_process_name, @parm_process_type, 'Y', @parm_user, @timestamp)&lt;BR /&gt;&lt;BR /&gt;COMMIT TRAN&lt;BR /&gt;&lt;BR /&gt;SELECT @process_id = process_id&lt;BR /&gt;FROM mdm_process_control&lt;BR /&gt;WHERE process_name = @parm_process_name&lt;BR /&gt;AND mdm_entity_type_id = @parm_entity_type_id&lt;BR /&gt;AND mdm_staging_id = @parm_staging_id&lt;BR /&gt;AND mdm_src_sys_id = @parm_src_sys_id&lt;BR /&gt;AND process_running = 'Y'&lt;BR /&gt;AND process_start_dttm = @timestamp;&lt;/P&gt;&lt;P&gt;RETURN @process_id&lt;BR /&gt;&lt;BR /&gt;END TRY&lt;BR /&gt;BEGIN CATCH&lt;BR /&gt;ROLLBACK TRAN&lt;/P&gt;&lt;P&gt;DECLARE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33065"&gt;@error&lt;/a&gt;_messages VARCHAR(2000)&lt;BR /&gt;DECLARE @errorSeverity INT&lt;BR /&gt;DECLARE @errorState INT&lt;BR /&gt;DECLARE @errorStatus INT&lt;BR /&gt;DECLARE @errorProc VARCHAR(150)&lt;BR /&gt;DECLARE @errorDate DATETIME&lt;/P&gt;&lt;P&gt;DECLARE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453"&gt;@mdm&lt;/a&gt;_error_status VARCHAR(10)&lt;BR /&gt;DECLARE &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453"&gt;@mdm&lt;/a&gt;_error_messages VARCHAR(4000)&lt;BR /&gt;DECLARE @errorSeverityString VARCHAR(100)&lt;BR /&gt;DECLARE @errorStateString VARCHAR(100)&lt;/P&gt;&lt;P&gt;SELECT @errorStatus = ERROR_NUMBER()&lt;BR /&gt;SELECT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33065"&gt;@error&lt;/a&gt;_messages = ERROR_MESSAGE()&lt;BR /&gt;SELECT @errorSeverity = ERROR_SEVERITY()&lt;BR /&gt;SELECT @errorState = ERROR_STATE()&lt;BR /&gt;SELECT @errorProc = ERROR_PROCEDURE()&lt;BR /&gt;SELECT @errorDate = getDate()&lt;/P&gt;&lt;P&gt;SELECT @errorSeverityString = CONVERT(VARCHAR,@errorSeverity)&lt;BR /&gt;SELECT @errorStateString = CONVERT(VARCHAR,@errorState)&lt;BR /&gt;SELECT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453"&gt;@mdm&lt;/a&gt;_error_status = CONVERT(VARCHAR,@errorStatus)&lt;/P&gt;&lt;P&gt;SELECT &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453"&gt;@mdm&lt;/a&gt;_error_messages = @errorProc+ ' : '+@error_messages+&lt;BR /&gt;' : '+@errorSeverityString+&lt;BR /&gt;' : '+@mdm_error_status+&lt;BR /&gt;' : '+@errorStateString&lt;BR /&gt;-- Log Error&lt;BR /&gt;EXEC [mdm_log_error] 'MDM_PROCESS_CONTROL',null,0,null,'mdm_start_process_control_next',@mdm_error_status,@mdm_error_messages,@errorDate&lt;/P&gt;&lt;P&gt;-- Raise Error&lt;BR /&gt;RAISERROR(@error_messages, @errorSeverity, @errorState)&lt;BR /&gt;END CATCH&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/573842#M17633</guid>
      <dc:creator>nbkohkt</dc:creator>
      <dc:date>2019-07-16T14:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/576909#M17679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please confirm the syntax of the above SQL procedure is correct? Do i need insert Begin after the below statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DECLARE @process_id INT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and End in at the last statement?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/576909#M17679</guid>
      <dc:creator>nbkohkt</dc:creator>
      <dc:date>2019-07-26T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflux Error - The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/578204#M17692</link>
      <description>&lt;P&gt;Can anyone please confirm if the below SQL procedure is good.&lt;/P&gt;&lt;P&gt;We are getting the below error when we call this SQL procedure from SAS MDM Dataflux job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2019-07-31T08:57:47,916 ERROR [ROOT][53A9AEFD4BDBEE9E_JOB_7_0][539E8D0EF9C1EC5D_JOB_13_0][DATAFLOW_10_0]Node DATAFLOW_10 error: [1:EXPRESSION:Start Process Control] Expression Plugin - [25000] [DataFlux][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION. (3903);[25000] [DataFlux][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the stored procedures, when i checked the syntax of these, i dont see any issue, could you please check it for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USE [SASMDM];&lt;BR /&gt;GO&lt;BR /&gt;SET ANSI_NULLS ON;&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON;&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE [sasmdm].[mdm_start_process_control]&lt;BR /&gt;(&lt;BR /&gt;@parm_staging_id INT,&lt;BR /&gt;@parm_entity_type_id INT,&lt;BR /&gt;@parm_src_sys_id INT,&lt;BR /&gt;@parm_process_name VARCHAR(50),&lt;BR /&gt;@parm_process_type VARCHAR(50),&lt;BR /&gt;@parm_user NVARCHAR(513)&lt;BR /&gt;)&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;SET NOCOUNT ON&lt;BR /&gt;DECLARE @process_id INT&lt;BR /&gt;EXEC @process_id=[mdm_start_process_control_next] @parm_staging_id,@parm_entity_type_id,@parm_src_sys_id,@parm_process_name,@parm_process_type,@parm_user&lt;BR /&gt;select @process_id as process_id&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;USE [SASMDM];&lt;BR /&gt;GO&lt;BR /&gt;SET ANSI_NULLS ON;&lt;BR /&gt;GO&lt;BR /&gt;SET QUOTED_IDENTIFIER ON;&lt;BR /&gt;GO&lt;/P&gt;&lt;P&gt;CREATE PROCEDURE [sasmdm].[mdm_start_process_control_next]&lt;BR /&gt;(&lt;BR /&gt;@parm_staging_id INT,&lt;BR /&gt;@parm_entity_type_id INT,&lt;BR /&gt;@parm_src_sys_id INT,&lt;BR /&gt;@parm_process_name VARCHAR(50),&lt;BR /&gt;@parm_process_type VARCHAR(50),&lt;BR /&gt;@parm_user NVARCHAR(513)&lt;BR /&gt;)&lt;BR /&gt;AS&lt;BR /&gt;DECLARE @timestamp datetime;&lt;BR /&gt;DECLARE @process_id INT;&lt;BR /&gt;SET NOCOUNT ON&lt;BR /&gt;BEGIN TRY&lt;BR /&gt;&lt;BR /&gt;SELECT @timestamp = GETDATE()&lt;BR /&gt;&lt;BR /&gt;BEGIN TRAN&lt;BR /&gt;INSERT INTO [MDM_PROCESS_CONTROL]&lt;BR /&gt;(&lt;BR /&gt;mdm_staging_id, mdm_entity_type_id, mdm_src_sys_id, process_name, process_type, process_running, process_user, process_start_dttm)&lt;BR /&gt;VALUES&lt;BR /&gt;(@parm_staging_id, @parm_entity_type_id, @parm_src_sys_id, @parm_process_name, @parm_process_type, 'Y', @parm_user, @timestamp)&lt;BR /&gt;&lt;BR /&gt;COMMIT TRAN&lt;BR /&gt;&lt;BR /&gt;SELECT @process_id = process_id&lt;BR /&gt;FROM mdm_process_control&lt;BR /&gt;WHERE process_name = @parm_process_name&lt;BR /&gt;AND mdm_entity_type_id = @parm_entity_type_id&lt;BR /&gt;AND mdm_staging_id = @parm_staging_id&lt;BR /&gt;AND mdm_src_sys_id = @parm_src_sys_id&lt;BR /&gt;AND process_running = 'Y'&lt;BR /&gt;AND process_start_dttm = @timestamp;&lt;/P&gt;&lt;P&gt;RETURN @process_id&lt;BR /&gt;&lt;BR /&gt;END TRY&lt;BR /&gt;BEGIN CATCH&lt;BR /&gt;ROLLBACK TRAN&lt;/P&gt;&lt;P&gt;DECLARE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33065" target="_blank"&gt;@error&lt;/A&gt;_messages VARCHAR(2000)&lt;BR /&gt;DECLARE @errorSeverity INT&lt;BR /&gt;DECLARE @errorState INT&lt;BR /&gt;DECLARE @errorStatus INT&lt;BR /&gt;DECLARE @errorProc VARCHAR(150)&lt;BR /&gt;DECLARE @errorDate DATETIME&lt;/P&gt;&lt;P&gt;DECLARE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453" target="_blank"&gt;@mdm&lt;/A&gt;_error_status VARCHAR(10)&lt;BR /&gt;DECLARE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453" target="_blank"&gt;@mdm&lt;/A&gt;_error_messages VARCHAR(4000)&lt;BR /&gt;DECLARE @errorSeverityString VARCHAR(100)&lt;BR /&gt;DECLARE @errorStateString VARCHAR(100)&lt;/P&gt;&lt;P&gt;SELECT @errorStatus = ERROR_NUMBER()&lt;BR /&gt;SELECT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33065" target="_blank"&gt;@error&lt;/A&gt;_messages = ERROR_MESSAGE()&lt;BR /&gt;SELECT @errorSeverity = ERROR_SEVERITY()&lt;BR /&gt;SELECT @errorState = ERROR_STATE()&lt;BR /&gt;SELECT @errorProc = ERROR_PROCEDURE()&lt;BR /&gt;SELECT @errorDate = getDate()&lt;/P&gt;&lt;P&gt;SELECT @errorSeverityString = CONVERT(VARCHAR,@errorSeverity)&lt;BR /&gt;SELECT @errorStateString = CONVERT(VARCHAR,@errorState)&lt;BR /&gt;SELECT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453" target="_blank"&gt;@mdm&lt;/A&gt;_error_status = CONVERT(VARCHAR,@errorStatus)&lt;/P&gt;&lt;P&gt;SELECT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/221453" target="_blank"&gt;@mdm&lt;/A&gt;_error_messages = @errorProc+ ' : '+@error_messages+&lt;BR /&gt;' : '+@errorSeverityString+&lt;BR /&gt;' : '+@mdm_error_status+&lt;BR /&gt;' : '+@errorStateString&lt;BR /&gt;-- Log Error&lt;BR /&gt;EXEC [mdm_log_error] 'MDM_PROCESS_CONTROL',null,0,null,'mdm_start_process_control_next',@mdm_error_status,@mdm_error_messages,@errorDate&lt;/P&gt;&lt;P&gt;-- Raise Error&lt;BR /&gt;RAISERROR(@error_messages, @errorSeverity, @errorState)&lt;BR /&gt;END CATCH&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GO&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Dataflux-Error-The-ROLLBACK-TRANSACTION-request-has-no/m-p/578204#M17692</guid>
      <dc:creator>nbkohkt</dc:creator>
      <dc:date>2019-07-31T19:55:43Z</dc:date>
    </item>
  </channel>
</rss>

