<?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: Notebook execution failed at Notebook service with http status code - '200' in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383860#M6587</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;I have tried that 2-3 times but still facing this error&lt;BR /&gt;, adding my code snippet here, actually yesterday I have loaded some data and today again I tried to load some data with new student_id but some of the course_id is similar , in comaprison to already available data, and any way in merge query in the condition i am using both column with and condition, so i don't think there should be any issue, it is working as unique identifier&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fact_student_performance_table_path = f"abfss://{workspace}@onelake.dfs.fabric.microsoft.com/LH_Gold.Lakehouse/Tables/fact_student_performance"
fact_deltastudentperf = DeltaTable.forPath(spark, fact_student_performance_table_path)


fact_deltastudentperf.alias("target").merge(
    df_fact_student_performance.alias("source"), 
    "target.Student_ID = source.Student_ID" and "target.Course_ID = source.Course_ID"
    ).whenMatchedUpdate(set = {
        "Enrollment_Date" : "source.Enrollment_Date",
        "Completion_Date" : "source.Completion_Date",
        "Status" : "source.Status",
        "Final_Grade" : "source.Final_Grade",
        "Attendance_Rate" : "source.Attendance_Rate",
        "Time_Spent_on_Course_hrs" : "source.Time_Spent_on_Course_hrs",
        "Assignments_Completed" : "source.Assignments_Completed",
        "Quizzes_Completed" :  "source.Quizzes_Completed",
        "Forum_Posts" : "source.Forum_Posts",
        "Messages_Sent" : "source.Messages_Sent",
        "Quiz_Average_Score" : "source.Quiz_Average_Score",
        "Assignment_Scores" : "source.Assignment_Scores",
        "Assignment_Average_Score" : "source.Assignment_Average_Score",
        "Project_Score" : "source.Project_Score",
        "Extra_Credit" : "source.Extra_Credit",
        "Overall_Performance" : "source.Overall_Performance",
        "Feedback_Score" : "source.Feedback_Score",
        "Completion_Time_Days" : "source.Completion_Time_Days",
        "Performance_Score" : "source.Performance_Score",
        "Course_Completion_Rate" : "source.Course_Completion_Rate",
        "Processing_Date" : "source.Processing_Date"

    }).whenNotMatchedInsert(values = {
        "Student_ID" : "source.Student_ID",
        "Course_ID" : "source.Course_ID",
        "Enrollment_Date" : "source.Enrollment_Date",
        "Completion_Date" : "source.Completion_Date",
        "Status" : "source.Status",
        "Final_Grade" : "source.Final_Grade",
        "Attendance_Rate" : "source.Attendance_Rate",
        "Time_Spent_on_Course_hrs" : "source.Time_Spent_on_Course_hrs",
        "Assignments_Completed" : "source.Assignments_Completed",
        "Quizzes_Completed" :  "source.Quizzes_Completed",
        "Forum_Posts" : "source.Forum_Posts",
        "Messages_Sent" : "source.Messages_Sent",
        "Quiz_Average_Score" : "source.Quiz_Average_Score",
        "Assignment_Scores" : "source.Assignment_Scores",
        "Assignment_Average_Score" : "source.Assignment_Average_Score",
        "Project_Score" : "source.Project_Score",
        "Extra_Credit" : "source.Extra_Credit",
        "Overall_Performance" : "source.Overall_Performance",
        "Feedback_Score" : "source.Feedback_Score",
        "Completion_Time_Days" : "source.Completion_Time_Days",
        "Performance_Score" : "source.Performance_Score",
        "Course_Completion_Rate" : "source.Course_Completion_Rate",
        "Processing_Date" : "source.Processing_Date"
    }).execute()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 08:23:08 GMT</pubDate>
    <dc:creator>ramankr48</dc:creator>
    <dc:date>2025-01-28T08:23:08Z</dc:date>
    <item>
      <title>Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4381918#M6520</link>
      <description>&lt;P&gt;Hi Team, I am getting errors while loading data into my bronze table through data factory, i have uploaded some data last friday and today i wanted to load some new data but after running the pipeline, i got error(same error) in gold layer notebook, so i delete all the data from all the layers and started reloading the data, starting from bronze but agaian got the same error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error is like this :&lt;BR /&gt;&lt;BR /&gt;Notebook execution failed at Notebook service with http status code - '200', please check the Run logs on Notebook, additional details - 'Error name - UnsupportedOperationException, Error value - [DELTA_MULTIPLE_SOURCE_ROW_MATCHING_TARGET_ROW_IN_MERGE] Cannot perform Merge as multiple source rows matched and attempted to modify the same&lt;BR /&gt;target row in the Delta table in possibly conflicting ways. By SQL semantics of Merge,&lt;BR /&gt;when multiple source rows match on the same target row, the result may be ambiguous&lt;BR /&gt;as it is unclear which source row should be used to update or delete the matching&lt;BR /&gt;target row. You can preprocess the source table to eliminate the possibility of&lt;BR /&gt;multiple matches.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 11:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4381918#M6520</guid>
      <dc:creator>ramankr48</dc:creator>
      <dc:date>2025-01-27T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383014#M6560</link>
      <description>&lt;P&gt;Hi, what options do you use when landing the data in the bronze lakehouse? It seems like you use a merge statement, but is it possible that your unique identifier is not unique in the source?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 18:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383014#M6560</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2025-01-27T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383485#M6574</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913812"&gt;@ramankr48&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The error occurs when:&lt;BR /&gt;1. Multiple rows in the source dataset match the same row in the target Delta table during a `MERGE` operation.&lt;BR /&gt;2. This leads to conflicting updates or deletions, as SQL cannot determine which source row should be applied to the target row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what are you doing in your copy activity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you any sort of notebook doing merge?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 05:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383485#M6574</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-28T05:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383594#M6579</link>
      <description>&lt;P&gt;I am using the notebook, where I have written the merge query&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383594#M6579</guid>
      <dc:creator>ramankr48</dc:creator>
      <dc:date>2025-01-28T06:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383749#M6582</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913812"&gt;@ramankr48&lt;/a&gt;&amp;nbsp;, Can you try dropping your table and rerun the full load if possible.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 07:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383749#M6582</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-28T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383860#M6587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;I have tried that 2-3 times but still facing this error&lt;BR /&gt;, adding my code snippet here, actually yesterday I have loaded some data and today again I tried to load some data with new student_id but some of the course_id is similar , in comaprison to already available data, and any way in merge query in the condition i am using both column with and condition, so i don't think there should be any issue, it is working as unique identifier&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fact_student_performance_table_path = f"abfss://{workspace}@onelake.dfs.fabric.microsoft.com/LH_Gold.Lakehouse/Tables/fact_student_performance"
fact_deltastudentperf = DeltaTable.forPath(spark, fact_student_performance_table_path)


fact_deltastudentperf.alias("target").merge(
    df_fact_student_performance.alias("source"), 
    "target.Student_ID = source.Student_ID" and "target.Course_ID = source.Course_ID"
    ).whenMatchedUpdate(set = {
        "Enrollment_Date" : "source.Enrollment_Date",
        "Completion_Date" : "source.Completion_Date",
        "Status" : "source.Status",
        "Final_Grade" : "source.Final_Grade",
        "Attendance_Rate" : "source.Attendance_Rate",
        "Time_Spent_on_Course_hrs" : "source.Time_Spent_on_Course_hrs",
        "Assignments_Completed" : "source.Assignments_Completed",
        "Quizzes_Completed" :  "source.Quizzes_Completed",
        "Forum_Posts" : "source.Forum_Posts",
        "Messages_Sent" : "source.Messages_Sent",
        "Quiz_Average_Score" : "source.Quiz_Average_Score",
        "Assignment_Scores" : "source.Assignment_Scores",
        "Assignment_Average_Score" : "source.Assignment_Average_Score",
        "Project_Score" : "source.Project_Score",
        "Extra_Credit" : "source.Extra_Credit",
        "Overall_Performance" : "source.Overall_Performance",
        "Feedback_Score" : "source.Feedback_Score",
        "Completion_Time_Days" : "source.Completion_Time_Days",
        "Performance_Score" : "source.Performance_Score",
        "Course_Completion_Rate" : "source.Course_Completion_Rate",
        "Processing_Date" : "source.Processing_Date"

    }).whenNotMatchedInsert(values = {
        "Student_ID" : "source.Student_ID",
        "Course_ID" : "source.Course_ID",
        "Enrollment_Date" : "source.Enrollment_Date",
        "Completion_Date" : "source.Completion_Date",
        "Status" : "source.Status",
        "Final_Grade" : "source.Final_Grade",
        "Attendance_Rate" : "source.Attendance_Rate",
        "Time_Spent_on_Course_hrs" : "source.Time_Spent_on_Course_hrs",
        "Assignments_Completed" : "source.Assignments_Completed",
        "Quizzes_Completed" :  "source.Quizzes_Completed",
        "Forum_Posts" : "source.Forum_Posts",
        "Messages_Sent" : "source.Messages_Sent",
        "Quiz_Average_Score" : "source.Quiz_Average_Score",
        "Assignment_Scores" : "source.Assignment_Scores",
        "Assignment_Average_Score" : "source.Assignment_Average_Score",
        "Project_Score" : "source.Project_Score",
        "Extra_Credit" : "source.Extra_Credit",
        "Overall_Performance" : "source.Overall_Performance",
        "Feedback_Score" : "source.Feedback_Score",
        "Completion_Time_Days" : "source.Completion_Time_Days",
        "Performance_Score" : "source.Performance_Score",
        "Course_Completion_Rate" : "source.Course_Completion_Rate",
        "Processing_Date" : "source.Processing_Date"
    }).execute()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 08:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383860#M6587</guid>
      <dc:creator>ramankr48</dc:creator>
      <dc:date>2025-01-28T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383861#M6588</link>
      <description>&lt;P&gt;I am using the combination of student_id and course_id in fact table and in bronze and silver layer i have used individual column as unique identifier which is student_id and course_id respectively&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 08:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4383861#M6588</guid>
      <dc:creator>ramankr48</dc:creator>
      <dc:date>2025-01-28T08:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4384843#M6619</link>
      <description>&lt;P&gt;Could you check the source with some sql scripts for example that the combination of student_id and course_id is always unique?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:11:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4384843#M6619</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2025-01-28T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4414245#M7281</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913812"&gt;@ramankr48&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue from suggestions mentioned by &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/701977"&gt;@FabianSchut&lt;/a&gt;&amp;nbsp; and &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt; by verifing if combination of student_id and course_id is always unique? &amp;nbsp;If so, please mark the helpful reply and accept it as the solution. And if some other troubleshooting step has worked please mention that step and Accept it as solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 16:20:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4414245#M7281</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-17T16:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4415742#M7312</link>
      <description>&lt;P&gt;Hi Team, the issue got solved, it was issue related to quote&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 11:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4415742#M7312</guid>
      <dc:creator>ramankr48</dc:creator>
      <dc:date>2025-02-18T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook execution failed at Notebook service with http status code - '200'</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4415859#M7317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913812"&gt;@ramankr48&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We really appreciate your efforts and for letting us know the update on the issue. Please accept your reply as Solution so as to help other community members who may come across this post in the future.&lt;/P&gt;
&lt;P&gt;Please continue using fabric community forum for your further assistance.&lt;BR /&gt;Thank you&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 04:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-execution-failed-at-Notebook-service-with-http-status/m-p/4415859#M7317</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2025-02-19T04:00:18Z</dc:date>
    </item>
  </channel>
</rss>

