Table

BatchHistory

Batch tasks history

Holds the history of batch tasks that have run. It copies the main details of a Batch task, such as class, status, times, parameters and user. It links to Batch, BatchJob and BatchJobHistory.

Table name
BatchHistory
Module
System administration
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
ApplicationPlatform

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BatchIdRecord ID of the original batch task.Int64
RefRecId
NoBatch.RecIdNone
BatchJobHistoryIdRecord ID of the batch job history this task belongs to.Int64
RefRecId
NoBatchJobHistory.RecIdNone
BatchJobIdRecord ID of the batch job.Int64
RefRecId
NoBatchJob.RecIdNone
CaptionDescription of the task.String (200)
BatchCaption
NoNone
ClassNumberNumber of the class that the task ran.Integer
ClassId
NoNone
CompanyCompany the task ran in.String
SelectableDataArea
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataPartitionData partition the task belonged to.String
PartitionKey
NoNone
EndDateTimeDate and time the task ended.UtcDateTime
EndDateTime
NoNone
ExceptionCodeCode of the exception raised by the task.Enum
Exception (enum)
NoNone
ExecutedByUser who ran the task.String
UserId
NoNone
InfoStored infolog messages from the task run.Container
InfologData
NoNone
ParametersStored parameters of the task.Container
BatchParameters
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriorityPriority number of the task.Integer
BatchPriority
NoNone
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
retriesOnFailureMaximum number of retries after a failure.Integer
BatchRetries
NoNone
retryCountNumber of retries made.Integer
BatchRetries
NoNone
RuntimeTaskShows whether this was a runtime task.Enum
boolean (enum)
NoNone
RunTypeShows whether the task ran on the client or the server.Enum
BatchRunType (enum)
NoNone
ServerIdName of the AOS instance that ran the task.String (100)
ServerId
NoNone
SessionIdxID of the session that ran the task.Integer
SessionId
NoNone
SessionLoginDateTimeDate and time of the session login.UtcDateTime
SessionLoginDateTime
NoNone
StartDateTimeDate and time the task started.UtcDateTime
StartDateTime
NoNone
StatusFinal status of the task, such as ended, error or canceled.Enum
BatchStatus (enum)
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (8)

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

  • BatchJobHistoryRelation → BatchJobHistory

    Join on BatchJobHistoryId = BatchJobHistory.RecId

    Many BatchHistory records → zero or one BatchJobHistory record

  • BatchJobRelation → BatchJob

    Join on BatchJobId = BatchJob.RecId

    Many BatchHistory records → zero or one BatchJob record

  • BatchRelation → Batch

    Join on BatchId = Batch.RecId

    Many BatchHistory records → zero or one Batch record

  • DataArea → DataArea

    Join on Company = DataArea.id, DataArea.isVirtual = null

    Many BatchHistory records → zero or one DataArea record

  • DataAreaRelation → DataArea

    Join on Company = DataArea.id

    Many BatchHistory records → zero or one DataArea record

  • PartitionRelation → Partitions

    Join on DataPartition = Partitions.PartitionKey

    Many BatchHistory records → exactly one Partitions record

  • SysServerConfig → SysServerConfig

    Join on ServerId = SysServerConfig.ServerId

    Cardinality not set in the metadata.

  • UserInfo → UserInfo

    Join on ExecutedBy = UserInfo.id

    Many BatchHistory records → zero or one UserInfo record

Get this data out

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

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

Email sales@drdynamics.co.uk