KVSFCYCalculationBatchErrorLog#
Fields#
| Name | Type | Note |
|---|---|---|
| Calc. Batch Entry No. | Integer | |
| Source Table Name | Option | OptionMembers: Item,Production Order |
| Entry No. | Integer | |
| Error Description | Text[250] | |
| Table ID | Integer | |
| Table Position | Text[250] |
Procedures#
Caption() : Text#
Summary: Generates a descriptive caption for the calculation batch error log entry. This procedure creates a formatted string that combines the source table name, calculation batch entry number, and calculation batch description to provide a meaningful identifier for error log entries. Used primarily for display purposes in lists and forms to help users identify specific error contexts.
procedure Caption(): Text
Returns: A formatted text string containing the source table name, batch entry number, and batch description.
SetCalcBatchEntryNo(Option, Integer) :#
Summary: Initializes the calculation batch error log record for a specific calculation batch entry. This procedure sets up the record with the source table type and calculation batch entry number, positioning it to the last entry in the specified batch to prepare for adding new error entries. Used when starting error logging for a particular calculation batch operation.
procedure SetCalcBatchEntryNo(sourceTableNamePar: Option; calcBatchEntryNoPar: Integer):
Parameters:
sourceTableNamePar: The source table type for the calculation batch (Item or Production Order).calcBatchEntryNoPar: The calculation batch entry number to associate error log entries with.
SetError(Text[250], Integer, Text) :#
Summary: Records a calculation error in the batch error log if it has not already been logged. This procedure creates a new error log entry with the specified error description, table ID, and table position. Duplicate errors are automatically prevented by checking if the same error description already exists for the current batch. Used during calculation processes to log and track errors for later analysis and troubleshooting.
procedure SetError(theErrorPar: Text[250]; theTableIDPar: Integer; theTablePositionPar: Text):
Parameters:
theErrorPar: The error description text to be logged (maximum 250 characters).theTableIDPar: The database table ID where the error occurred, used for drill-down navigation.theTablePositionPar: The specific record position within the table where the error occurred.
ShowError() :#
Summary: Opens the appropriate page to display the record where the calculation error occurred. This procedure provides drill-down functionality by determining the source table type and opening the corresponding Business Central page to show the specific record that caused the error. Supports various table types including items, production orders, BOMs, routings, and calculation conditions. Used for error investigation and troubleshooting by providing direct navigation to problematic records.
procedure ShowError():