<?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: Error message when a column was removed from data source that were referenced in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4274862#M58202</link>
    <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Currently, if you are unfamiliar with how your M language is structured, I recommend searching for and removing items line by line. For example:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;My original data is as follows, and there is a custom column referencing the ID2 column that we intend to delete:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1731032852049.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196115i0403F1ADD920F691/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1731032852049.png" alt="vlinyulumsft_0-1731032852049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Now, we will remove the ID2 column from the original data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1731032852051.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196114iE55932897661A898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1731032852051.png" alt="vlinyulumsft_1-1731032852051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If we apply this directly now, it will certainly result in an error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1731032901823.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196116i2C17C196699AA70F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1731032901823.png" alt="vlinyulumsft_2-1731032901823.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;We just need to open Power Query and enter the Advanced Editor:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_3-1731032901824.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196117i42D1E1AAA3001D24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_3-1731032901824.png" alt="vlinyulumsft_3-1731032901824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;A common first step is to change the data type, so we can delete that section:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_4-1731032919278.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196119i76D3A1E8AAF62FA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_4-1731032919278.png" alt="vlinyulumsft_4-1731032919278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If there are any referencing columns, delete the entire row:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_5-1731032919279.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196118i13029B5A2AD81F1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_5-1731032919279.png" alt="vlinyulumsft_5-1731032919279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;You should note that each row corresponds to an application step in Power Query, so you need to check each line to see if the ID2 column has been applied, ensuring that every line in the let section, except for the last one, ends with a comma.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Finally, rename your last line to match the output section in the "in" part:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_6-1731033086370.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196121i895C95FA9CE1F439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_6-1731033086370.png" alt="vlinyulumsft_6-1731033086370.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This should allow for normal output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_7-1731033086371.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196122i307462C794D4E5C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_7-1731033086371.png" alt="vlinyulumsft_7-1731033086371.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If there are any measures or calculated columns in the desktop section that reference this column, the most straightforward approach is to delete them again.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_8-1731033104795.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196123i647078995799CA4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_8-1731033104795.png" alt="vlinyulumsft_8-1731033104795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_9-1731033104796.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196124i034737AAEE054785/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_9-1731033104796.png" alt="vlinyulumsft_9-1731033104796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I hope my example helps you!&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post&lt;EM&gt;&lt;STRONG&gt; helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 02:34:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-08T02:34:08Z</dc:date>
    <item>
      <title>Error message when a column was removed from data source that were referenced</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4272976#M58174</link>
      <description>&lt;P&gt;How can I fix an error I'm getting when I load the data? A column was removed from the data source so when it syncs it has an error as the column is referenced something done in the applied steps.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 20:05:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4272976#M58174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-06T20:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when a column was removed from data source that were referenced</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4273034#M58177</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;How can I fix an error I'm getting when I load the data? &lt;/LI-CODE&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;
&lt;P&gt;1. Don't remove columns.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Use Table.SelectColumns rather than Table.RemoveColumns.&lt;/P&gt;
&lt;P&gt;3. Read about how to manage missing columns in Power Query code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 20:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4273034#M58177</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-06T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when a column was removed from data source that were referenced</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4274862#M58202</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Currently, if you are unfamiliar with how your M language is structured, I recommend searching for and removing items line by line. For example:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;My original data is as follows, and there is a custom column referencing the ID2 column that we intend to delete:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1731032852049.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196115i0403F1ADD920F691/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1731032852049.png" alt="vlinyulumsft_0-1731032852049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Now, we will remove the ID2 column from the original data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1731032852051.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196114iE55932897661A898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1731032852051.png" alt="vlinyulumsft_1-1731032852051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If we apply this directly now, it will certainly result in an error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1731032901823.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196116i2C17C196699AA70F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1731032901823.png" alt="vlinyulumsft_2-1731032901823.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;We just need to open Power Query and enter the Advanced Editor:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_3-1731032901824.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196117i42D1E1AAA3001D24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_3-1731032901824.png" alt="vlinyulumsft_3-1731032901824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;A common first step is to change the data type, so we can delete that section:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_4-1731032919278.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196119i76D3A1E8AAF62FA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_4-1731032919278.png" alt="vlinyulumsft_4-1731032919278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If there are any referencing columns, delete the entire row:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_5-1731032919279.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196118i13029B5A2AD81F1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_5-1731032919279.png" alt="vlinyulumsft_5-1731032919279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;You should note that each row corresponds to an application step in Power Query, so you need to check each line to see if the ID2 column has been applied, ensuring that every line in the let section, except for the last one, ends with a comma.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Finally, rename your last line to match the output section in the "in" part:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_6-1731033086370.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196121i895C95FA9CE1F439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_6-1731033086370.png" alt="vlinyulumsft_6-1731033086370.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This should allow for normal output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_7-1731033086371.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196122i307462C794D4E5C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_7-1731033086371.png" alt="vlinyulumsft_7-1731033086371.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;If there are any measures or calculated columns in the desktop section that reference this column, the most straightforward approach is to delete them again.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_8-1731033104795.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196123i647078995799CA4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_8-1731033104795.png" alt="vlinyulumsft_8-1731033104795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_9-1731033104796.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1196124i034737AAEE054785/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_9-1731033104796.png" alt="vlinyulumsft_9-1731033104796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I hope my example helps you!&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post&lt;EM&gt;&lt;STRONG&gt; helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 02:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-message-when-a-column-was-removed-from-data-source-that/m-p/4274862#M58202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-08T02:34:08Z</dc:date>
    </item>
  </channel>
</rss>

