Skip to main content

I1541

// Generated display declaration:
I1541 = 1541

// Effective Pascal Script type and value:
const I1541: String = '1541';

Example

procedure ScriptEvent(var Value: variant);
var
IssueCode: string;
IssueNum: integer;
begin
IssueCode := I1541; // '1541'
IssueNum := StrToInt(IssueCode); // identifies the result; creates nothing
Value := IssueCode + ':' + IntToStr(IssueNum);
end;

Usage

I1541 is the script-visible String code '1541' for Issue 1541 (Price Level Code Auto Created).

Meaning and evidence boundary

This definition is specifically Price Level Code Auto Created; its route points to /Administration/Product. Do not shorten its meaning to generic Product auto-creation.

The text Auto Created describes the intended event represented by the Issue row. It is not an instruction and is not evidence on its own. A caller should emit this code only after the relevant creation path reports success and should add the new record key, supplied code, creation scope and any defaults that were applied.

The family is sparse. Missing numbers correspond to entities for which no named auto-created member is exposed; gaps are not reserved callable values. Do not calculate I1541 from another issue family or invent constants for absent members.

String versus integer issue parameters

GetIssueLevel, InvoiceIssue and the reusable Scriptlet's local CreateIssue take integer issue numbers even though this constant is String.

TextCode := I1541; // exact text '1541'
Level := GetIssueLevel(1541); // integer API, preferred literal
Level := GetIssueLevel(StrToInt(I1541)); // explicit shared conversion

Do not depend on implicit String-to-integer coercion. The compiled constant converts deterministically; external text needs normal conversion-error handling.

Additional Technical Info

I1541 is the script-visible String constant '1541' for the fresh-build VxData Issue definition Price Level Code Auto Created. It records a diagnostic identity for a creation outcome; evaluating or assigning the constant does not create price level master data.

The generated index displays I1541 = 1541 without quotes. Native source and the Pascal Script import supply digit text. The example was source-reviewed and not executed against VxData or any creation helper.

Declaration and fresh-build definition

PropertyDefault/source value
Script type/valueString / '1541'
Integer Issue.Num after conversion1541
Fresh-build Issue.Code1541
Fresh-build descriptionPrice Level Code Auto Created
Fresh-build Issue.Status1Status_Success
Fresh-build AdminUrl/Administration/Product
Reported entity/outcomePrice Level Code / auto-created

Severity discrepancy and live configuration

The introducing v1.15 upgrade inserts Issue 1541 with status 2/Warning. The current fresh-build Table_Issue.sql defines it as status 1/Success. Source history therefore does not guarantee a customer's live value: upgraded, fresh-built and customised databases can differ. Query or inspect the live Issue row when severity affects map behavior.

GetIssueLevel(1541) reads live Issue.Status and returns 6/Error if the row is absent. That fallback does not recreate the definition or prove the described record was created. The issue queue compares numeric levels; status 1 can be numerically displaced by higher values even though its label is Success.

Creation, logging and persistence boundaries

No representative runtime consumer of this named constant was found at the reviewed product baseline beyond declaration and script registration. Product helpers may create master data through other code paths, but the constant itself contains no function reference or payload.

The reusable Scriptlet's local CreateIssue always calls LogIssue and optionally inserts the supplied number/description into DIssue; it does not query configured severity. The separate InvoiceIssue lifecycle queries severity, queues data and persists later with transaction-status and notification-event effects. Neither API creates price level data merely because 1541 is supplied.

Usage guidance

  • Emit I1541 only after confirmed Price Level Code creation, not when creation is merely requested or attempted.
  • Use the String for exact text serialization; use 1541 or explicit conversion for integer issue APIs.
  • Include the created record key, source code, application/partner scope and applied defaults in the description.
  • Check idempotency and duplicate-detection behavior in the actual creation helper; this constant says nothing about either.
  • Confirm the live Issue severity on systems upgraded from v1.15.
  • Avoid credentials, tokens and unnecessary personal data in diagnostics.

Related entries

No Delphi or Free Pascal standard-library equivalent exists; this is a Velox-owned scripting identifier.

Created 2026-07-15