Table

AuditPolicyRuleViolation

Audit policy rule violation

Records audit policy rule violations. Each row links a violation to a batch job and a case. It also shows the policy execution time and an instance ID. It has no key defined in the metadata.

Table name
AuditPolicyRuleViolation
Module
Compliance and internal controls
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BatchJobBatch job linked to the violation.Int64
RefRecId
YesBatchJob.RecIdNone
CaseDetailBaseCase linked to the violation.Int64
RefRecId
NoCaseDetailBase.RecIdNone
InstanceIDIdentifier of the instance, up to 20 characters.String (20)
Num
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyExecutionTimestampUTC date and time when the policy was run.UtcDateTime
UTCTimestamp
YesNone
PolicySourceDocumentRuleViolationPolicy source document rule violation record that this row refers to.Int64
RefRecId
YesSysPolicySourceDocumentRuleViolation.RecIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

Each relation joins AuditPolicyRuleViolation to another table on the fields shown.

  • BatchJobFK → BatchJob

    Join on BatchJob = BatchJob.RecId

    Many AuditPolicyRuleViolation records → exactly one BatchJob record

  • CaseDetailBaseFK → CaseDetailBase

    Join on CaseDetailBase = CaseDetailBase.RecId

    Many AuditPolicyRuleViolation records → zero or one CaseDetailBase record

  • SourceDocumentRuleViolationFK → SysPolicySourceDocumentRuleViolation

    Join on PolicySourceDocumentRuleViolation = SysPolicySourceDocumentRuleViolation.RecId

    Many AuditPolicyRuleViolation records → exactly one SysPolicySourceDocumentRuleViolation record

Get this data out

No public entity reads from AuditPolicyRuleViolation. Its data is only reachable through the application, a custom entity or a database export.

Need help with AuditPolicyRuleViolation in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk