Logic App => Append To Variable Action => Array Variable Size

David McDougald 40 Reputation points
2024-09-11T17:47:12.41+00:00

I am receiving the following error in my flow:

the variable 'files' has size of more than '18467' bytes. This exceeded the maximum size '1024' configured. Please see https://docs.microsoft.com/en-us/azure/logic-apps/edit-app-settings-host-settings#variables for updating the maximum configured value.

When i visit the documentation on that page, it says I should add a new environmental variable to expand the variable size.

When I follow those instructions, I receive the same error when I retry the flow.

What am I doing wrong?

User's image

User's image

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,146 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 27,256 Reputation points
    2024-09-12T05:12:10.0333333+00:00

    @David McDougald Thanks for reaching out. The configuration - MaximumStatelessVariableSize needs to go to host.json and not in the app settings, as mentioned in the below documentation - Edit runtime and environment settings for Standard logic apps - Azure Logic Apps | Microsoft Learn.

    please refer: https://learn.microsoft.com/en-us/azure/logic-apps/edit-app-settings-host-settings?tabs=azure-portal#manage-host-settings---hostjson

    Below is a sample host.json for increasing the variable size limit from 1024 to 2048 characters.

    {
       "version": "2.0",
       "extensionBundle": {
          "id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
          "version": "[1.*, 2.0.0)"
       },
       "extensions": {
          "workflow": {
             "settings": {
                "Runtime.Backend.VariableOperation.MaximumStatelessVariableSize": "2048"
             }
          }
       }
    }
    

    After making this change, ensure that you restart your Logic App for the new settings to take effect.

    do let me know incase of further queries, I would be happy to assist you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.