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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / While selecting a view...
Power Apps
Unanswered

While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

(1) ShareShare
ReportReport
Posted on by 255

Hi,

I have a Dataverse table with a View to filter data. The table includes images. When I try to use the View in a Gallery with images I get this error:

The requested operation is invalid.
Server Response: Problem Reports failed: Distinct is not allowed when image attributes are selected.

Does anyone know what it is?

Thanks for any help.

Regards,

Fernando

 

I have the same question (0)
  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hello @calerof,

     

    Hope you have verical gallery with Image, if yes then you can simply use ThisItem.IMAGEFIELDNAME

     

    rampprakash_0-1641187468047.png

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • Bipin D365 Profile Picture
    971 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hi @calerof ,

     

    I have a gallery control with Item property selected as View as shown below -

    bipinshan_0-1641200418704.png

     

    And Image control is visible as expected. 

    Image control Item property -> Thisitem.Image

     

    What is your item property formula and also please send your view filter criteria.

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

  • calerof Profile Picture
    255 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hi all,

    I'm using the image field name, of course:

    error1.png

     

    The error occurs when using any View, also with the default active View:

    error2.png

     

    Only note here is that I'm working with a Developer account.

    Thanks,

    Fernando

  • Bipin D365 Profile Picture
    971 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hi @calerof ,

     

    Does it work when you unselect view from your Gallery item property?

     

    Could you please send the gallery item peroperty formula?

     

    I'm also using Power Apps Community Developer plan and it works on  my canvas app.

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hello @calerof,

     

    Can you please show me the Image Field from Table.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • calerof Profile Picture
    255 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hi @bipinshan ,

    Here's the Items formula:

    error3.png

    And yes, if I remove the View the error goes away and the Gallery works just fine in my case:

    error4.png

    I just saw yesterday this post:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/BUG-Can-t-use-a-view-of-a-table-that-contains-image-fields-in/idi-p/1333917

    Thanks for your help!

    Fernando

     

  • calerof Profile Picture
    255 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hi @rampprakash ,

    Here is the table:

    error5.png

    Thanks!

    Fernando

  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hello @calerof,

     

    For Filtering based on Text Column, You can try below Filter Query

     

    Filter('Problem Reports';DATAVERSECOLUMNNAME=TextField_1.Text))

     

    Remove the View Filter from the Items.

     

    If you want to made multiple filter then you can try below code

     

    Filter('Problem Reports';And(DATAVERSECOLUMNNAME=TextField_1.Text,DataVerseColumnName = 'test')))

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

  • calerof Profile Picture
    255 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    I appreciate your response. But this may work but is a work around, right? The process I'm following is correct and should work with a View. I think this is a bug. 

    I don't know what to do with this post, if close it accepting your solution will not solve the root cause.

    Regards,

    Fernando

  • Ram Prakash Profile Picture
    5,576 Super User 2025 Season 2 on at
    Re: While selecting a view from Dataverse in a Gallery with images I get the error: Distinct is not allowed when image attributes are selected.

    Hello @calerof,

     

    Cool, If you find answers please input the same and Accept as a Solution 🙂

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard