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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AutomaticTransactionShows whether a transaction starts automatically for the task.Enum
NoYes (enum)
NoNone
BatchJobIdRecord ID of the batch job the task belongs to.Int64
RefRecId
YesBatchJob.RecIdNone
CaptionDescription of the task.String (200)
BatchCaption
NoNone
ClassNumberNumber of the class that the task runs.Integer
ClassId
YesNone
CompanyCompany the task runs in.String
SelectableDataArea
YesNone
ConstraintTypeShows whether all or any of the task conditions must be met.Enum
BatchConstraintType (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataPartitionData partition the task belongs to.String
PartitionKey
YesNone
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
GroupIdBatch group the task is assigned to.String
BatchGroupId
NoBatchGroup.GroupNone
IgnoreOnFailShows whether a failure of this task is ignored.Enum
NoYes (enum)
NoNone
InfoStored infolog messages from the task run.Container
InfologData
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ParametersStored parameters for 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
PrivateTaskShows whether the task is private.Enum
NoYes (enum)
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 so far.Integer
BatchRetries
NoNone
RunTimeTaskShows whether this is a runtime task.Enum
boolean (enum)
NoNone
RunTypeShows whether the task runs on the client or the server.Enum
BatchRunType (enum)
NoNone
ServerIdName of the AOS instance that runs the task.String (100)
ServerId
NoNone
SessionIdxID of the session running the task.Integer
SessionId
NoNone
SessionLoginDateTimeUTC timestamp of the session login.UtcDateTime
UTCTimestamp
NoNone
StartDateTimeDate and time the task started.UtcDateTime
StartDateTime
NoNone
StatusCurrent status of the task, such as waiting, executing, error or ended.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 (11)

Relations (6)

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

  • BatchGroup → BatchGroup

    Join on GroupId = BatchGroup.Group

    Many Batch records → zero or one BatchGroup record

  • BatchJob → BatchJob

    Join on BatchJobId = BatchJob.RecId

    Many Batch records → exactly one BatchJob record

  • DataAreaRelation → DataArea

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

    Many Batch records → exactly one DataArea record

  • PartitionRelation → Partitions

    Join on DataPartition = Partitions.PartitionKey

    Many Batch 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 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.

Email sales@drdynamics.co.uk