<?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: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4864995#M3898</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1302628" data-lia-user-login="lobitconsulting" class="lia-mention lia-mention-user"&gt;lobitconsulting&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;all right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test it and then let you know if I can reproduce the error. I have also already read up on the API.&lt;BR /&gt;If everything goes well, I will get to it in the next few days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you perhaps share your complete code here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 14:14:45 GMT</pubDate>
    <dc:creator>spaceman127</dc:creator>
    <dc:date>2025-11-03T14:14:45Z</dc:date>
    <item>
      <title>Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4863192#M3892</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a strange issue when mirroring an Azure SQL&amp;nbsp; database to Fabric.&lt;/DIV&gt;&lt;DIV&gt;-When doing GUI point-and-click, the mirroring starts within minutes. Status = Running, &lt;STRONG&gt;Rows Replicated = Correct number&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-When doing (what I think) is same with API, using same connection, creating mirroring and start, everything looks ok,&amp;nbsp; Status = Running, &lt;STRONG&gt;Rows Replicated = 0.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When running&lt;BR /&gt;&amp;nbsp;SELECT * FROM sys.dm_change_feed_errors;&lt;BR /&gt;"Error occured while interacting with landing zone"&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;additional:&lt;/DIV&gt;&lt;DIV&gt;-Im using ServicePrincipal for the connection, using same connection object in both cases.&lt;/DIV&gt;&lt;DIV&gt;-Using Fabic notebook to initiate the API calls, authenticated as myself (admin).&lt;BR /&gt;Payload&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "properties": {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "source": {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "AzureSqlDatabase",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeProperties": {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "connection": xxxxxxxxxxxxxx,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"database": xxxxxxxxxxxxxxxx&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "target": {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "MountedRelationalDatabase",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "typeProperties": {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "defaultSchema": "dbo",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "format": "Delta"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The issue is reproducable. Whenever point-and-click it works. whenever API it fails.&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Oct 2025 09:15:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4863192#M3892</guid>
      <dc:creator>lobitconsulting</dc:creator>
      <dc:date>2025-10-31T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4863445#M3893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1302628" data-lia-user-login="lobitconsulting" class="lia-mention lia-mention-user"&gt;lobitconsulting&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tested it yet, but I think I've read somewhere that you have to specify the landing zone in the API call.&lt;/P&gt;&lt;P&gt;Here's an example. No guarantees, but you can give it a try.&lt;/P&gt;&lt;P&gt;Let us know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;target": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"type": "MountedRelationalDatabase",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"typeProperties": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"defaultSchema": "dbo",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"format": "Delta",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"landingZone": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"type": "Managed"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 13:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4863445#M3893</guid>
      <dc:creator>spaceman127</dc:creator>
      <dc:date>2025-10-31T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4864701#M3897</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644531" data-lia-user-login="spaceman127" class="lia-mention lia-mention-user"&gt;spaceman127&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tested adding your config, but the result is same as before.&lt;/P&gt;&lt;P&gt;I have a large number of databases, so GUI approach is no option.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 07:57:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4864701#M3897</guid>
      <dc:creator>lobitconsulting</dc:creator>
      <dc:date>2025-11-03T07:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4864995#M3898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1302628" data-lia-user-login="lobitconsulting" class="lia-mention lia-mention-user"&gt;lobitconsulting&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;all right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test it and then let you know if I can reproduce the error. I have also already read up on the API.&lt;BR /&gt;If everything goes well, I will get to it in the next few days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you perhaps share your complete code here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 14:14:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4864995#M3898</guid>
      <dc:creator>spaceman127</dc:creator>
      <dc:date>2025-11-03T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865288#M3903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644531" data-lia-user-login="spaceman127" class="lia-mention lia-mention-user"&gt;spaceman127&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your time,&lt;BR /&gt;&lt;BR /&gt;I removed some debug code to make it more compact, but in essence this is my pyspark notebook.&lt;BR /&gt;I did not include the connection object, this was created in GUI and I refer to the same connection object both in my GUI test and API test.&lt;BR /&gt;When doing the calls I authenticate as myself. The connection object is using service principal towards the database.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests, json, base64, uuid
 
token = mssparkutils.credentials.getToken("pbi")

workspaceId = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
connectionId = "xxxxxxxxxxxxxxxxxxxxxxxxx"
DATABASE = "mirrortesting"

# ====== HEADERS ======
headers = {
    "Authorization": f"Bearer {token}",
    "Content-Type": "application/json"
}

# ====== Create Mirroring Variables ======
 
urlCreateMirror = "https://api.fabric.microsoft.com/v1/workspaces/" + workspaceId + "/mirroredDatabases"

payloadUnencoded = {
    "properties": {
        "source": {
            "type": "AzureSqlDatabase",
            "typeProperties": {
                "connection": connectionId,
                 "database": DATABASE
            }
        },
        "target": {
            "type": "MountedRelationalDatabase",
            "typeProperties": {
                "defaultSchema": "dbo",
                "format": "Delta",
                 "landingZone": {
                 "type": "Managed"
                 }
            }
        }
    }
}
 
b64 = base64.b64encode(json.dumps(payloadUnencoded).encode('utf-8')).decode('utf-8')
display_name = f"Mirror Instance {DATABASE}"
 
body = {
    "displayName": display_name,
    "description": "Mirror created in notebook",
    "definition": {
        "parts": [
            {
                "path": "mirroring.json",
                "payload": b64,
                "payloadType": "InlineBase64"
            }
        ]
    }
}


# ====== Create Mirroring API CALL =====
resp = requests.post(urlCreateMirror, headers=headers, data=json.dumps(body), timeout=120)
mirroredDbId = resp.json()["id"]
time.sleep(20) #wait for Initialized



# ====== Start Mirroring ======
urlStart = "https://api.fabric.microsoft.com/v1/workspaces/" + workspaceId + "/mirroredDatabases/" + mirroredDbId + "/startMirroring"
resp = requests.post(urlStart, headers=headers, data=json.dumps({}), timeout=120)
time.sleep(20) #wait for 'Running'



# ====== Check status ======
urlStatus = "https://api.fabric.microsoft.com/v1/workspaces/" + workspaceId + "/mirroredDatabases/" + mirroredDbId + "/getMirroringStatus"
respStatus = requests.post(urlStatus, headers=headers, data=json.dumps({}), timeout=120)
print(json.dumps(respStatus.json(), indent=2))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 16:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865288#M3903</guid>
      <dc:creator>lobitconsulting</dc:creator>
      <dc:date>2025-11-03T16:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865319#M3904</link>
      <description>&lt;P&gt;Update to this,&lt;BR /&gt;&lt;BR /&gt;I found a reddit post with the same issue,&lt;BR /&gt;&lt;A href="https://www.reddit.com/r/MicrosoftFabric/comments/1o696yw/the_issue_of_creating_mirrored_databases_using/" target="_blank"&gt;https://www.reddit.com/r/MicrosoftFabric/comments/1o696yw/the_issue_of_creating_mirrored_databases_using/&lt;/A&gt;&lt;BR /&gt;Its pointed out that the SAMI needs permission on the mirrored database item.&lt;/P&gt;&lt;P&gt;Also when reading the fine prints in the documentation its stated there as well.&lt;/P&gt;&lt;P&gt;So its really down to me not grasping the details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I added the SAMI to the mirroring object, API works fine for setting up the mirroring.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644531" data-lia-user-login="spaceman127" class="lia-mention lia-mention-user"&gt;spaceman127&lt;/a&gt;&amp;nbsp;for your time&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 16:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865319#M3904</guid>
      <dc:creator>lobitconsulting</dc:creator>
      <dc:date>2025-11-03T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL mirroring to Fabric fails with Error occured while interacting with landing zone</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865409#M3905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1302628" data-lia-user-login="lobitconsulting" class="lia-mention lia-mention-user"&gt;lobitconsulting&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great!&lt;BR /&gt;I tested it tonight because the problem kept bothering me, and I encountered exactly what you described.&lt;BR /&gt;The permission was missing.&lt;/P&gt;&lt;P&gt;I was able to reproduce it.&lt;/P&gt;&lt;P&gt;Perfect, your problem is solved.&lt;/P&gt;&lt;P&gt;And I'm happy to help when I can.&lt;/P&gt;&lt;P&gt;And feel free to mark the solution and leave some kudos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 20:37:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Azure-SQL-mirroring-to-Fabric-fails-with-Error-occured-while/m-p/4865409#M3905</guid>
      <dc:creator>spaceman127</dc:creator>
      <dc:date>2025-11-03T20:37:11Z</dc:date>
    </item>
  </channel>
</rss>

