Table
Batch
Batch transactions
Holds batch tasks, one record per task in a batch job. Each task has a class, parameters, a status, run times, retry settings and the user who ran it. It links to BatchJob, BatchGroup, the company, the server and the user.
- Table name
Batch- 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 (33)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AutomaticTransactionShows whether a transaction starts automatically for the task. | EnumNoYes (enum) | No | None | |
BatchJobIdRecord ID of the batch job the task belongs to. | Int64RefRecId | Yes | BatchJob.RecId | None |
CaptionDescription of the task. | String (200)BatchCaption | No | None | |
ClassNumberNumber of the class that the task runs. | IntegerClassId | Yes | None | |
CompanyCompany the task runs in. | StringSelectableDataArea | Yes | None | |
ConstraintTypeShows whether all or any of the task conditions must be met. | EnumBatchConstraintType (enum) | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataPartitionData partition the task belongs to. | StringPartitionKey | Yes | 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 | |
GroupIdBatch group the task is assigned to. | StringBatchGroupId | No | BatchGroup.Group | None |
IgnoreOnFailShows whether a failure of this task is ignored. | EnumNoYes (enum) | No | None | |
InfoStored infolog messages from the task run. | ContainerInfologData | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ParametersStored parameters for 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 | |
PrivateTaskShows whether the task is private. | EnumNoYes (enum) | 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 so far. | IntegerBatchRetries | No | None | |
RunTimeTaskShows whether this is a runtime task. | Enumboolean (enum) | No | None | |
RunTypeShows whether the task runs on the client or the server. | EnumBatchRunType (enum) | No | None | |
ServerIdName of the AOS instance that runs the task. | String (100)ServerId | No | None | |
SessionIdxID of the session running the task. | IntegerSessionId | No | None | |
SessionLoginDateTimeUTC timestamp of the session login. | UtcDateTimeUTCTimestamp | No | None | |
StartDateTimeDate and time the task started. | UtcDateTimeStartDateTime | No | None | |
StatusCurrent status of the task, such as waiting, executing, error or ended. | 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 (11)
BatchIdxBatchJobId,Status,modifiedDateTime,IgnoreOnFail,ClassNumberNot unique.
DEL_RecIdNot unique.
SessionIdxSessionIdx,SessionLoginDateTime,Status,ServerIdNot unique.
BatchJobIdBatchJobId,RunTimeTask,RecVersion,Status,IgnoreOnFail,Caption,ServerId,ClassNumber,Company,EndDateTime,ExceptionCode,ExecutedBy,SessionIdx,SessionLoginDateTime,StartDateTime,RetriesOnFailure,RetryCount,RunType,Priority,DataPartitionNot unique.
StatususerGroupId,Status,RunType,createdBy,PriorityNot unique.
ClassNumberIdxClassNumber,BatchJobId,CreatedDateTime,Status,StartDateTimeNot unique.
StatusConstraintTypeIdxStatus,ConstraintType,BatchJobId,modifiedDateTimeNot unique.
BatchJobIdGroupIdNot unique.
SelectNextTaskStatus,DataPartition,RunType,BatchJobId,Caption,ClassNumber,Company,ConstraintType,ExecutedBy,GroupId,Priority,ServerId,SessionIdx,ModifiedDateTime,CreatedBy,RecId,retriesOnFailure,retryCount,SessionLoginDateTime,StartDateTime,EndDateTime,RecVersionNot unique.
ServerIdStatusServerId,Status,RecVersion,RunTimeTask,retryCount,DataPartition,retriesOnFailure,EndDateTime,BatchJobIdNot unique.
BatchJobIdStatusCoveringIdxBatchJobId,Status,ClassNumber,GroupId,modifiedDateTime,IgnoreOnFailNot unique.
Relations (6)
Each relation joins Batch to another table on the fields shown.
BatchGroup→BatchGroupJoin on
GroupId = BatchGroup.GroupMany Batch records → zero or one BatchGroup record
BatchJob→BatchJobJoin on
BatchJobId = BatchJob.RecIdMany Batch records → exactly one BatchJob record
DataAreaRelation→DataAreaJoin on
Company = DataArea.id,DataArea.isVirtual = nullMany Batch records → exactly one DataArea record
PartitionRelation→PartitionsJoin on
DataPartition = Partitions.PartitionKeyMany Batch records → exactly one Partitions record
SysServerConfig→SysServerConfigJoin on
ServerId = SysServerConfig.ServerIdCardinality not set in the metadata.
UserInfo→UserInfoJoin on
ExecutedBy = UserInfo.idMany Batch records → zero or one UserInfo record
Get this data out
No public entity reads from Batch. Its data is only reachable through the application, a custom entity or a database export.
Need help with Batch in a report, an integration or a migration? Talk to Dr Dynamics.