Automic Workload Automation

 View Only
  • 1.  MAX_VARIABLE_SIZE

    Posted Oct 24, 2017 11:24 AM
    I've run into issue where a REST WebService job returns a very large payload. I want to store this in an XML Vara but I get the following error:
    U00020821 Runtime error in object '***', line '00000': Value of paramter '3' too long. Allowed length is '1048576' because of system setting MAX_VARIABLE_SIZE.
    I wasnt able to find the setting MAX_VARIABLE_SIZE so I tried adding it too UC_SYSTEM_SETTINGS and increasing it, but it doesnt seem to have made a difference. Job is still failing with the same error, with
    Allowed length is '1048576'
    Has anyone come across this, and know if this setting can be changed, and if so, how?


  • 2.  MAX_VARIABLE_SIZE

    Posted Oct 24, 2017 12:05 PM
    I used Agent Ransack to look for this setting, hoping to find it in a CONFIG or INI file.  All it found was 4 references inside of UCSJ.DLL, and this message which occurs frequently in our WP log files;

    20170217/160017.391 - U00011847 'MAX_VARIABLE_SIZE' set to '001048576'.

    So I don't see that this value can be modified?


  • 3.  MAX_VARIABLE_SIZE

    Posted Oct 25, 2017 12:56 AM
    The max value for MAX_VARIABLE_SIZE is 1 MB and cannot be increased.
    Can you limit the output by either using:

    • XPath
    • XQuery
    • JSONPath
    • JSON to XML and XQuery
    Or Groovy?


  • 4.  MAX_VARIABLE_SIZE

    Posted Oct 25, 2017 03:18 AM
    Thank you both. It seems my best option is to filter the response at the WebService level, so I do not run into this constraint in Automic


  • 5.  RE: MAX_VARIABLE_SIZE

    Posted Mar 02, 2022 08:30 AM
    Edited by Michael A. Lowry Mar 02, 2022 08:41 AM
    Message U00020821 mentions MAX_VARIABLE_SIZE:
    U00020821 Runtime error in object '&01', line '&02': Value of paramter '&04' too long. Allowed length is '&05' because of system setting MAX_VARIABLE_SIZE.

    No explanation of MAX_VARIABLE_SIZE appears in the documentation.


  • 6.  RE: MAX_VARIABLE_SIZE

    Posted Mar 11, 2022 01:44 PM
    Edited by Michael A. Lowry Mar 11, 2022 06:12 PM
    Broadcom Support provided additional details. MAX_VARIABLE_SIZE will be documented in a future update to the documentation.
    MAX_VARIABLE_SIZE
    Determines the maximum size of script variables in bytes.
    Allowed values: 1024 to 1048576
    Default value: 1048576
    Restart required: No

    I confirmed the lower and upper limits by setting MAX_VARIABLE_SIZE in UC_SYSTEM_SETTINGS to different values.

    U00011831 Value: '1048577' for 'UC_SYSTEM_SETTINGS' / 'MAX_VARIABLE_SIZE' exceeds maximum. Maximum value: '0001048576' will be used.
    U00011832 Value: '200' for 'UC_SYSTEM_SETTINGS' / 'MAX_VARIABLE_SIZE' is below the minimum value. Minimum value: '0000001024' will be used. 

    I updated my AE Limits thread.



  • 7.  RE: MAX_VARIABLE_SIZE

    Posted Mar 14, 2022 11:08 AM
    Thanks @Michael A. Lowry for clarification!
    Christoph ​​

    ------------------------------
    ----------------------------------------------------------------
    Automic AE Consultant and Trainer since 2000
    ----------------------------------------------------------------
    ------------------------------