Microsoft-Windows-StateRepository

EventTitleChannelSampleRule
100Error ErrorCode: SQL.OperationalNN
101[P:ProcessId T:ThreadId] Trace: Executing SQL 'SQL'.OperationalNN
102Error ErrorCode: Failed to open settings at HKLM\Subkey.OperationalNN
103Error ErrorCode: Failed to read setting Name.OperationalNN
104Warning ErrorCode: SQL.OperationalYN
105Info ErrorCode: SQL.OperationalYN
106Error ErrorCode: Failed to write setting Name.OperationalNN
107CriticalError ErrorCode: SQL.OperationalNN
108Verbose ErrorCode: SQL.OperationalNN
200Error ErrorCode: Entity.OperationalNN
201Error ErrorCode: Entity.OperationalNN
202Error ErrorCode: Entity.OperationalNN
203Error ErrorCode: Entity.OperationalNN
204Error ErrorCode: Entity.OperationalNN
205Error ErrorCode: Entity.OperationalNN
206Error ErrorCode: Entity.OperationalNN
207Error ErrorCode: Entity.OperationalNN
208Error ErrorCode: Entity.OperationalNN
209Error ErrorCode: Entity.OperationalNN
210Error ErrorCode: Entity.OperationalNN
211Error ErrorCode: Entity.OperationalNN
212Error ErrorCode: Entity.OperationalNN
213Error ErrorCode: Entity.OperationalNN
214Blocking requests [Options=Options, ClientId=ProcessId].OperationalYN
215Unblocking requests [Options=Options, ClientId=ProcessId].OperationalNN
216StateRepository service started [ProcessId=ProcessId].OperationalYN
217StateRepository service stopped [ProcessId=ProcessId].OperationalNN
218Repository initialized [ProcessId=ProcessId].DebugNN
219Repository shutdown [ProcessId=ProcessId].DebugNN
220Error ErrorCode: Entity.OperationalNN
221ANALYZE command has run; database statistics are updated [Partition=Partition, …OperationalYN
222Error ErrorCode: StateRepository partition Partition creation failed …OperationalNN
223StateRepository partition Partition exists and ready for use …OperationalYN
224StateRepository partition Partition created [SchemaVersion=SchemaVersion].OperationalNN
225StateRepository partition Partition upgraded [SchemaVersion=FoundSchemaVersion …OperationalNN
226Error ErrorCode: Failed to raise Changed event on notification channel …OperationalNN
227Error ErrorCode: StateRepository service failed to start …OperationalNN
228The StateRepository service is starting.OperationalNN
229The StateRepository service is startingOperationalNN
230The StateRepository service is starting.OperationalNN
231RepositoryManagerServerUpgrade with options: Options.OperationalYN
232Error ErrorCode: Entity.OperationalNN
233Migration starting [Machine: Disposition=MachineDisposition, …OperationalNN
234Migration completed successfully [Machine: Disposition=MachineDisposition, …OperationalYN
235Migration completed: MigratorErrors migrators encountered errors [Machine: …OperationalNN
236Migrator 'Name' starting.OperationalNN
237Migrator 'Name' completed successfully.OperationalNN
238Migrator 'Name' encountered error ErrorCode.OperationalNN
239Error ErrorCode: Migration encountered an error during Phase.OperationalNN
240Error ErrorCode: Timeout exceeded accessing Filename: SQL.OperationalNN
241Error ErrorCode: Timeout exceeded because Filename is in use by ProcessIndex …OperationalNN
242Waiting TimeoutMSecmsec for requests in progress to complete.OperationalYN
243Waited ElapsedTimeMSecmsec for requests in progress to complete.OperationalYN
244Timeout exceeded waiting for requests in progress to complete …OperationalNN
245Maintenance has been performedOperationalYN
246Error ErrorCode: Maintenance encountered an error.OperationalNN
247PreImport: Issue [SchemaVersion=SchemaVersion, Found=Found, Deleted=Deleted, …OperationalNN
248Error ErrorCode: Failed to create setting Name.OperationalNN
249Error ErrorCode: Failed to delete setting Name.OperationalNN
250Error ErrorCode: Database corruption detected in partition Partition …OperationalNN
251Error ErrorCode: Failed to query StateRepository for PackageFamilyName for user …OperationalNN
252Error ErrorCode: Failed to scan Name for user UserSID.OperationalNN
253Error ErrorCode: Failed to delete Name for user UserSID.OperationalNN
254Error ErrorCode: Completed for user UserSID.OperationalNN
255Repairs have been performed for user UserSID [Options=Options, Found=Found, …OperationalNN
256Error ErrorCode: Repair for user UserSID encountered an error [Options=Options, …OperationalNN
257Repair deleted Context\Name for user UserSID.OperationalNN
258Repair detected unknown object Context\Name for user UserSID.OperationalNN
259Count invalid foreign keys detected for Entity.OperationalYN
260Count invalid foreign keys detected for Entity.OperationalNN
261Check repository integrity has been performed [Options=Options, …OperationalNN
262Error ErrorCode: Check repository integrity encountered an error …OperationalNN
263Fix repository integrity has been performed [Options=Options, …OperationalNN
264Error ErrorCode: Fix repository integrity encountered an error [Options=Options, …OperationalNN
265Checkpoint has been performedOperationalYN
266Error ErrorCode: Checkpoint encountered an error.OperationalNN
267Count invalid foreign keys corrected for Entity.OperationalYN
268Count invalid foreign keys corrected for Entity.OperationalNN
269SRCache successfully initialized [Options=Options].OperationalYN
270Error ErrorCode: SRCache initialization encountered an error [Options=Options].OperationalNN
271SRCache successfully updated [Options=Options].OperationalYN
272Error ErrorCode: SRCache update encountered an error [Options=Options].OperationalNN
273Check cache integrity has been performed [Options=Options, …OperationalNN
274Error ErrorCode: Check cache integrity encountered an error [Options=Options, …OperationalNN
275Count missing cache entries detected for Entity [Ids=Ids].OperationalNN
276Count unexpected cache entries detected for Entity [Ids=Ids].OperationalNN
277Invalid cache entry detected for Entity [Id=Id, Fields=Fields].OperationalNN
278Waiting for transaction from TransactionCallerId to complete before setting …OperationalNN
279Transaction from TransactionCallerId completed.OperationalNN
280PackageDependency: Category[Index of Count]: Id=Id, UserSid=UserSID, …OperationalNN
281PackageDependency Summary: Resolved=ResolvedCount, Transient=TransientCount, …OperationalNN
282Error ErrorCode: Failed to import package status for user UserSid and package …OperationalNN
283ImportPackageUserStatus completed with hr=ErrorCode.OperationalNN
284REINDEX command has run; database indices are updated [Partition=Partition, …OperationalYN
1000[P:ProcessId T:ThreadId] Profile: ElapsedTime msec to run SQL 'SQL'.DiagnosticNN

Event ID 100: Error ErrorCode: SQL.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: %2

Fields #

NameDescription
ErrorCode HexInt32
SQL AnsiString

Event ID 101: [P:ProcessId T:ThreadId] Trace: Executing SQL 'SQL'.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

[P:%2 T:%3] Trace: Executing SQL '%1'

Fields #

NameDescription
SQL AnsiString
ProcessId UInt32
ThreadId UInt32

Event ID 102: Error ErrorCode: Failed to open settings at HKLM\Subkey.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to open settings at HKLM\%2

Fields #

NameDescription
ErrorCode HexInt32
Subkey UnicodeString

Event ID 103: Error ErrorCode: Failed to read setting Name.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to read setting %2

Fields #

NameDescription
ErrorCode HexInt32
Name UnicodeString

Event ID 104: Warning ErrorCode: SQL.

#
Channel
Operational
Level
Warning
Task
StateRepository.Task.DataAccessLayer

Message #

Warning %1: %2

Fields #

NameDescription
ErrorCode HexInt32
SQL AnsiString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "89592015-D996-4636-8F61-066B5D4DD739",
    "event_source_name": "",
    "event_id": 104,
    "version": 0,
    "level": 3,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-02-12T04:58:02.340067+00:00",
    "event_record_id": 2326,
    "correlation": {
      "ActivityID": "43A6D212-9A2A-000C-4A21-A9432A9ADC01"
    },
    "execution": {
      "process_id": 9772,
      "thread_id": 11932
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "LAB-WIN11.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "ErrorCode": "0x80670007",
    "SQL": "[sqlite3_exec] #5 Database 258B8E48A70: Try 1 (351ms) {90C40975-20C3-4EE8-817F-925B82C1D262} Cpu:8 Mem:5 Io:2 TID:11968 database is locked : SQL BEGIN EXCLUSIVE /*02C51573-873D-451F-AA58-23BF3327583E*/;"
  },
  "message": ""
}

Event ID 105: Info ErrorCode: SQL.

#
Channel
Operational
Level
Informational
Task
StateRepository.Task.DataAccessLayer

Message #

Info %1: %2

Fields #

NameDescription
ErrorCode HexInt32
SQL AnsiString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 105,
    "version": 0,
    "level": 4,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-28T22:41:57.2143700+00:00",
    "event_record_id": 337,
    "correlation": {},
    "execution": {
      "process_id": 3696,
      "thread_id": 3996
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "ErrorCode": "0x11b",
    "SQL": "recovered 16 frames from WAL file C:\\ProgramData\\Microsoft\\Windows\\AppRepository\\StateRepository-Machine.srd-wal"
  },
  "message": "Info 0x11B: recovered 16 frames from WAL file C:\\ProgramData\\Microsoft\\Windows\\AppRepository\\StateRepository-Machine.srd-wal"
}

Event ID 106: Error ErrorCode: Failed to write setting Name.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to write setting %2

Fields #

NameDescription
ErrorCode HexInt32
Name UnicodeString

Event ID 107: CriticalError ErrorCode: SQL.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

CriticalError %1: %2

Fields #

NameDescription
ErrorCode HexInt32
SQL AnsiString

Event ID 108: Verbose ErrorCode: SQL.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Verbose %1: %2

Fields #

NameDescription
ErrorCode HexInt32
SQL AnsiString

Event ID 200: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method() failed [WorkId=WorkId].

Message #

Error %1: %2.%3() failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 201: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id, Revision=Revision) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5, Revision=%6) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64
Revision UInt64

Event ID 202: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64

Event ID 203: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64

Event ID 204: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method() failed [WorkId=WorkId].

Message #

Error %1: %2.%3() failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 205: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64

Event ID 206: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method failed [WorkId=WorkId].

Message #

Error %1: %2.%3 failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 207: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method() failed [WorkId=WorkId].

Message #

Error %1: %2.%3() failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 208: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64

Event ID 209: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method failed [WorkId=WorkId].

Message #

Error %1: %2.%3 failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 210: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method failed [WorkId=WorkId].

Message #

Error %1: %2.%3 failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 211: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method(Id=Id) failed [WorkId=WorkId].

Message #

Error %1: %2.%3(Id=%5) failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64
Id Int64

Event ID 212: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method failed [WorkId=WorkId].

Message #

Error %1: %2.%3 failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 213: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

Error ErrorCode: Entity.Method failed [ClientId=ClientId].

Message #

Error %1: %2.%3 failed [ClientId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
ClientId UInt32

Event ID 214: Blocking requests [Options=Options, ClientId=ProcessId].

#
Channel
Operational
Level
Warning
Task
StateRepository.Task.WinRTAPI

Message #

Blocking requests [Options=%1, ClientId=%2]

Fields #

NameDescription
Options HexInt32
ProcessId UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "89592015-D996-4636-8F61-066B5D4DD739",
    "event_source_name": "",
    "event_id": 214,
    "version": 0,
    "level": 3,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2023-10-25T22:55:29.458620+00:00",
    "event_record_id": 1169,
    "correlation": {},
    "execution": {
      "process_id": 2396,
      "thread_id": 6812
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "WinDevEval",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Options": "0x1",
    "ProcessId": 4544
  },
  "message": ""
}

References #

Event ID 215: Unblocking requests [Options=Options, ClientId=ProcessId].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Unblocking requests [Options=%1, ClientId=%2]

Fields #

NameDescription
Options HexInt32
ProcessId UInt32

Event ID 216: StateRepository service started [ProcessId=ProcessId].

#
Channel
Operational
Level
Informational
Task
StateRepository.Task.WinRTAPI

Message #

StateRepository service started [ProcessId=%1]

Fields #

NameDescription
ProcessId UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 216,
    "version": 0,
    "level": 4,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-29T16:33:17.2115459+00:00",
    "event_record_id": 381,
    "correlation": {},
    "execution": {
      "process_id": 3572,
      "thread_id": 3764
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "ProcessId": "3572"
  },
  "message": "StateRepository service started [ProcessId=3572]"
}

Event ID 217: StateRepository service stopped [ProcessId=ProcessId].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

StateRepository service stopped [ProcessId=%1]

Fields #

NameDescription
ProcessId UInt32

Event ID 218: Repository initialized [ProcessId=ProcessId].

#
Channel
Debug
Task
StateRepository.Task.WinRTAPI

Message #

Repository initialized [ProcessId=%1]

Fields #

NameDescription
ProcessId UInt32
ThreadId UInt32

Event ID 219: Repository shutdown [ProcessId=ProcessId].

#
Channel
Debug
Task
StateRepository.Task.WinRTAPI

Message #

Repository shutdown [ProcessId=%1]

Fields #

NameDescription
ProcessId UInt32
ThreadId UInt32

Event ID 220: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method() failed [WorkId=WorkId].

Message #

Error %1: %2.%3() failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 221: ANALYZE command has run; database statistics are updated [Partition=Partition, ProcessId=ProcessId, Scope=Scope].

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Message #

ANALYZE command has run; database statistics are updated [Partition=%1, ProcessId=%2, Scope=%3]

Fields #

NameDescription
Partition Int32
ProcessId UInt32
Scope AnsiString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 221,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-06-13T05:45:50.9535662+00:00",
    "event_record_id": 391,
    "correlation": {
      "ActivityID": "{C6821FB2-EF88-0003-695B-82C688EFDC01}"
    },
    "execution": {
      "process_id": 1492,
      "thread_id": 7976
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Partition": "2",
    "ProcessId": "1492"
  },
  "message": "ANALYZE command has run; database statistics are updated [Partition=2, ProcessId=1492]"
}

Event ID 222: Error ErrorCode: StateRepository partition Partition creation failed [Filename=Filename, Disposition=Disposition, FoundSchemaVersion=FoundSchemaVersion, TargetSchemaVersion=CreatedSchemaVersion].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: StateRepository partition %2 creation failed [Filename=%3, Disposition=%4, FoundSchemaVersion=%5, TargetSchemaVersion=%6]

Fields #

NameDescription
ErrorCode HexInt32
Partition Int32
Filename UnicodeString
Disposition Int32
FoundSchemaVersion Int32
CreatedSchemaVersion Int32

Event ID 223: StateRepository partition Partition exists and ready for use [SchemaVersion=SchemaVersion].

#
Channel
Operational
Level
Informational
Task
StateRepository.Task.WinRTAPI

Message #

StateRepository partition %1 exists and ready for use [SchemaVersion=%2]

Fields #

NameDescription
Partition Int32
SchemaVersion Int32
Filename UnicodeString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 223,
    "version": 0,
    "level": 4,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-29T16:33:06.4518409+00:00",
    "event_record_id": 370,
    "correlation": {},
    "execution": {
      "process_id": 3572,
      "thread_id": 3764
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Partition": "2",
    "SchemaVersion": "24064",
    "Filename": "C:\\ProgramData\\Microsoft\\Windows\\AppRepository\\StateRepository-Deployment.srd"
  },
  "message": "StateRepository partition 2 exists and ready for use [SchemaVersion=24064]"
}

Event ID 224: StateRepository partition Partition created [SchemaVersion=SchemaVersion].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

StateRepository partition %1 created [SchemaVersion=%2]

Fields #

NameDescription
Partition Int32
SchemaVersion Int32
Filename UnicodeString

Event ID 225: StateRepository partition Partition upgraded [SchemaVersion=FoundSchemaVersion -> SchemaVersion].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

StateRepository partition %1 upgraded [SchemaVersion=%3 -> %2]

Fields #

NameDescription
Partition Int32
SchemaVersion Int32
FoundSchemaVersion Int32
Filename UnicodeString

Event ID 226: Error ErrorCode: Failed to raise Changed event on notification channel ChannelName for user UserSid.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: Failed to raise Changed event on notification channel %2 for user %3

Fields #

NameDescription
ErrorCode HexInt32
ChannelName UnicodeString
UserSid UnicodeString

Event ID 227: Error ErrorCode: StateRepository service failed to start [Checkpoint=Checkpoint].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: StateRepository service failed to start [Checkpoint=%2]

Fields #

NameDescription
ErrorCode HexInt32
Checkpoint Int32

Event ID 228: The StateRepository service is starting.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

The StateRepository service is starting. The service's last known status cannot be determined [LastStatus=LastKnownStatus].

Message #

The StateRepository service is starting. The service's last known status cannot be determined [LastStatus=%1]

Fields #

NameDescription
LastKnownStatus Int32

Event ID 229: The StateRepository service is starting

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Fields #

NameDescription
LastKnownStatus Int32

Event ID 230: The StateRepository service is starting.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

The StateRepository service is starting. The service did not complete its shutdown work when previously active [LastStatus=LastKnownStatus].

Message #

The StateRepository service is starting. The service did not complete its shutdown work when previously active [LastStatus=%1]

Fields #

NameDescription
LastKnownStatus Int32

Event ID 231: RepositoryManagerServerUpgrade with options: Options.

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Message #

RepositoryManagerServerUpgrade with options: %1

Fields #

NameDescription
Options HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 231,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-06-13T05:39:37.6462549+00:00",
    "event_record_id": 389,
    "correlation": {},
    "execution": {
      "process_id": 3572,
      "thread_id": 2788
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Options": "0x1"
  },
  "message": "RepositoryManagerServerUpgrade with options: 0x1"
}

Event ID 232: Error ErrorCode: Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error ErrorCode: Entity.Method failed [WorkId=WorkId].

Message #

Error %1: %2.%3 failed [WorkId=%4]

Fields #

NameDescription
ErrorCode HexInt32
Entity AnsiString
Method AnsiString
WorkId Int64

Event ID 233: Migration starting [Machine: Disposition=MachineDisposition, PreviousVersion=PreviousMachineVersion, Deployment: Disposition=DeploymentDisposition, PreviousVersion=PreviousDeploymentVersion.

#
Channel
Operational
Task
StateRepository.Task.Migrate

Message #

Migration starting [Machine: Disposition=%1, PreviousVersion=%2, Deployment: Disposition=%3, PreviousVersion=%4

Fields #

NameDescription
MachineDisposition Int32
PreviousMachineVersion Int32
DeploymentDisposition Int32
PreviousDeploymentVersion Int32

Event ID 234: Migration completed successfully [Machine: Disposition=MachineDisposition, PreviousVersion=PreviousMachineVersion] [Deployment: Disposition=DeploymentDisposition, PreviousVersion=PreviousDeployment...

#
Channel
Operational
Level
Informational
Task
StateRepository.Task.Migrate

Description

Migration completed successfully [Machine: Disposition=MachineDisposition, PreviousVersion=PreviousMachineVersion] [Deployment: Disposition=DeploymentDisposition, PreviousVersion=PreviousDeploymentVersion].

Message #

Migration completed successfully [Machine: Disposition=%1, PreviousVersion=%2] [Deployment: Disposition=%3, PreviousVersion=%4]

Fields #

NameDescription
MachineDisposition Int32
PreviousMachineVersion Int32
DeploymentDisposition Int32
PreviousDeploymentVersion Int32
MigratorErrors Int32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "89592015-D996-4636-8F61-066B5D4DD739",
    "event_source_name": "",
    "event_id": 234,
    "version": 0,
    "level": 4,
    "task": 3,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2023-11-06T06:21:57.817957+00:00",
    "event_record_id": 1174,
    "correlation": {},
    "execution": {
      "process_id": 1496,
      "thread_id": 1516
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "WinDev2310Eval",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "MachineDisposition": 1,
    "PreviousMachineVersion": 0,
    "DeploymentDisposition": 1,
    "PreviousDeploymentVersion": 0,
    "MigratorErrors": 0
  },
  "message": ""
}

References #

Event ID 235: Migration completed: MigratorErrors migrators encountered errors [Machine: Disposition=MachineDisposition, PreviousVersion=PreviousMachineVersion] [Deployment: Disposition=DeploymentDisposition, Pr...

#
Channel
Operational
Task
StateRepository.Task.Migrate

Description

Migration completed: MigratorErrors migrators encountered errors [Machine: Disposition=MachineDisposition, PreviousVersion=PreviousMachineVersion] [Deployment: Disposition=DeploymentDisposition, PreviousVersion=PreviousDeploymentVersion].

Message #

Migration completed: %5 migrators encountered errors [Machine: Disposition=%1, PreviousVersion=%2] [Deployment: Disposition=%3, PreviousVersion=%4]

Fields #

NameDescription
MachineDisposition Int32
PreviousMachineVersion Int32
DeploymentDisposition Int32
PreviousDeploymentVersion Int32
MigratorErrors Int32

Event ID 236: Migrator 'Name' starting.

#
Channel
Operational
Task
StateRepository.Task.Migrate

Message #

Migrator '%1' starting

Fields #

NameDescription
Name UnicodeString

Event ID 237: Migrator 'Name' completed successfully.

#
Channel
Operational
Task
StateRepository.Task.Migrate

Message #

Migrator '%1' completed successfully

Fields #

NameDescription
Name UnicodeString

Event ID 238: Migrator 'Name' encountered error ErrorCode.

#
Channel
Operational
Task
StateRepository.Task.Migrate

Message #

Migrator '%2' encountered error %1

Fields #

NameDescription
ErrorCode HexInt32
Name UnicodeString

Event ID 239: Error ErrorCode: Migration encountered an error during Phase.

#
Channel
Operational
Task
StateRepository.Task.Migrate

Message #

Error %1: Migration encountered an error during %2

Fields #

NameDescription
ErrorCode HexInt32
Phase UnicodeString

Event ID 240: Error ErrorCode: Timeout exceeded accessing Filename: SQL.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Timeout exceeded accessing %2: %3

Fields #

NameDescription
ErrorCode HexInt32
Filename AnsiString
SQL AnsiString
TransactionCallerId GUID
Priorities UnicodeString

Event ID 241: Error ErrorCode: Timeout exceeded because Filename is in use by ProcessIndex process(es).

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Error : Timeout exceeded because is in use by process(es). Process[] = processid , application , package , executable , user username /, session , commandline.

Message #

Error %1: Timeout exceeded because %2 is in use by %3 process(es). Process[%4] = processid %5, application %6, package %7, executable %8, user %9 username %10/%11, session %12, commandline %13

Fields #

NameDescription
ErrorCode HexInt32
Filename AnsiString
ProcessIndex UInt32
ProcessCount UInt32
ProcessId UInt32
ApplicationUserModelId UnicodeString
PackageFullName UnicodeString
ExecutableName UnicodeString
UserSID UnicodeString
UserDomain UnicodeString
UserName UnicodeString
SessionId UInt32
CommandLine UnicodeString

Event ID 242: Waiting TimeoutMSecmsec for requests in progress to complete.

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.DataAccessLayer

Message #

Waiting %1msec for requests in progress to complete

Fields #

NameDescription
TimeoutMSec UInt64
ElapsedTimeMSec UInt64

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 242,
    "version": 0,
    "level": 5,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-06-13T05:22:34.5297625+00:00",
    "event_record_id": 391,
    "correlation": {},
    "execution": {
      "process_id": 3728,
      "thread_id": 7968
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-c.cell-c.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "TimeoutMSec": "5000",
    "ElapsedTimeMSec": "0"
  },
  "message": "Waiting 5000msec for requests in progress to complete"
}

Event ID 243: Waited ElapsedTimeMSecmsec for requests in progress to complete.

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.DataAccessLayer

Message #

Waited %2msec for requests in progress to complete

Fields #

NameDescription
TimeoutMSec UInt64
ElapsedTimeMSec UInt64

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 243,
    "version": 0,
    "level": 5,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-06-13T05:22:34.5297640+00:00",
    "event_record_id": 392,
    "correlation": {},
    "execution": {
      "process_id": 3728,
      "thread_id": 7968
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-c.cell-c.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "TimeoutMSec": "5000",
    "ElapsedTimeMSec": "0"
  },
  "message": "Waited 0msec for requests in progress to complete"
}

Event ID 244: Timeout exceeded waiting for requests in progress to complete [Timeout=TimeoutMSecmsec, Elapsed=ElapsedTimeMSecmsec].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Timeout exceeded waiting for requests in progress to complete [Timeout=%1msec, Elapsed=%2msec]

Fields #

NameDescription
TimeoutMSec UInt64
ElapsedTimeMSec UInt64

Event ID 245: Maintenance has been performed

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Fields #

NameDescription
ErrorCode HexInt32
MachineSize_Before Int64
MachineJournalSize_Before Int64
DeploymentSize_Before Int64
DeploymentJournalSize_Before Int64
MachineSize_After Int64
MachineJournalSize_After Int64
DeploymentSize_After Int64
DeploymentJournalSize_After Int64
MaintenancePerformed HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 245,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-29T16:33:16.8803327+00:00",
    "event_record_id": 379,
    "correlation": {},
    "execution": {
      "process_id": 3572,
      "thread_id": 3764
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "ErrorCode": "0x0",
    "MachineSize_Before": "1048576",
    "MachineJournalSize_Before": "0",
    "DeploymentSize_Before": "1048576",
    "DeploymentJournalSize_Before": "0",
    "MachineSize_After": "1048576",
    "MachineJournalSize_After": "0",
    "DeploymentSize_After": "1048576",
    "DeploymentJournalSize_After": "4096"
  },
  "message": "Maintenance has been performed"
}

Event ID 246: Error ErrorCode: Maintenance encountered an error.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: Maintenance encountered an error

Fields #

NameDescription
ErrorCode HexInt32
MachineSize_Before Int64
MachineJournalSize_Before Int64
DeploymentSize_Before Int64
DeploymentJournalSize_Before Int64
MachineSize_After Int64
MachineJournalSize_After Int64
DeploymentSize_After Int64
DeploymentJournalSize_After Int64
MaintenancePerformed HexInt32

Event ID 247: PreImport: Issue [SchemaVersion=SchemaVersion, Found=Found, Deleted=Deleted, Id(s)=Id].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

PreImport: %4 [SchemaVersion=%2, Found=%5, Deleted=%7, Id(s)=%6]

Fields #

NameDescription
Partition Int32
SchemaVersion Int32
Filename AnsiString
Issue UnicodeString
Found Int32
Id UnicodeString
Deleted Int32

Event ID 248: Error ErrorCode: Failed to create setting Name.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to create setting %2

Fields #

NameDescription
ErrorCode HexInt32
Name UnicodeString

Event ID 249: Error ErrorCode: Failed to delete setting Name.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to delete setting %2

Fields #

NameDescription
ErrorCode HexInt32
Name UnicodeString

Event ID 250: Error ErrorCode: Database corruption detected in partition Partition [Action=Action, Try#=Try, Elapsed=ElapsedTimeMSecmsec, Uptime=FirstReportedUptime, FirstReported=FirstReportedWhen].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Database corruption detected in partition %3 [Action=%2, Try#=%6, Elapsed=%7msec, Uptime=%8, FirstReported=%9]

Fields #

NameDescription
ErrorCode HexInt32
Action AnsiString
Partition Int32
Filename AnsiString
SQL AnsiString
Try UInt64
ElapsedTimeMSec UInt64
FirstReportedUptime UInt64
FirstReportedWhen UInt64

Event ID 251: Error ErrorCode: Failed to query StateRepository for PackageFamilyName for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to query StateRepository for %3 for user %2

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
PackageFamilyName UnicodeString

Event ID 252: Error ErrorCode: Failed to scan Name for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to scan %3 for user %2

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
Name UnicodeString

Event ID 253: Error ErrorCode: Failed to delete Name for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Failed to delete %3 for user %2

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
Name UnicodeString

Event ID 254: Error ErrorCode: Completed for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Completed for user %2

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString

Event ID 255: Repairs have been performed for user UserSID [Options=Options, Found=Found, Deleted=Deleted].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Repairs have been performed for user %2 [Options=%3, Found=%4, Deleted=%5]

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
Options HexInt32
Found UInt32
Deleted UInt32

Event ID 256: Error ErrorCode: Repair for user UserSID encountered an error [Options=Options, Found=Found, Deleted=Deleted].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: Repair for user %2 encountered an error [Options=%3, Found=%4, Deleted=%5]

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
Options HexInt32
Found UInt32
Deleted UInt32

Event ID 257: Repair deleted Context\Name for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Repair deleted %4\%3 for user %2

Fields #

NameDescription
ErrorCode HexInt32
UserSID UnicodeString
Name UnicodeString
Context UnicodeString

Event ID 258: Repair detected unknown object Context\Name for user UserSID.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Repair detected unknown object %3\%2 for user %1

Fields #

NameDescription
UserSID UnicodeString
Name UnicodeString
Context UnicodeString

Event ID 259: Count invalid foreign keys detected for Entity.

#
Channel
Operational
Level
Warning
Task
StateRepository.Task.DataAccessLayer

Description

Count invalid foreign keys detected for Entity.Field [Filename=Filename, Ids=Ids].

Message #

%5 invalid foreign keys detected for %1.%2 [Filename=%3, Ids=%6]

Fields #

NameDescription
Entity AnsiString
Field AnsiString
Filename AnsiString
SQL AnsiString
Count UInt64
Ids AnsiString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "89592015-D996-4636-8F61-066B5D4DD739",
    "event_source_name": "",
    "event_id": 259,
    "version": 0,
    "level": 3,
    "task": 1,
    "opcode": 0,
    "keywords": 4611756387171565569,
    "time_created": "2026-02-18T21:51:27.389192+00:00",
    "event_record_id": 2524,
    "correlation": {
      "ActivityID": "A84E255E-A05B-000B-B669-4EA85BA0DC01"
    },
    "execution": {
      "process_id": 9436,
      "thread_id": 316
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "LAB-WIN11.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Entity": "WowDependencyGraph",
    "Field": "DependentPackage",
    "Filename": "C:\\ProgramData\\Microsoft\\Windows\\AppRepository\\StateRepository-Machine.srd",
    "SQL": "SELECT COUNT(*), GROUP_CONCAT(rowid) FROM WowDependencyGraph WHERE (DependentPackage>0) AND (DependentPackage NOT IN (SELECT _PackageID FROM Package));",
    "Count": 2,
    "Ids": "303,304"
  },
  "message": ""
}

Event ID 260: Count invalid foreign keys detected for Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Count invalid foreign keys detected for Entity.Field [Filename=Filename, Ids=Ids].

Message #

%5 invalid foreign keys detected for %1.%2 [Filename=%3, Ids=%6]

Fields #

NameDescription
Entity AnsiString
Field AnsiString
Filename AnsiString
SQL AnsiString
Count UInt64
Ids AnsiString

Event ID 261: Check repository integrity has been performed [Options=Options, Disposition=Disposition, ErrorsDetected=ErrorCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Check repository integrity has been performed [Options=%2, Disposition=%3, ErrorsDetected=%4]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
Disposition Int32
ErrorCount UInt64

Event ID 262: Error ErrorCode: Check repository integrity encountered an error [Options=Options, Disposition=Disposition, ErrorsDetected=ErrorCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Check repository integrity encountered an error [Options=%2, Disposition=%3, ErrorsDetected=%4]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
Disposition Int32
ErrorCount UInt64

Event ID 263: Fix repository integrity has been performed [Options=Options, ErrorsCorrected=FixCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Fix repository integrity has been performed [Options=%2, ErrorsCorrected=%3]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
FixCount UInt64

Event ID 264: Error ErrorCode: Fix repository integrity encountered an error [Options=Options, ErrorsCorrected=FixCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Fix repository integrity encountered an error [Options=%2, ErrorsCorrected=%3]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
FixCount UInt64

Event ID 265: Checkpoint has been performed

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
MachineDatabase_Pages Int32
MachineDatabase_PagesCheckpointed Int32
DeploymentDatabase_Pages Int32
DeploymentDatabase_PagesCheckpointed Int32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 265,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611721202799476737,
    "time_created": "2026-05-28T22:41:57.3363970+00:00",
    "event_record_id": 338,
    "correlation": {},
    "execution": {
      "process_id": 3696,
      "thread_id": 3996
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "ErrorCode": "0x0",
    "Options": "0x0",
    "MachineDatabase_Pages": "0",
    "MachineDatabase_PagesCheckpointed": "0",
    "DeploymentDatabase_Pages": "0",
    "DeploymentDatabase_PagesCheckpointed": "0"
  },
  "message": "Checkpoint has been performed"
}

Event ID 266: Error ErrorCode: Checkpoint encountered an error.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: Checkpoint encountered an error

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
MachineDatabase_Pages Int32
MachineDatabase_PagesCheckpointed Int32
DeploymentDatabase_Pages Int32
DeploymentDatabase_PagesCheckpointed Int32

Event ID 267: Count invalid foreign keys corrected for Entity.

#
Channel
Operational
Level
Informational
Task
StateRepository.Task.DataAccessLayer

Description

Count invalid foreign keys corrected for Entity.Field [Filename=Filename].

Message #

%5 invalid foreign keys corrected for %1.%2 [Filename=%3]

Fields #

NameDescription
Entity AnsiString
Field AnsiString
Filename AnsiString
SQL AnsiString
Count UInt64

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "89592015-D996-4636-8F61-066B5D4DD739",
    "event_source_name": "",
    "event_id": 267,
    "version": 0,
    "level": 4,
    "task": 1,
    "opcode": 0,
    "keywords": 4611721202799476737,
    "time_created": "2026-02-18T21:51:27.416069+00:00",
    "event_record_id": 2526,
    "correlation": {
      "ActivityID": "A84E255E-A05B-000B-B669-4EA85BA0DC01"
    },
    "execution": {
      "process_id": 9436,
      "thread_id": 316
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "LAB-WIN11.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Entity": "WowDependencyGraph",
    "Field": "DependentPackage",
    "Filename": "C:\\ProgramData\\Microsoft\\Windows\\AppRepository\\StateRepository-Machine.srd",
    "SQL": "DELETE FROM WowDependencyGraph WHERE (DependentPackage>0) AND (DependentPackage NOT IN (SELECT _PackageID FROM Package));",
    "Count": 2
  },
  "message": ""
}

Event ID 268: Count invalid foreign keys corrected for Entity.

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Description

Count invalid foreign keys corrected for Entity.Field [Filename=Filename].

Message #

%5 invalid foreign keys corrected for %1.%2 [Filename=%3]

Fields #

NameDescription
Entity AnsiString
Field AnsiString
Filename AnsiString
SQL AnsiString
Count UInt64

Event ID 269: SRCache successfully initialized [Options=Options].

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Message #

SRCache successfully initialized [Options=%1]

Fields #

NameDescription
Options HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 269,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611721202799476737,
    "time_created": "2026-05-29T16:33:17.1805848+00:00",
    "event_record_id": 380,
    "correlation": {},
    "execution": {
      "process_id": 3572,
      "thread_id": 3764
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Options": "0x0"
  },
  "message": "SRCache successfully initialized [Options=0x0]"
}

Event ID 270: Error ErrorCode: SRCache initialization encountered an error [Options=Options].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: SRCache initialization encountered an error [Options=%2]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32

Event ID 271: SRCache successfully updated [Options=Options].

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Message #

SRCache successfully updated [Options=%1]

Fields #

NameDescription
Options HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "guid": "{89592015-D996-4636-8F61-066B5D4DD739}",
    "event_source_name": "",
    "event_id": 271,
    "version": 0,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "keywords": 4611721202799476737,
    "time_created": "2026-06-13T05:45:51.1407165+00:00",
    "event_record_id": 393,
    "correlation": {
      "ActivityID": "{C6821FB2-EF88-0004-9642-82C688EFDC01}"
    },
    "execution": {
      "process_id": 3572,
      "thread_id": 6416
    },
    "channel": "Microsoft-Windows-StateRepository/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Options": "0x0"
  },
  "message": "SRCache successfully updated [Options=0x0]"
}

Event ID 272: Error ErrorCode: SRCache update encountered an error [Options=Options].

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: SRCache update encountered an error [Options=%2]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32

Event ID 273: Check cache integrity has been performed [Options=Options, Disposition=Disposition, ErrorsDetected=ErrorCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Check cache integrity has been performed [Options=%2, Disposition=%3, ErrorsDetected=%4]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
Disposition Int32
ErrorCount UInt64

Event ID 274: Error ErrorCode: Check cache integrity encountered an error [Options=Options, Disposition=Disposition, ErrorsDetected=ErrorCount].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Error %1: Check cache integrity encountered an error [Options=%2, Disposition=%3, ErrorsDetected=%4]

Fields #

NameDescription
ErrorCode HexInt32
Options HexInt32
Disposition Int32
ErrorCount UInt64

Event ID 275: Count missing cache entries detected for Entity [Ids=Ids].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

%2 missing cache entries detected for %1 [Ids=%3]

Fields #

NameDescription
Entity AnsiString
Count UInt64
Ids AnsiString

Event ID 276: Count unexpected cache entries detected for Entity [Ids=Ids].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

%2 unexpected cache entries detected for %1 [Ids=%3]

Fields #

NameDescription
Entity AnsiString
Count UInt64
Ids AnsiString

Event ID 277: Invalid cache entry detected for Entity [Id=Id, Fields=Fields].

#
Channel
Operational
Task
StateRepository.Task.DataAccessLayer

Message #

Invalid cache entry detected for %1 [Id=%2, Fields=%3]

Fields #

NameDescription
Entity AnsiString
Id UInt64
Fields AnsiString

Event ID 278: Waiting for transaction from TransactionCallerId to complete before setting package status.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Waiting for transaction from %1 to complete before setting package status.

Fields #

NameDescription
TransactionCallerId GUID

Event ID 279: Transaction from TransactionCallerId completed.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

Transaction from TransactionCallerId completed. Proceeding to set package status.

Message #

Transaction from %1 completed. Proceeding to set package status.

Fields #

NameDescription
TransactionCallerId GUID

Event ID 280: PackageDependency: Category[Index of Count]: Id=Id, UserSid=UserSID, PackageFullName=PackageFullName, PD.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

PackageDependency: Category[Index of Count]: Id=Id, UserSid=UserSID, PackageFullName=PackageFullName, PD.PrimaryKey=PackageDependencyPrimaryKey, PD.User=PackageDependencyUser, PD.PackageFamilyName=PackageDependencyPackageFamilyName, PD.MinVersion=PackageDependencyMinVersion, PD.Architectures=PackageDependencyArchitectures, PD.LifetimeKind=PackageDependencyLifetimeKind, PD.LifetimeArtifact=PackageDependencyLifetimeArtifact, PD.Flags=PackageDependencyFlags, PD.ProcessId=PackageDependencyProcessId

Message #

PackageDependency: %1[%2 of %3]: Id=%4, UserSid=%5, PackageFullName=%6, PD.PrimaryKey=%7, PD.User=%8, PD.PackageFamilyName=%9, PD.MinVersion=%10, PD.Architectures=%11, PD.LifetimeKind=%12, PD.LifetimeArtifact=%13, PD.Flags=%14, PD.ProcessId=%15

Fields #

NameDescription
Category AnsiString
Index UInt32
Count UInt32
Id UnicodeString
UserSID UnicodeString
PackageFullName UnicodeString
PackageDependencyPrimaryKey Int64
PackageDependencyUser Int64
PackageDependencyPackageFamilyName UnicodeString
PackageDependencyMinVersion HexInt64
PackageDependencyArchitectures Int32
PackageDependencyLifetimeKind Int32
PackageDependencyLifetimeArtifact UnicodeString
PackageDependencyFlags HexInt32
PackageDependencyProcessId UInt32

Event ID 281: PackageDependency Summary: Resolved=ResolvedCount, Transient=TransientCount, Persisted=PersistedCount.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

PackageDependency Summary: Resolved=%1, Transient=%2, Persisted=%3

Fields #

NameDescription
ResolvedCount UInt32
TransientCount UInt32
PersistedCount UInt32

Event ID 282: Error ErrorCode: Failed to import package status for user UserSid and package PackageFullName.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Message #

Error %1: Failed to import package status for user %2 and package %3

Fields #

NameDescription
ErrorCode HexInt32
UserSid UnicodeString
PackageFullName UnicodeString

Event ID 283: ImportPackageUserStatus completed with hr=ErrorCode.

#
Channel
Operational
Task
StateRepository.Task.WinRTAPI

Description

ImportPackageUserStatus completed with hr=ErrorCode. Import succeeded for SuccessCount packages and failed for FailureCount packages.

Message #

ImportPackageUserStatus completed with hr=%1. Import succeeded for %2 packages and failed for %3 packages.

Fields #

NameDescription
ErrorCode HexInt32
SuccessCount UInt64
FailureCount UInt64

Event ID 284: REINDEX command has run; database indices are updated [Partition=Partition, ProcessId=ProcessId, Scope=Scope].

#
Channel
Operational
Level
Verbose
Task
StateRepository.Task.WinRTAPI

Message #

REINDEX command has run; database indices are updated [Partition=%1, ProcessId=%2, Scope=%3]

Fields #

NameDescription
Partition Int32
ProcessId UInt32
Scope AnsiString

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-StateRepository",
    "event_id": 284,
    "level": 5,
    "task": 2,
    "opcode": 0,
    "time_created": "2026-04-28T01:03:43.2761551+00:00",
    "computer": "DESKTOP-FF3N5XK.ludus.domain",
    "channel": "Microsoft-Windows-StateRepository"
  },
  "event_data": {
    "ProcessId": "3360",
    "Scope": "(database)",
    "Partition": "2"
  }
}

Event ID 1000: [P:ProcessId T:ThreadId] Profile: ElapsedTime msec to run SQL 'SQL'.

#
Channel
Diagnostic
Task
StateRepository.Task.DataAccessLayer

Message #

[P:%3 T:%4] Profile: %1 msec to run SQL '%2'

Fields #

NameDescription
ElapsedTime UInt32
SQL AnsiString
ProcessId UInt32
ThreadId UInt32

Provenance

ETW provider GUID 89592015-d996-4636-8f61-066b5d4dd739

Defined in Windows.StateRepository.dll, which carries the event manifest.

  • WS2022-20348.4893, schema read from the registered manifest, binary version 10.0.20348.1, captured 2026-06-02 — Manifest XML pack, 1.9 MB
  • Win11-26200.6584, schema read from the registered manifest, binary version 10.0.26100.4484, captured 2026-06-02 — Manifest XML pack, 2.0 MB