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 Apps / "JSON:Expected object ...
Power Apps
Unanswered

"JSON:Expected object but got Array" for multiplye Choice Column

(0) ShareShare
ReportReport
Posted on by 35

Hi.I'm using a share point list as a data source. I have columns with Choice property. In Power Apps they use the following code to filter like this "Filter(Distinct(Filter('DataSource"';'Department'.Value = ComboBox1.Selected.Value);ThisRecord.Subdepartment);ThisRecord.Value.Value<>Blank())" and this one for example "DataSource"';Department'.Value = ComboBox1.Selected.Value;Subdepartment.Value =ComboBox2.Selected.Value.Value);ThisRecord.Line);ThisRecord.Value.Value<>Blank())". That is, each column is filtered by the previous one. But I had to enable the ability to select multiple elements in the Choice column, and after that my filtering broke and the following error appeared: "JSON:Expected object but got Array". Please help me in this situation, is it possible to work filtering with multiple choice in ball point

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @ruslan889901 ,

     

    When enabling multiselect, a combobobox no longers returns a record, but table (array), so that is consistent with your observations. To deal with this, you need to make adjustments following the below pattern in the filter conditions:

     

     

    Single select:
    Department'.Value = ComboBox1.Selected.Value;
    
    Multi select:
    Department'.Value in ComboBox1.SelectedItems.Value;

     

  • ruslan889901 Profile Picture
    35 on at

    Hello.I did as you indicated, but underlines the red "<>" in this code Filter(Distinct(Filter('DataSource"';'Department'.Value in ComboBox1.SelectedItems.Value;Subdepartment.Value in ComboBox2.Selected.Value.Value);ThisRecord.Line);ThisRecord.Value.Value<>Blank())

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @ruslan889901 ,

     

    Can you please share the error text that comes with this?

     

    Also it seems that the formula you shared is part of a bigger formula since you are using "ThisRecord" which makes it look as if you are using a ForAll loop. If this is the entire formula, what is ThisRecord supposed to reference?

  • ruslan889901 Profile Picture
    35 on at

    The logic is that by selecting "Department", the next field "Subdepartment" will display only subdepartments related to the selected department. After the ability to select multiple values was enabled, a yellow error appeared about delegation and a red one in the Update field property. "ThisRecord" I registered with a distinct function to remove empty values. Now I don't know how to set up the filtering I need with the multiple selection property

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi  @ruslan889901 ,

     

    Apologies, but I'm not following what you are saying. Please share:

    1. How is your data structured? I see .Value.Value in there which makes me think you have nested tables, so please elaborate. Some example data in a table would also help to understand the structure.

    2. Warnings and Errors always come with an explanatory text which you can find by clicking on the stethoscope icon:

    BCBuizer_0-1682672667075.png

    Please share the details for the error you receive.

    3. I don't understand what you mean by "registered with a distinct function". Is ThisRecord the name of a variable or something?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard