PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Collapse]Guide for PANTHEON
   [Collapse]Settings
    [Expand]Subjects
    [Expand]Items
    [Expand]POS
    [Expand]Manufacturing
    [Expand]Personnel
     Calendar
    [Expand]Financials
    [Expand]Customs
    [Expand]Program
    [Collapse]Documentation
     [Expand]Documents
     [Expand]Mailroom
     [Expand]Send SMS or Email
     [Expand]Classification Scheme
     [Expand]Exchange Settings
     [Expand]To-Do
     [Collapse]Workflow Design
      [Expand]About workflows
      [Expand]Workflow (system) toolbar
       Settings - WF
      [Collapse]Design
        Task edit - general
       [Expand]Design - Workflow Elements
       [Expand]Block settings
       [Expand]Design Toolbar
        How To - Resolving Workflow Diagram Loading Error
      [Expand]Workflow - Old topics
     [Expand]PANTHEON DMS Add-in
    [Expand]Change User
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Help
   [Expand]Messages and Warnings
   [Expand]Additional programs
   [Expand]Old products
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Expand]User Manual for PANTHEON
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 421.8662 ms
"
  1000006673 | 226058 | 415163 | Published
Label

How To - Resolving Workflow Diagram Loading Error (Stream Write Error)

 

Issue:

An error occurs when attempting to load a workflow diagram if a script block saves a VarArray. This typically happens when square brackets ([ ]) are used incorrectly in the script.

Explanation:

Using square brackets ([ ]) in a script tells the compiler to create a VarArray. However, variables of type VarArray cannot be saved to the .dfm file, causing the workflow loading process to fail.

Guidelines:

Avoid using square brackets when assigning a value to a variable in script blocks (and transition scripts). Assign values directly without brackets to prevent errors.


Incorrect Example:

begin

  DisplayText := [TaskMessage]; // This creates a VarArray and causes an error

end;

Correct Example:

begin

  DisplayText := TaskMessage; // This assigns the value directly and works correctly

end;


Recommendation:

When writing or debugging scripts for workflows:

  1. Check for square brackets in variable assignments.
  2. Replace any usage of square brackets ([ ]) with direct assignments.

Test the script to ensure the workflow diagram loads successfully.

 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!