Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
bentz
Frequent Visitor

On-Premises SQL Server Mirroring: Internal system error occurred. ArtifactId: 8190a71d-9f0b-46c1-a3b

Hi!

I am trying to test SQL Server mirroring with our on-premises SQL Server.

I keep having the error 

Internal system error occurred. ArtifactId: 8190a71d-9f0b-46c1-a3b9-1971eacef801


For troubleshooting I have set up a new DB on the same server with the same credentials. That works. I have also copied said table over to the new DB and set it up there, that also works. I have also removed the whole set up and started all over, same error. 

Any idea how to proceed? Any help is much appreciated

I have set up the Eventstream to see if there is any additional info. Unfortunately not:

{
"Timestamp": 2025-09-29T00:38:32.3870290Z,
"OperationName": FailTable,
"ItemId": 8190a71d-9f0b-46c1-a3b9-1971eacef801,
"ItemKind": MirroredDatabase,
"ItemName": pstDemo,
"WorkspaceId": aafc7d2e-<redacted>-74ebe90bc7b8,
"WorkspaceName": Atom Mirroring Test,
"CapacityId": ee0ceb4e-<redacted>-60e741eb1685,
"CorrelationId": ,
"OperationId": ,
"Identity": ,
"CustomerTenantId": 32452ef0-<redacted>-b289b2f6f29c,
"DurationMs": ,
"Status": ,
"Level": ,
"Region": WestEurope,
"WorkspaceMonitoringTableName": MirroredDatabaseTableExecution,
"OperationStartTime": 2025-09-29T00:38:32.3740310Z,
"OperationEndTime": 2025-09-29T00:38:32.3740310Z,
"MirroringSourceType": MSSQL,
"SourceTableName": F_AccCostWOByPeriod,
"SourceSchemaName": dbo,
"ProcessedRows": 0,
"ProcessedBytes": 0,
"ReplicatorBatchLatency": 0,
"ErrorType": SystemError,
"ErrorMessage": Internal system error occurred. ArtifactId: 8190a71d-9f0b-46c1-a3b9-1971eacef801,
"IngestionTime": 2025-09-29T00:39:28.8586580Z
}


and 


{
"Timestamp": 2025-09-29T00:38:32.3870290Z,
"OperationName": FailTable,
"ItemId": 8190a71d-9f0b-46c1-a3b9-1971eacef801,
"ItemKind": MirroredDatabase,
"ItemName": pstDemo,
"WorkspaceId": aafc7d2e-<redacted>-74ebe90bc7b8,
"WorkspaceName": Atom Mirroring Test,
"CapacityId": ee0ceb4e-<redacted>-60e741eb1685,
"CorrelationId": ,
"OperationId": ,
"Identity": ,
"CustomerTenantId": 32452ef0-<redacted>-b289b2f6f29c,
"DurationMs": ,
"Status": ,
"Level": ,
"Region": WestEurope,
"WorkspaceMonitoringTableName": MirroredDatabaseTableExecution,
"OperationStartTime": 2025-09-29T00:38:32.3740310Z,
"OperationEndTime": 2025-09-29T00:38:32.3740310Z,
"MirroringSourceType": MSSQL,
"SourceTableName": F_AccCostWOByPeriod,
"SourceSchemaName": dbo,
"ProcessedRows": 0,
"ProcessedBytes": 0,
"ReplicatorBatchLatency": 0,
"ErrorType": SystemError,
"ErrorMessage": Internal system error occurred. ArtifactId: 8190a71d-9f0b-46c1-a3b9-1971eacef801,
"IngestionTime": 2025-09-29T00:39:28.8586580Z
}


Thanks
 

1 ACCEPTED SOLUTION
bentz
Frequent Visitor

Hi!

I have found the issue:

 

select
name,
is_cdc_enabled
from sys.databases;
EXEC sys.sp_cdc_enable_db

 

 

returned that CDC is not enabled for the DB.


When trying to enable it with:

EXEC sys.sp_cdc_enable_db

 

it failed with

Could not update the metadata that indicates database pstDemo is enabled for Change Data Capture. The failure occurred when executing the command 'SetCDCTracked(Value = 1)'. The error returned was 15517: 'Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.'. Use the action and error to determine the cause of the failure and resubmit the request.


This I fixed with

 

ALTER AUTHORIZATION ON DATABASE::[pstDemo] TO [sa];

 
Afterwards I was able to enable CDC and the mirroring started working.

View solution in original post

3 REPLIES 3
bentz
Frequent Visitor

Hi!

I have found the issue:

 

select
name,
is_cdc_enabled
from sys.databases;
EXEC sys.sp_cdc_enable_db

 

 

returned that CDC is not enabled for the DB.


When trying to enable it with:

EXEC sys.sp_cdc_enable_db

 

it failed with

Could not update the metadata that indicates database pstDemo is enabled for Change Data Capture. The failure occurred when executing the command 'SetCDCTracked(Value = 1)'. The error returned was 15517: 'Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.'. Use the action and error to determine the cause of the failure and resubmit the request.


This I fixed with

 

ALTER AUTHORIZATION ON DATABASE::[pstDemo] TO [sa];

 
Afterwards I was able to enable CDC and the mirroring started working.

v-lgarikapat
Community Support
Community Support

Hi @bentz , 

Thanks for reaching out to the Microsoft fabric community forum.

@tayloramy 

Thanks for your prompt response.

@bentz 

I wanted to follow up and confirm whether you’ve had the opportunity to review the information  provided by @tayloramy   If you have any questions or need further clarification, please don’t hesitate to reach out.

 

We appreciate your collaboration and support!

Best regards,
Lakshmi.

tayloramy
Resident Rockstar
Resident Rockstar

Hi @bentz,


Internal system error occurred. ArtifactId: …” is Fabric’s generic way of saying the mirror couldn’t bring a specific table into a healthy state. Your Eventstream rows (OperationName=FailTable, ErrorType=SystemError) confirm the failure happened at the table level for dbo.F_AccCostWOByPeriod. In practice, this almost always traces back to (a) a table/DB feature that mirroring doesn’t support, (b) missing prerequisites (CDC/change feed depending on SQL version), or (c) a tenant/gateway setting blocking the replicator. See Microsoft’s docs for supported scenarios, limits, and log fields you’re already looking at: Mirroring SQL Server, Limitations, MirroredDatabaseTableExecution schema, and Troubleshooting.

 

  1. Confirm SQL Server version path & prereqs
    • SQL Server 2016–2022: mirroring requires CDC on the database and each mirrored table.
    • SQL Server 2025: mirroring uses the change feed (no CDC); use the supplied DMVs/SPs below.
    Refs: Limitations, Troubleshoot (2016–2022 CDC and 2025 change feed).
  2. Make sure the table is eligible
    Common blockers (any one of these can produce your exact “Internal system error” with that ArtifactId):
    – No primary key, or PK uses unsupported types (e.g., sql_variant, timestamp/rowversion, datetime2(7), datetimeoffset(7), time(7)).
    – Columns with unsupported types (e.g., xml, geography, geometry, hierarchyid, sql_variant, CLR, json, vector), or computed columns.
    Clustered columnstore index, temporal/ledger history, Always Encrypted, in-memory tables, external tables.
    Full list: Limitations.
  3. Check tenant setting that the replicator depends on
    If the Fabric tenant setting “Users can access data stored in OneLake with apps external to Fabric” is OFF, tables can fail to reach Replicating status. Ensure it’s ON (Fabric Admin portal > OneLake settings).
    Ref: Troubleshoot (replicator status), setting described here: OneLake tenant settings.
  4. Gateway and region basics
    For on-prem SQL, Fabric uses the on-premises data gateway. Confirm the gateway is online, updated, and the connection used by the mirror is healthy. Mirroring is available in all Fabric regions, including West Europe.
    Ref: Mirroring SQL Server (gateway + regions).
  5. Reseed cleanly after fixing the cause
    After you fix the issue (e.g., add PK, drop a computed column, enable CDC/change feed, toggle the tenant setting), reseed the table or restart mirroring. If your SQL instance still thinks mirroring/change feed is enabled after you delete/recreate the mirror, run:
    EXEC sp_change_feed_disable_db; 
    Then re-enable via Fabric.
    Ref: Troubleshoot.

 

If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.

Helpful resources

Announcements
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.