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 / The variable of type '...
Power Automate
Answered

The variable of type 'Array' cannot be initialized or updated with value of type 'String'

(0) ShareShare
ReportReport
Posted on by 49 Season of Giving Solutions 2025
Hello,
 
I'm having problems initialising an array variable. When I run the flow it says I'm using a string value. Any ideas?
 
 
 
 
 
 
 
 
[
"MeetingAttendanceApprovedDate": { "type": "string", "format": "date-time" },
"Honorariaruleid": { "type": "string", "format": "uuid" },
"ContactId": { "type": "string", "format": "uuid" },
"RuleName": { "type": "string" },
"IsQualified": { "type": "boolean" }
]
  
Categories:
I have the same question (0)
  • Verified answer
    Kalathiya Profile Picture
    2,129 Super User 2026 Season 1 on at
    Hello @hpayne1993

    It looks like you’re pasting a JSON schema into an Array variable. The Initialize variable (Array) action expects an actual array value, not a schema definition that's why it's being treated as a string.

    If you just want to initialise it empty, use:

    []
     
    If you want to add objects, it should look like:
     

    To extract a value from the array later, use something like:

     

    Hope that helps! 😊

     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
     
     
     
     

     

  • hpayne1993 Profile Picture
    49 Season of Giving Solutions 2025 on at
    Thankyou! That has saved me a lot of time!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard