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 / getting error for data...
Power Apps
Answered

getting error for datacard value while giving condition

(0) ShareShare
ReportReport
Posted on by 100

I don't know why I am getting this incompatible error for datacard value. In this I have connected cds entity with the form.

I have attached screenshot with this to show what error I am actually getting. Please help me with this. Please help me with this error.

 

Screenshot (215).png

Categories:
  • eka24 Profile Picture
    20,925 on at

    Recheck if the DataCardValue11 is a dropdown, if not a dropdown, change the formula to: DataCardValue11.Text="Yes"

     

    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Saurabh-704 ,

    Could you please share a bit more about the "DataCardValue11"?

    Is the DataCardValue11 bind to a Option Set type field or Two Option field in your CDS Entity?

     

    1. If the DataCardValue11 is bind to a Option Set type field in your Entity:

    Please modify your formula as below:

    If(
     DataCardValue11.Selected.Value = [@OptionSetType].Yes, // OptionSetType represents the Option Set bind to the Option Set Type field in your Entity
     SubmitForm(Form1);ResetForm(Form1);Navigate(....)
    )

     2. If the DataCardValue11 is bind to a Two Option type field in your Entity:

    Please modify your formula as below:

    If(
     DataCardValue11.Selected.Value = 'TwoOptionFieldName (EntityName)'.Yes,
     SubmitForm(Form1);ResetForm(Form1);Navigate(....)
    )

    Note: When comparing value with Option Set type or Two Options type field, you need to use the available option value of the Option Set or Two Option type as comparing value.

     

    Please check and see if the following blog would help in your scenario:

    https://powerapps.microsoft.com/en-us/blog/option-sets-and-many-to-many-relationships-for-canvas-apps/

     

    Best regards,

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 Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard