<?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: Publishing a User Data Function is giving error in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4747824#M10486</link>
    <description>&lt;P&gt;Hello Prashanth, Please respond if you find any solution&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 05:26:14 GMT</pubDate>
    <dc:creator>VivekGoli1203</dc:creator>
    <dc:date>2025-06-30T05:26:14Z</dc:date>
    <item>
      <title>Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4746075#M10454</link>
      <description>&lt;P&gt;I have created a Fabric SQL Database. Created a User Data Function and added the connection to SQL Database in Manage Connections section of the UDF. Then I have pasted the sample code that Microsoft Tutorial has given. Publishing the UDF is giving the below error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VivekGoli1203_0-1751005661452.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1279451iF5AB39D9B7BB23E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VivekGoli1203_0-1751005661452.png" alt="VivekGoli1203_0-1751005661452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unexpected token '&amp;lt;', "&amp;lt;!--# QVsM"... is not valid JSON&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Link to tutorial :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/translytical-task-flow-tutorial" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/translytical-task-flow-tutorial&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 06:29:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4746075#M10454</guid>
      <dc:creator>VivekGoli1203</dc:creator>
      <dc:date>2025-06-27T06:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4747107#M10473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1297052"&gt;@VivekGoli1203&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are looking to your scenario and will post answer once were tried reproducing it.&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;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 05:34:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4747107#M10473</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-28T05:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4747824#M10486</link>
      <description>&lt;P&gt;Hello Prashanth, Please respond if you find any solution&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 05:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4747824#M10486</guid>
      <dc:creator>VivekGoli1203</dc:creator>
      <dc:date>2025-06-30T05:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4748172#M10492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1297052"&gt;@VivekGoli1203&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As i have tried and implimeted below mentioned: Create a translytical task flow (&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/translytical-task-flow-tutorial#test-the-sample-code" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/translytical-task-flow-tutorial#test-the-sample-code&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;when i run the UDF mentioned in the docs, it gives me success message without any errors. Can you try again once replacing the default code with the code given in the documentation. there might have been extra typos mistakes have added while copying code that might result in error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vprasare_0-1751275451518.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1279967i348D1B9FF4C10EB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vprasare_0-1751275451518.png" alt="vprasare_0-1751275451518.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my answer helps please &lt;STRONG&gt;accept as solution&lt;/STRONG&gt;, by doing this users with similar issues find answers easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 09:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4748172#M10492</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-30T09:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4752913#M10628</link>
      <description>&lt;P&gt;I have used the correst code from the turorial, with correct data connection to Fabric SQL Database.&lt;/P&gt;&lt;P&gt;But it has given error in my tenant. But in other tenant of our organisation it worked fine.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 05:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4752913#M10628</guid>
      <dc:creator>VivekGoli1203</dc:creator>
      <dc:date>2025-07-04T05:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4755555#M10694</link>
      <description>&lt;P&gt;In this scenario i suggest you to raise a support ticket here. so, that they can assit you in addressing the issue you are facing. please follow below link on how to raise a support ticket:&lt;/P&gt;
&lt;P&gt;&lt;A class="" title="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank" rel="noreferrer noopener nofollow" aria-label="Link How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn"&gt;How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn&lt;/A&gt;&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;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 15:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4755555#M10694</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-07-07T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756000#M10710</link>
      <description>&lt;P&gt;Okay Prashanth thank you&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 05:52:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756000#M10710</guid>
      <dc:creator>VivekGoli1203</dc:creator>
      <dc:date>2025-07-08T05:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756234#M10726</link>
      <description>&lt;P&gt;Just curious that why do we need User Data Function in Fabric SQL Database?? Use Kimball methodology/ Dimensional Modelling wherever we can. ( DimTable &amp;lt;--&amp;gt; Fact Table )&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:06:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756234#M10726</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-07-08T09:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756239#M10727</link>
      <description>&lt;P&gt;I am trying to implement write back in a Power Bi report, so as per the newly introduced translytical workflows tutorial it asked to create a UDF that takes values from report as parameters and updates them in the Fabric SQL Database.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4756239#M10727</guid>
      <dc:creator>VivekGoli1203</dc:creator>
      <dc:date>2025-07-08T09:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a User Data Function is giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4757252#M10758</link>
      <description>&lt;P&gt;This write back functionlity in Power BI is not available in User Defined Functions. You should do (write back functionilty) this in DWH aka Data Lakehouse. ( in Apache Spark with Python and INSERT ) . I will give you an example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H2&gt;Writing data back to Azure SQL Database&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/H2&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Create DataFrame to insert into the Azure SQL table ( Writing Data to Azure SQL Table ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df1 &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; spark.&lt;/SPAN&gt;&lt;SPAN&gt;createDataFrame&lt;/SPAN&gt;&lt;SPAN&gt;([(&lt;/SPAN&gt;&lt;SPAN&gt;'WL2456'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Luke1293'&l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SPAN&gt;# Insert the rows into the Azure SQL table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df1.write \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'user'&lt;/SPAN&gt;&lt;SPAN&gt;, user) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;.&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'password'&lt;/SPAN&gt;&lt;SPAN&gt;, pswd) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;.&lt;/SPAN&gt;&lt;SPAN&gt;jdbc&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'jdbc:sqlserver://'&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt; sqlserver &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;':'&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt; port &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;';database='&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt; database, &lt;/SPAN&gt;&lt;SPAN&gt;'dbo.Devices'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'append'&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df1.&lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jul 2025 05:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Publishing-a-User-Data-Function-is-giving-error/m-p/4757252#M10758</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-07-09T05:43:51Z</dc:date>
    </item>
  </channel>
</rss>

