cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

8 REPLIES 8
Super User III
Super User III

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.

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.

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.

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

8.jpg

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.

This is what I have:

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

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.

View solution in original post

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

Thanks a lot for your help!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (49,773)