<?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: Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2056361#M5577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211846"&gt;@ramu123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The software is trying to create a trigger on the source that already exists, not sure why. I searched our solution database but did not find helpful results. Can you please open a support case and attach a diagnostics package for the task, so we can look into this more deeply?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 16:50:13 GMT</pubDate>
    <dc:creator>Dana_Baldwin</dc:creator>
    <dc:date>2023-04-03T16:50:13Z</dc:date>
    <item>
      <title>Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the data</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055621#M5547</link>
      <description>&lt;P&gt;Hi Team ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below error message I have received for log stream.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SQL_ERROR SqlState: 42S01 NativeError: 2714 Message: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]There is already an object named 'attrep_mscdc_ddl_catcher' in the database. Line: 1 Column: -1.&lt;/P&gt;
&lt;P&gt;But Could not find in target database with this name ' 'attrep_mscdc_ddl_catcher'.&lt;/P&gt;
&lt;P&gt;Could you please suggest what could be reason, where to check? is this error related source database or target database?&lt;/P&gt;
&lt;P&gt;is there any impact?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Ramu&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 10:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055621#M5547</guid>
      <dc:creator>ramu123</dc:creator>
      <dc:date>2023-03-31T10:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055835#M5558</link>
      <description>&lt;P&gt;Surely 'ddl_catcher' is related to the source DB. No doubt!&lt;/P&gt;
&lt;P&gt;I would expect it to be under programmability - similar to&amp;nbsp; the Attunity provided&amp;nbsp; scalar values functions dbo.attrep_fn_LsnSegmentToHexa and&amp;nbsp; dbo.attrep_fn_NumericLsnToHexa&lt;/P&gt;
&lt;P&gt;If you find it , delete it and try again. I think this is a relatively new addition and the security attributes might not be compatible with what there is. Not sure.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 23:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055835#M5558</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-03-31T23:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055892#M5565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This below error I'm getting exactly. Could you explain clearly so that it is very helpful to me&amp;nbsp; .&lt;/P&gt;
&lt;P&gt;Qlik replicate version is&amp;nbsp;2022.5.0.499 and Qlik Enterprise Manger Version is&amp;nbsp;2021.11.0.151.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stream component 'st_0_PROD M2C ISU' terminated&lt;BR /&gt;Stream component failed at subtask 0, component st_0_PROD M2C ISU &lt;BR /&gt;Error executing command&lt;BR /&gt;Failed to create DDL events trigger&lt;BR /&gt;RetCode: SQL_ERROR SqlState: 42S01 NativeError: 2714 Message: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]There is already an object named 'attrep_mscdc_ddl_catcher' in the database. Line: 1 Column: -1&lt;BR /&gt;Failed (retcode -1) to execute statement: '&lt;BR /&gt;CREATE TRIGGER [attrep_mscdc_ddl_catcher]&lt;BR /&gt;ON DATABASE&lt;BR /&gt;FOR CREATE_TABLE, ALTER_TABLE, DROP_TABLE&lt;BR /&gt;AS&lt;BR /&gt;BEGIN&lt;BR /&gt;SET NOCOUNT ON;&lt;BR /&gt;declare @x XML&lt;BR /&gt;declare @ddlOperation varchar(32)&lt;BR /&gt;declare @schemaName nvarchar(128)&lt;BR /&gt;declare @tableName nvarchar(128)&lt;BR /&gt;declare @loginName varchar(64)&lt;BR /&gt;declare &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44893"&gt;@Username&lt;/a&gt; varchar(64)&lt;BR /&gt;declare @eventTime varchar(32)&lt;/P&gt;
&lt;P&gt;declare @orgT varchar(256)&lt;BR /&gt;declare @cdcT varchar(256)&lt;/P&gt;
&lt;P&gt;declare @orgObjId integer&lt;BR /&gt;declare @cdcObjId integer&lt;/P&gt;
&lt;P&gt;set @x = EVENTDATA();&lt;BR /&gt;set @ddlOperation = @x.value('(/EVENT_INSTANCE/EventType)[1]', 'varchar(32)')&lt;BR /&gt;set @schemaName = @x.value(N'(/EVENT_INSTANCE/SchemaName)[1]', 'nvarchar(128)')&lt;BR /&gt;set @tableName = @x.value(N'(/EVENT_INSTANCE/ObjectName)[1]', 'nvarchar(128)')&lt;BR /&gt;set @loginName = @x.value('(/EVENT_INSTANCE/LoginName)[1]', 'varchar(64)')&lt;BR /&gt;set &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44893"&gt;@Username&lt;/a&gt; = @x.value('(/EVENT_INSTANCE/UserName)[1]', 'varchar(64)')&lt;BR /&gt;set @eventTime = @x.value('(/EVENT_INSTANCE/PostTime)[1]', 'varchar(32)')&lt;/P&gt;
&lt;P&gt;set @orgT = @schemaName+'.' + @tableName&lt;BR /&gt;set @cdcT = 'cdc.' + @schemaName+'_' + @tableName+'_CT';&lt;/P&gt;
&lt;P&gt;set @orgObjId = OBJECT_ID(@orgT,N'U')&lt;BR /&gt;if @orgObjId is null&lt;BR /&gt;set @orgObjId = 0;&lt;BR /&gt;set @cdcObjId = OBJECT_ID(@cdcT,N'U')&lt;BR /&gt;if @cdcObjId is null&lt;BR /&gt;set @cdcObjId = 0;&lt;/P&gt;
&lt;P&gt;INSERT INTO [dbo].[attrep_mscdc_ddl_history]&lt;BR /&gt;([ddlOperation], [schemaName], [tableName], [loginName], [userName], [eventTime], [orgObjId], [cdcObjId])&lt;BR /&gt;VALUES&lt;BR /&gt;(@ddlOperation,@schemaName,@tableName,@loginName,@userName,@eventTime,@orgObjId,@cdcObjId)&lt;/P&gt;
&lt;P&gt;delete from [dbo].[attrep_mscdc_ddl_history] where ddlId = (select max(ddlId) from [dbo].[attrep_mscdc_ddl_history])&lt;BR /&gt;END;&lt;BR /&gt;'&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Ramu&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 17:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2055892#M5565</guid>
      <dc:creator>ramu123</dc:creator>
      <dc:date>2023-04-01T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2056361#M5577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211846"&gt;@ramu123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The software is trying to create a trigger on the source that already exists, not sure why. I searched our solution database but did not find helpful results. Can you please open a support case and attach a diagnostics package for the task, so we can look into this more deeply?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 16:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2056361#M5577</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-04-03T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stream component failed at subtask and Failed to create DDL events trigger and There is already an object named 'attrep_mscdc_ddl_catcher' in the</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2056384#M5582</link>
      <description>&lt;P&gt;[duplicate of reply to: "&lt;A class="usernameLink page-link lia-link-navigation lia-custom-event" tabindex="0" href="https://community.qlik.com/t5/Qlik-Replicate/I-m-not-able-to-create-Qlik-support-case/td-p/2056280" target="_blank"&gt;I'm not able to create Qlik support case&lt;/A&gt;" ]&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211846" target="_blank"&gt;@ramu123&lt;/A&gt;&amp;nbsp; - thanks for getting down to the failing statement: "&lt;EM&gt;CREATE TRIGGER [attrep_mscdc_ddl_catcher]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ON DATABASE"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Was there an object existance test before the create ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this (also) happening, or reproducible&amp;nbsp;in DEV (non-production - as the&amp;nbsp; Stream component name 'st_0_PROD M2C ISU'&amp;nbsp;suggests production.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should see the trigger in SMSS under databases - &amp;lt;source-db-name&amp;gt; - Programmability - Database_Triggers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a workaround can you just pre-delete the trigger and try again?&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;EM&gt;DROP TRIGGER [attrep_mscdc_ddl_catcher]&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;ON DATABASE;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Hein.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Stream-component-failed-at-subtask-and-Failed-to-create-DDL/m-p/2056384#M5582</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-04-03T17:52:41Z</dc:date>
    </item>
  </channel>
</rss>

