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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BatchIdRecord ID of the original batch task. | Int64RefRecId | No | Batch.RecId | None |
BatchJobHistoryIdRecord ID of the batch job history this task belongs to. | Int64RefRecId | No | BatchJobHistory.RecId | None |
BatchJobIdRecord ID of the batch job. | Int64RefRecId | No | BatchJob.RecId | None |
CaptionDescription of the task. | String (200)BatchCaption | No | None | |
ClassNumberNumber of the class that the task ran. | IntegerClassId | No | None | |
CompanyCompany the task ran in. | StringSelectableDataArea | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataPartitionData partition the task belonged to. | StringPartitionKey | No | None | |
EndDateTimeDate and time the task ended. | UtcDateTimeEndDateTime | No | None | |
ExceptionCodeCode of the exception raised by the task. | EnumException (enum) | No | None | |
ExecutedByUser who ran the task. | StringUserId | No | None | |
InfoStored infolog messages from the task run. | ContainerInfologData | No | None | |
ParametersStored parameters of the task. | ContainerBatchParameters | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriorityPriority number of the task. | IntegerBatchPriority | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
retriesOnFailureMaximum number of retries after a failure. | IntegerBatchRetries | No | None | |
retryCountNumber of retries made. | IntegerBatchRetries | No | None | |
RuntimeTaskShows whether this was a runtime task. | Enumboolean (enum) | No | None | |
RunTypeShows whether the task ran on the client or the server. | EnumBatchRunType (enum) | No | None | |
ServerIdName of the AOS instance that ran the task. | String (100)ServerId | No | None | |
SessionIdxID of the session that ran the task. | IntegerSessionId | No | None | |
SessionLoginDateTimeDate and time of the session login. | UtcDateTimeSessionLoginDateTime | No | None | |
StartDateTimeDate and time the task started. | UtcDateTimeStartDateTime | No | None | |
StatusFinal status of the task, such as ended, error or canceled. | EnumBatchStatus (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
BatchJobHistoryNot unique.
BatchJobNot unique.
BatchNot unique.
Relations (8)
Each relation joins BatchHistory to another table on the fields shown.
BatchJobHistoryRelation→BatchJobHistoryJoin on
BatchJobHistoryId = BatchJobHistory.RecIdMany BatchHistory records → zero or one BatchJobHistory record
BatchJobRelation→BatchJobJoin on
BatchJobId = BatchJob.RecIdMany BatchHistory records → zero or one BatchJob record
BatchRelation→BatchJoin on
BatchId = Batch.RecIdMany BatchHistory records → zero or one Batch record
DataArea→DataAreaJoin on
Company = DataArea.id,DataArea.isVirtual = nullMany BatchHistory records → zero or one DataArea record
DataAreaRelation→DataAreaJoin on
Company = DataArea.idMany BatchHistory records → zero or one DataArea record
PartitionRelation→PartitionsJoin on
DataPartition = Partitions.PartitionKeyMany BatchHistory records → exactly one Partitions record
SysServerConfig→SysServerConfigJoin on
ServerId = SysServerConfig.ServerIdCardinality not set in the metadata.
UserInfo→UserInfoJoin on
ExecutedBy = UserInfo.idMany 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.