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 / Strange Error when usi...
Power Apps
Answered

Strange Error when using DropColumns

(0) ShareShare
ReportReport
Posted on by 5,836 Moderator

I have an in app collection that has columns for an ID, ShowSave and ShowEdit to allow manipulation of edit and remove icons for the rows in a gallery.

 

In order to collect this, I need to drop the 3 columns that don't exist in the permanent data source.

 

This works:

DropColumnFormula.png

Both collections showing the Country column.  This is important!

 

HolidayCollection

DropColumnHolidayColl.png

 

TempHolidaySchedules

DropColumnTempHolidayColl.png

 

 

 

Error (What the Heck?):

 

DropColumnError.png

 

 

Can anyone tell me what is going on here and how to fix it?

 

@RandyHayes

@mdevaney 

I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JR-BejeweledOne 

    Yes, this is a collision of schema elements.  Happens often when trying to do everything with collections as they have to infer their schemas from the other.  If you already have the HolidaysSchedule collection established, then it is unable to narrow the inference of the schema.

    I would look at how you are using the collection in other places first.

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

    HolidaySchedules is the dataverse table, not a collection and ShowSave, ShowEdit and CollID do not exist in the table.   Holiday Collection and TempHolidaySchedules are collections.

     

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JR-BejeweledOne 

    Thanks for the clarification.  Then the issue is a naming issue.  Your collection TempHolidaySchedule needs to have the EXACT "real" name of the columns in it.  I would take a look at your Country column in your dataverse table and see what the real name is and make sure your collection has a column with that name.

    The error message is misleading as it is for one, trying to find the exact name, but then tells you the closest name based on the "not real" name.

    But check that column real name and make sure you have that in your collection properly.

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

    I have to admit that it absolutely drives me nuts that MS allows 'display' names vs 'real' names and in many cases allows you to use them interchangeably and in some cases, i.e. a renamed SP title column, wants you to use the 'Display name' and won't even let you use the 'Real name', but in other cases requires you to use the 'Real Name'.

     

    It's incredibly confusing.

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

    @JR-BejeweledOne 

    Yes, it really depends on the nature of the function.  In your case, you are attempting a bulk update to the datasource, so having the names completely match in the records is important to not having the function alter them as it goes.  Not only would that slow it down, but also potentially cause some delegation issues.

    To be honest, I sort of wished that they didn't support anything but the real names.  I know that would make the app very confusing to "read" if you happened to have changed a column name, but to be honest, if I need to change a column name (other than Title), I usually delete the column and create a new one that is named the way that I want.  

     

    However, for functions that do support "renamed" names, you can also specify the real name itself.  Example, if you rename an SP Title column to "Employee", you can use either of the following formulas:

      LookUp(spList, ID=1, Employee)   OR   LookUp(spList, ID=1, Title)

    They will both show the same results.  The only real difference is that the "intellisense" in the formula editor will not show Title as an option.

    You used to be able to turn this ability on and off in the app, but it seems that feature is long gone.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard