web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Environment variable -...
Power Automate
Answered

Environment variable - limit on number of chars? Save button unexpectedly disabled when adding to a solution

(0) ShareShare
ReportReport
Posted on by

Attempting to use an environment variable to hold several configuration values versus making a separate environment variable for each one for a solution.

 

The structure (good or bad) is something like below. The issue is when I try to copy this value into the Default box, the Save button is never enabled. I've reviewed the limitations for Environment Variables and this should not drive the solution above 26 MB. I've tried reducing (/s)+ to one and also removing (/n)+ to none before pasting in.

 

It seems like it would be really tedious to make a separate environment variable for each value when the Parse Json connector could do this fairly easily, am I missing something?

 

 

{

  "Environment": "DEV",
  "Bot_Name": "Good Bot Name",
  "Error_Email_Notification": {
    "Subject": "DEV - Error Encountered in [Bot Name]",
    "Send_To": "email@email.com",
    "CC_To": "",
    "Body": ""
  },
  "Success_Email_Notification": {
    "Subject": "DEV - [Bot Name] Success Report",
    "Send_To": "email@email.com",
    "CC_To": "",
    "Body": "This notification serves to notify that [Bot Name] has completed successfully at [Date Time]"
  },
  "Validation_Folder_URL": "http://url/",
  "App": {
    "URL": "http://url/",
    "Env": "Quality",
    "Download_Path": "C:\\temp\\",
    "Download_FileName": "file.type",
    "Form": "Form",
    "View_Columns": "column1,column2"
  },
  "Logging": {
    "Path": "\\goodpath",
    "File_Name": "Log_[Year]_[Month]_[Day]_[Hour]_[Minute].txt"
  },
  "Metric": {
    "Hours_Saved": ".5",
    "Transactions_Processed": "1",
    "USD_Saved": "0"
  }
}
 
younceb_0-1650392837525.png

 

 
Categories:
  • BP-18031953-0 Profile Picture
    on at

    Thinking along the same lines, are there any reserved or special characters that cannot be in an environment variable? 

  • Verified answer
    BP-18031953-0 Profile Picture
    on at

    A fix has since been put in for this, not sure if the change had anything to do with this post. But this seems to be no long an issue as it has a 2000 char limit now

    younceb_0-1651587208080.png

     

    younceb_1-1651587433227.png

     

    Although it is not listed in the limitations of this documentation

     

    Use environment variables in solutions - Power Apps | Microsoft Docs

  • VEEROCHET Profile Picture
    18 on at

    I have the same issue, my Parse JSON schema is very long, but extremely simple.

    I would like to use a Environment variable to store it, just to make it more manageable, but I get the 2000 characters limit error.

    I don't understand your response: the issue is that the JSON variable is limited to 2000 characters, how can this "No longer be an issue" when IT IS the issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard