<?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 Bulk Upload metadata tables | C# Tabular Editor in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4320400#M58618</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a csv file that contains two columns:&amp;nbsp;tableName and description (that contains the table descriptions)&lt;/P&gt;&lt;P&gt;I'm trying to bulk update my table descriptions. This runs in Tabular but it doesn't load in the dataset.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using System.IO;
using System.Linq;

// Define the path to the CSV file
var csvFilePath = @"&amp;lt;ANONYMIZED_PATH&amp;gt;\TableInfo_Test.csv";

// Check if the file exists
if (!File.Exists(csvFilePath))
{
    throw new FileNotFoundException("The specified CSV file was not found.", csvFilePath);
}

// Read all lines from the CSV file
var lines = File.ReadAllLines(csvFilePath);

// Skip the header and parse the CSV file
foreach (var line in lines.Skip(1))
{
    var parts = line.Split(';');

    // Check if the line has at least two parts
    if (parts.Length &amp;lt; 2)
    {
        Console.WriteLine("Skipping line due to insufficient parts: " + line);
        continue; // Skip this line if it doesn't have enough parts
    }

    var tableName = parts[0].Trim();
    var description = parts[1].Trim();

    // Find the table in the model
    var table = Model.Tables.FirstOrDefault(t =&amp;gt; t.Name.Equals(tableName, StringComparison.OrdinalIgnoreCase));
    if (table != null)
    {
        Console.WriteLine("Updating table: " + tableName);
        table.Description = description;
    }
    else
    {
        Console.WriteLine("Table not found: " + tableName);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone find a solution or something else to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 20:46:12 GMT</pubDate>
    <dc:creator>JackWren</dc:creator>
    <dc:date>2024-12-09T20:46:12Z</dc:date>
    <item>
      <title>Bulk Upload metadata tables | C# Tabular Editor</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4320400#M58618</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a csv file that contains two columns:&amp;nbsp;tableName and description (that contains the table descriptions)&lt;/P&gt;&lt;P&gt;I'm trying to bulk update my table descriptions. This runs in Tabular but it doesn't load in the dataset.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using System.IO;
using System.Linq;

// Define the path to the CSV file
var csvFilePath = @"&amp;lt;ANONYMIZED_PATH&amp;gt;\TableInfo_Test.csv";

// Check if the file exists
if (!File.Exists(csvFilePath))
{
    throw new FileNotFoundException("The specified CSV file was not found.", csvFilePath);
}

// Read all lines from the CSV file
var lines = File.ReadAllLines(csvFilePath);

// Skip the header and parse the CSV file
foreach (var line in lines.Skip(1))
{
    var parts = line.Split(';');

    // Check if the line has at least two parts
    if (parts.Length &amp;lt; 2)
    {
        Console.WriteLine("Skipping line due to insufficient parts: " + line);
        continue; // Skip this line if it doesn't have enough parts
    }

    var tableName = parts[0].Trim();
    var description = parts[1].Trim();

    // Find the table in the model
    var table = Model.Tables.FirstOrDefault(t =&amp;gt; t.Name.Equals(tableName, StringComparison.OrdinalIgnoreCase));
    if (table != null)
    {
        Console.WriteLine("Updating table: " + tableName);
        table.Description = description;
    }
    else
    {
        Console.WriteLine("Table not found: " + tableName);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone find a solution or something else to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 20:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4320400#M58618</guid>
      <dc:creator>JackWren</dc:creator>
      <dc:date>2024-12-09T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Upload metadata tables | C# Tabular Editor</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4321172#M58621</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/279116"&gt;@JackWren&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your detailed explanation, I am more than willing to help you out.&lt;/P&gt;
&lt;P&gt;Regarding the data import issue, I have thought of an alternative solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;You can try using the Table Import Wizard tool:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1733816156391.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1212655iAFB8CA37AA9AA0B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1733816156391.png" alt="vlinyulumsft_0-1733816156391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.tabulareditor.com/onboarding/importing-tables-data-modeling.html" target="_blank"&gt;&lt;SPAN&gt;Importing tables and data modeling | Tabular Editor Documentation&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, after completing the import in Desktop, use it in the app:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1733816156393.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1212654iC7774A817648215A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1733816156393.png" alt="vlinyulumsft_1-1733816156393.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-comma-separated-value-files" target="_blank"&gt;Get data from comma separated value (CSV) files - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/combine-files-overview#table-preview" target="_blank"&gt;Combine files overview - Power Query | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/combine-files-csv" target="_blank"&gt;Combine CSV files in Power Query - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the issue you mentioned, it would be more advisable to post your question in Tabular Editor community to get professional support in time.&lt;/P&gt;
&lt;P&gt;Here is the link to the forum you need:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/TabularEditor/TabularEditor3" target="_blank"&gt;&lt;SPAN&gt;GitHub - TabularEditor/TabularEditor3: Bug reports, feature requests, discussion and documentation for Tabular Editor 3 (commercial version).&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://tabulareditor.com/contact" target="_blank"&gt;&lt;SPAN&gt;Tabular Editor 3&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Leroy Lu&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider Accept it &lt;STRONG&gt;&lt;I&gt;as the solution &lt;/I&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 07:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4321172#M58621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-10T07:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Upload metadata tables | C# Tabular Editor</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4325781#M58654</link>
      <description>&lt;P&gt;From what we have found, it doesn't seem possible to use C# for the table descriptions. Thank you for the other option, I'll have to investigate some more.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 11:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4325781#M58654</guid>
      <dc:creator>JackWren</dc:creator>
      <dc:date>2024-12-12T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Upload metadata tables | C# Tabular Editor</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4327502#M58663</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/279116"&gt;@JackWren&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find a solution, we encourage you to return to the forum, share your findings, and consider marking it as the accepted solution. Members with similar questions will greatly appreciate your contribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, if you have any interim results, we also welcome you to share them with us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your efforts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 8pt; font-family: Arial; font-size: 12.0pt;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 8pt; font-family: Arial; font-size: 12.0pt;"&gt;Leroy Lu&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 07:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Bulk-Upload-metadata-tables-C-Tabular-Editor/m-p/4327502#M58663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-13T07:39:25Z</dc:date>
    </item>
  </channel>
</rss>

