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

Notifications

Announcements

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 error appears on dropdown list.

(0) ShareShare
ReportReport
Posted on by 32

Dear Sir/Madam,

I've created a PowerApps by customizing a SharePoint form. All complete data will store in SP list. But the apps allow user to save the form by clicking "Save" button, and it will save in collection before submitting completed form.

 

When user wanted to view/retrieve the data from the collection, I got "Name isn't valid. This identifier isn't recognized" error on dropdown list.

 

I can retrieve data from the collection on text fill, date picker and etc but not on dropdown list.

 

My code for save data in collection as below.

Collect(CollectBasicDetails,
{  
     SurveyVersion:SurveyVersionBD.Text,
     Station:Station.SelectedText,
     StaffID:StaffID.Text,
     EmailAddress:EmailAddress.Text,
     AssessorName:AssessorName.Text,
     Designation:Designation.Text,
     ObservationDate1:ObservationDate1.SelectedDate,
     FlightObservation1:FlightObservation1.Text,
     ObservationDate2:ObservationDate2.SelectedDate,
     FlightObservation2:FlightObservation2.Text,
     GHA:GHA.Text,
     RegionalHead:RegionalHead.SelectedText,
     LoungeOperator:LoungeOperator.Text,
     SeatNo:SeatNo.Text   
 });

 

I've created collection gallery called BasicDetailsGallery.

basicdetailsgallery.PNG

 

When user wanted to retrieve or view the item, it will navigated to BASIC_DETAILS_SCREEN_COLECTION as below.

On default properties, I've put BasicDetailsGallery.Selected.Value on dropdown list and got an error "Name isn't valid. This identifier isn't recognized". I also tried to put BasicDetailsGallery.Selected.Station on default properties but the error "Expected text value" came out. 

Error dropdownlist.PNG

 

When this error occurred, the value that selected by user from dropdown menu (Station) is not appear. Its blank.

 

Can someone provide me guidance/help on this? Please share screenshots as i'm a beginner on PowerApps.

 

Thank you in advance.

 

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    What type of field is 'Station'?

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Athirah 

    Consider first changing your record in your collection for Station to the following:

        Station:Station.Selected.Value,

    Two reasons, one, you should avoid using SelectedText as it is deprecated. And second, this will give you the actual selected Value from the dropdown.

    Set Default formula on the Dropdown to BasicDetailsGallery.Station

     

    Also, the formula for RegionalHead should be set as well to the following:

       RegionalHead:RegionalHead.Selected.Value,

     

    I hope this is helpful for you.

     

     

  • Athirah Profile Picture
    32 on at

    Hi, 

     

    I tried to change the record in my collection as below but i'm getting "Incompatible type. The item you're trying to put into collection has the type that not compatible with the collection" error. 

     

    errorcollection.PNG

     

    Or is there something wrong with the items properties on Station?

    stationitem.PNG

     

    Hopefully you can help me out on this 😞

     

    Thank you.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Are these independent fields to display the details of an item in the gallery or is it a form?

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Athirah 

    I'll get you there 😉

     

    So, your items property is fine on the dropdown.  This will be a single column table of Values.

    In your collect statement, can you tell me where in the formula the error is?  In your picture nothing is red and underlined.  That would help get to the cause.

    Also, since we changed RegionalHead, what is the items property of that dropdown?

     

    @JR-BejeweledOne From the pictures, these appear to be independent Controls.

  • Athirah Profile Picture
    32 on at

    Hi, 

     

    My collect statement as below.

    CollectError.PNG

     

    And here is the items in RegionalHead.

    RegionalHeadError.PNG

     

    Thank you,

    Tiera

  • Athirah Profile Picture
    32 on at

    Hi, 

     

    Anyone can help me on this? I've been stuck here for a week 😞 

     

    Thank you.

  • Athirah Profile Picture
    32 on at

    Hi @Anonymous ,

     

    Appreciate if you could help me on my issue above?

     

    Thanks in advance,

    Tiera

  • Verified answer
    Athirah Profile Picture
    32 on at

    Hi @RandyHayes@JR-BejeweledOne , @Anonymous ,

     

    I am able to get the default value on dropdown list (Station and RegionalHead) correctly. 

    I put BasicDetailsGallery.Selected.Station.Value on Default properties and the error gone! 🙂

    issueresolved.PNG

     

    Thank you 🙂

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard