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 / Name isn't valid. This...
Power Apps
Answered

Name isn't valid. This identifier isn't recognized

(0) ShareShare
ReportReport
Posted on by 2,297

My app has 2 collections:

 

TodosPeriodos with the months of 2020, like "Jan-2020" to "Dez-2020"

 

1.jpg

 

PeriodosExistentes, that it reads from the datasource, with the already existing months:

2.jpg

Now, I have this Form with a dropdown that works perfectly when the AllowedValues Property of the DataCard is hard-coded like:

3.jpg

But when Allowed Values changes to the formula below:

6.jpg

 

The drop-down does what I want: it shows only the months NOT in the PeriodosExistentes Collection:

4.jpg

But it returns the Error:

Name isn't valid. This identifier isn't recognized

 

5.jpg

 

 I could live with the error, although I don't understand it.

The main problem is that now I can't submit the form. I get another error:

 

The requested operation is invalid. Server response: a value must be supplied to the item.

 

7.jpg

 

Can anyone help?

Categories:
  • eka24 Profile Picture
    20,925 on at

    The drop-down does what I want: it shows only the months NOT in the PeriodosExistentes Collection:

     

    This is a cotinuation of what you posted earlier.

    edited

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • WebPortal Profile Picture
    2,297 on at

    Hello again @eka24 

     

    Yes, the data card does what it is supposed to do: it shows only the non-used-before months.

     

    I've deleted it and inserted it again.

     

    And again I have exactly the same errors as described:

    Name isn't valid

     

    And the form is not submitted.

  • eka24 Profile Picture
    20,925 on at

    The formula should be on the Items of Datacardvalue2 not where you have placed it

    Allowed values.jpg

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • WebPortal Profile Picture
    2,297 on at

    Here we go again: I get exactly the same errors, it doesn't change anything!

    8.jpg

  • eka24 Profile Picture
    20,925 on at

    Base on the last reply, select the Periodo_datacard2, do you have any other formula on the Periodo_datacard2?

    There should not be any formula there

    Please recheck.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • WebPortal Profile Picture
    2,297 on at

    This is what I have:

    Anotação 2020-05-01 200946.jpg

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try:
    DataCardValue2.Selected.Periodo

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • WebPortal Profile Picture
    2,297 on at

    I tried with DataCardValue2.Selected.MonthYear and it finally worked!

    Thanks a lot for your help!

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard