<?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: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156431#M15970</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your observation is correct, Fabric Data Factory doesn't give you a mechanism to make the TableName visible if you're doing it using a ForEach activity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of using a Script activity inside ForEach, why don't you invoke a parameterised pipeline, that takes the TableName as an input parameter? The child pipeline can have the script that you're already using in your pipeline. This will give you the right monitoring visibility that you expect for each table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2026 11:39:19 GMT</pubDate>
    <dc:creator>deborshi_nag</dc:creator>
    <dc:date>2026-04-23T11:39:19Z</dc:date>
    <item>
      <title>Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipeline)</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156380#M15965</link>
      <description>&lt;P&gt;Question:&lt;BR /&gt;I’m working with a pipeline in Microsoft Fabric where I use a ForEach activity to load multiple tables from a Lakehouse into a Warehouse.&lt;/P&gt;&lt;P&gt;Inside the ForEach, I use a Script activity that dynamically builds and executes SQL based on item().TableName. Functionally everything works fine.&lt;/P&gt;&lt;P&gt;However, in the pipeline run view I only see the same activity name repeated multiple times (e.g. Script2), without any indication of which table is being processed in each iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&lt;BR /&gt;Is there a way to make the table name visible per iteration in the pipeline run UI (for example in the activity list or overview)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I’ve already tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dynamic activity names (@{item().TableName}) → not supported&lt;/LI&gt;&lt;LI&gt;PRINT / SELECT logging → only visible in activity output details&lt;/LI&gt;&lt;LI&gt;Variables → not visible in the overview&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ideally, I would like to see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;which table is being processed per iteration&lt;/LI&gt;&lt;LI&gt;and which one failed (if applicable)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Am I missing something in Fabric pipelines, or is this currently not supported?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 10:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156380#M15965</guid>
      <dc:creator>SjoerdW</dc:creator>
      <dc:date>2026-04-23T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156431#M15970</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your observation is correct, Fabric Data Factory doesn't give you a mechanism to make the TableName visible if you're doing it using a ForEach activity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of using a Script activity inside ForEach, why don't you invoke a parameterised pipeline, that takes the TableName as an input parameter? The child pipeline can have the script that you're already using in your pipeline. This will give you the right monitoring visibility that you expect for each table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 11:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156431#M15970</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-04-23T11:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156436#M15972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reaching community. will Happy to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic activity names in ForEach are &lt;STRONG&gt;not supported&lt;/STRONG&gt; in Fabric pipelines currently but there are &lt;STRONG&gt;workarounds&lt;/STRONG&gt; to achieve visibility per iteration. Below are the possible work arounds to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Workaround 1 - Use a&amp;nbsp;&amp;nbsp;Set Variable Activity (Best for Tracking)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P class=""&gt;Add a &lt;STRONG&gt;Set Variable&lt;/STRONG&gt; activity as the &lt;STRONG&gt;first step&lt;/STRONG&gt; inside your ForEach, before the Script activity:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Create a pipeline variable:&lt;/STRONG&gt; CurrentTableName (String type)&lt;/LI&gt;&lt;LI&gt;Inside ForEach, add &lt;STRONG&gt;Set Variable&lt;/STRONG&gt; activity:&lt;UL&gt;&lt;LI&gt;Name it something descriptive like &lt;STRONG&gt;Track_CurrentTable&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Variable: CurrentTableName&lt;/LI&gt;&lt;LI&gt;Value: &lt;STRONG&gt;@item().TableName&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Chain it → then your Script activity&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt; In the pipeline run view, the Set Variable activity output will show the table name in its &lt;STRONG&gt;input/output details&lt;/STRONG&gt;, making it traceable per iteration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Workaround 2 - Use Fail Activity for Failed Table Visibility&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P class=""&gt;To see &lt;STRONG&gt;which table failed&lt;/STRONG&gt;, add a &lt;STRONG&gt;Fail activity&lt;/STRONG&gt; on the failure path of your Script activity:&lt;/P&gt;&lt;P class=""&gt;This way the &lt;STRONG&gt;failure message&lt;/STRONG&gt; in the pipeline run view explicitly shows the table name that caused the error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ForEach
  └── Set Variable (CurrentTableName = @item().TableName)
  └── Script Activity
        ├── Success → (continue)
        └── Failure → Fail Activity
                       Message: @concat('Failed on table: ', item().TableName)
                       Error Code: 500&lt;/LI-CODE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Workaround 3 - Append to a Log Variable (Full Audit)&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/H3&gt;&lt;P class=""&gt;Create an &lt;STRONG&gt;Array variable&amp;nbsp;&lt;/STRONG&gt;ProcessedTables&amp;nbsp;and append each table name as it processes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create pipeline variable: ProcessedTables (Array)&lt;/LI&gt;&lt;LI&gt;Inside ForEach, after Script activity add &lt;STRONG&gt;Append Variable&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;Variable: ProcessedTables&lt;/LI&gt;&lt;LI&gt;Value: &lt;STRONG&gt;@concat(item().TableName, ' - Success')&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;After ForEach, add a &lt;STRONG&gt;Script activity&lt;/STRONG&gt; or &lt;STRONG&gt;Set Variable&lt;/STRONG&gt; to log the full array&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;// ProcessedTables output would look like:&lt;BR /&gt;&lt;/STRONG&gt;["Table1 - Success", "Table2 - Success", "Table3 - Failed"]&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; ForEach with &lt;STRONG&gt;batch count &amp;gt; 1&lt;/STRONG&gt; (parallel) can cause race conditions on Append Variable. Set &lt;STRONG&gt;batch count = 1&lt;/STRONG&gt; (sequential) if using this approach.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Workaround 4 - Write Logs to a Lakehouse Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;The most robust solution for production write iteration status directly to a log table. Truncate it first then insert So, you can have records for each pipeline run and not the olders.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;-- In your Script activity, add this alongside your existing SQL:
INSERT INTO dbo.PipelineLog 
    (PipelineRunId, TableName, Status, StartTime)
VALUES 
    ('your-run-id', '@{item().TableName}', 'Processing', GETDATE())&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;Then query this table anytime to see exactly which tables ran, succeeded, or failed with timestamps.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Fabric pipelines &lt;STRONG&gt;do not support dynamic activity names&lt;/STRONG&gt; natively in the run UI this is a known limitation.&lt;/DIV&gt;&lt;DIV class=""&gt;The &lt;STRONG&gt;Set Variable + Fail Activity&lt;/STRONG&gt; combo &lt;STRONG&gt;(Workarounds 1 &amp;amp; 2 together)&lt;/STRONG&gt; gives you the best visibility with minimal effort. For production pipelines, &lt;STRONG&gt;Workaround 4&lt;/STRONG&gt; (Lakehouse logging) is the most reliable long-term solution.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Please consider marking this as the Accepted Solution to help other community members find this fix more easily. If this helped you, Kudos are always appreciated!&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Apr 2026 11:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156436#M15972</guid>
      <dc:creator>Lodha_Jaydeep</dc:creator>
      <dc:date>2026-04-23T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156484#M15977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way I would approach this is to use an "append variable" activity inside the for each loop that will append the table name to a variable, then you can access that variable outside of the loop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 13:20:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5156484#M15977</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-04-23T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5157771#M15994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;,&lt;BR /&gt;Does the issue getting fixed or not? Feel free to reach out in case of any issues you are having will happy to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@everyone just keep you heads&amp;nbsp;For transparency, I used an AI tool to help structure my previous response, though I have personally verified all the steps and logic provided.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 10:45:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5157771#M15994</guid>
      <dc:creator>Lodha_Jaydeep</dc:creator>
      <dc:date>2026-04-24T10:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5158927#M16021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to take a moment to thank&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/486347"&gt;@Lodha_Jaydeep&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 05:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5158927#M16021</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-04-27T05:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show table names in outShow table names in outpuput for ForEach activity (Microsoft Fabric pipel</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5177186#M16103</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1510985"&gt;@SjoerdW&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 04:54:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Show-table-names-in-outShow-table-names-in-outpuput-for-ForEach/m-p/5177186#M16103</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-05-04T04:54:47Z</dc:date>
    </item>
  </channel>
</rss>

