xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField Sales & SFACRMRewardsClaimsInventoryProcurementWarehouse ManagementField ServiceServiceSupportTelephony & MessagingFinance & AccountingPayrollExpense ManagementCommercePortalsAnalytics & ReportingData StudioMobile AppSee all products →
PLATFORM
Platform overviewApp BuilderAutomationIntegrationsSecurity & GovernanceChange ManagementDevelopers
SENSE AI
Sense AI overviewSense AssistSense ControlSense VisionAI StudioTrust & governanceIn Claude & ChatGPTUse cases
SOLUTIONS
Auto DMSConsumer Goods DMSSales Force Automation (SFA) FMCG & DistributionManufacturing & Dealer NetworksAutomotive & DealershipsPharma & HealthcareConsumer DurablesAgri-InputsBuilding MaterialsService NetworksWarehousing & 3PLFinancial AccountingERP SoftwareIndia GST ComplianceUAE VAT & e-InvoicingSaudi ZATCA & VATAll solutions →
RESOURCES
Knowledge CenterDeveloper & CLIBlogGuidesWhat is xMatix?Company facts
COMPANY
AboutCareersPartnersEventsContactAuthorsLegal
Sign in Request demo
Home/Docs/Entity Reference/Conversion Batch — entity reference
REFERENCE · Last reviewed

Conversion Batch — entity reference

A conversion batch is one submission from a Bulk Conversion screen: a set of source documents or lines (for example order lines) being converted into their next document (for example invoices) in the background. Submitting reserves each line's quantity in the conversion's quantity pool, so the same units cannot be promised twice, and queues the batch. A worker then runs the conversion's per-record action in chunks and records the outcome on one batch line per source line. A submission spanning several companies or branches becomes one batch per company and branch. Batches are created only by the conversion engine, never typed in by hand. Users follow them under Recent runs or on the batch record, where Retry Failed Lines and Cancel Batch are available. Target documents already created are never removed by cancelling or failing a batch.

Fields

FieldLabelTypeRequiredWhat it does
ActionNameActionTextThe server action that staged the batch, taken from the definition's Batch Action Name.
AttemptCountAttemptsNumberWhole-batch execution attempts used so far.
BatchIdBatchIdLookup → ConversionBatchLine
CancelledLinesCancelled LinesNumberLines released by Cancel Batch, by cancellation at a chunk boundary, or by deleting the batch.
ChunkSizeChunk SizeNumberLines per execution transaction, copied from the definition's Chunk Size (default 50).
CompletedUtcCompletedDateAndTimeWhen the batch reached a final status.
ConversionKeyConversionTextThe conversion definition's key (its Name), for example sales.order-to-invoice. The batch looks the definition up by this key when it runs and when it is retried, so a deactivated or removed definition stops its batches being retried.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated OnDateAndTimeYes
ErrorMessageErrorLongMultiLineTextWhy the batch or its last attempt failed. For a mixed or failed result without a more specific error, a summary of failed, succeeded and skipped line counts.
FailedLinesFailed LinesNumberLines that failed for good: a validation failure, a missing record or action, or attempts used up. Retry Failed Lines puts them back to pending when quantity is still available.
FromDateFrom DateDateNot recorded on batches; the date range used on the screen is not stored.
IdIdGuidYes
IdempotencyKeySubmission KeyTextThe submission key sent by the screen. Every call of one submission joins the same batch, and a repeated submission finds its quantity already reserved, so nothing converts twice.
JobRunIdJob RunGuidThe background job run that executed the batch, for finding it under Setup, Platform, Monitoring, Jobs.
LabelLabelTextDisplay name of the batch, defaulted to the conversion's display name.
LeaseExpiryUtcLease ExpiryDateAndTimeWhen the current worker's claim lapses.
LeaseOwnerLease OwnerTextThe worker currently holding the batch. If that worker stops, another worker reclaims the batch once the lease expires; finished chunks are not redone.
MaxAttemptsMax AttemptsNumberWhole-batch attempts allowed (default 3). After a failed attempt the batch waits 2, 4, 8 minutes and so on, at most 30, before the next one.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameTextYesThe batch number. Taken from the Conversion Batch document numbering when a series is set up, otherwise a generated number starting with CVB.
NextAttemptUtcNext AttemptDateAndTimeEarliest time a failed batch may be attempted again.
OptionsJsonOptionsLongMultiLineTextThe conversion options chosen on the screen when the batch was submitted.
OwnerIdOwnerLookup → UserAccountYes
PayloadJsonPayloadLongMultiLineTextThe staging arguments as submitted, kept for troubleshooting.
PendingLinesPending LinesNumberLines still waiting or being processed.
PendingQuantityFieldPending Quantity FieldTextThe source-line field that holds the quantity still to convert, for example the pending invoice quantity on an order line.
PriorityPriorityNumberOrder in which waiting batches are picked up; lower runs first. Default 100.
ProcessingModeProcessing ModePickListRecordLevel when whole records were submitted and every available line converts; LineLevel when the user picked individual lines, which then convert at the quantities picked.
QuantityPoolQuantity PoolTextThe reservation pool the batch holds quantity in, from the definition. Conversions consuming the same pending-quantity field share a pool, so a line held by one batch shows as held to every conversion in the pool.
QueuedUtcQueuedDateAndTimeWhen the batch was staged.
RecordTypeIdRecord TypeGuid, hidden
RequestedByIdRequested ByLookupNot recorded on batches.
RequestedByNameRequested By NameTextNot recorded on batches.
ScopeAccountIdAccountLookupNot recorded on batches. Batches record only the company and branch their records belong to.
ScopeBranchIdBranchLookupNot recorded under this name. Batches record the branch every record belongs to in Branch, blank when they span several.
ScopePartnerAccountIdPartner AccountLookupNot recorded under this name. Batches record the company every record belongs to in Partner Account, blank when they span several.
SkippedLinesSkipped LinesNumberLines with nothing left to convert, quantity held by another batch, or an action that produced no target document. Not an error; a batch of only skipped lines ends Completed.
SourceEntityNameSource EntityTextThe entity the batch converts from, kept on the batch so an old batch still reads correctly.
SourceLineEntityNameSource Line EntityTextThe line entity of the source document.
StartedUtcStartedDateAndTimeWhen a worker first claimed the batch.
StatusStatusPickListLifecycle of the batch, set only by the engine. Draft: being filled by a select-all run and not yet runnable. Scheduled: reserved and waiting for its run time. Queued: waiting for a worker. Processing: being converted. Cancelling: cancel requested, stops at the next chunk. Completed: no line failed (skipped lines do not count as failures). CompletedWithErrors: some lines failed and some succeeded. Failed: lines failed and none succeeded, or the batch itself could not run (it is retried after a backoff while attempts remain). Cancelled: stopped by a user or every line cancelled.
SubscriptionKeySubscription KeyGuid, hiddenYes
SucceededLinesSucceeded LinesNumberLines whose record converted and produced a target document.
TargetEntityNameTarget EntityTextThe entity the batch creates.
ToDateTo DateDateNot recorded on batches; the date range used on the screen is not stored.
TotalLinesTotal LinesNumberNumber of batch lines, including lines staged as Skipped.
TotalProcessedQuantityProcessed QuantityDecimalTotal quantity converted. A succeeded line is credited with the quantity it requested, because the conversion action reports success per record, not per line.
TotalRequestedQuantityRequested QuantityDecimalTotal quantity actually reserved at submission, counting only lines that were reserved.
UpdatedDateTimeUpdated OnDateAndTimeYes
ValidationMessageValidation MessageLongMultiLineTextNot recorded on the batch. Validation messages are kept per line, on each batch line.

Actions

ActionLabelTypeWhat it does
CancelBatchCancel BatchServerAction (CancelBatch)Cancels a Queued or Scheduled batch at once and releases its pending lines' quantity; a Processing batch moves to Cancelling and stops at its next chunk. A finished batch is left as it is. Target documents already created are kept.
GetConversionsGet ConversionsServerAction (GetConversions)Record-less. Returns the active conversion definitions, which the Bulk Conversion screen reads when it loads.
GetHeldQuantitiesGet Held QuantitiesServerAction (GetHeldQuantities)Record-less. Returns the quantity open batches hold per source line, which the screen subtracts to show what is still available.
RetryFailedLinesRetry Failed LinesServerAction (RetryFailedLines)Puts Failed lines back to Pending and re-queues the batch. Each line is re-checked against the source's current pending quantity less what other batches hold, and retried for at most what it originally asked; a line with nothing left stays Failed with the numbers in its error. Refused while the batch is Scheduled or when its conversion is no longer registered.