cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NasserA
Regular Visitor

AddColumns fails when adding column to collection from ShowColumns

Using Office 365 Power Apps Version 3.20013.29

 

The code below performs the following:

 

vRequestRecords has the columns: "Title", "ItemType", "ItemName", "RequestType", "Revision", ….. and several others.

The function ShowColumns extracts 4 columns ("ItemType", "ItemName", "RequestType", "Revision") from vRequestRecords.

The function AddColumns then adds 1 column ("Title") to the result of ShowColumns.

 

Until Friday, January 31,2020, it worked without a problem.

 

Today, February 3, 2020, it shows the error messages listed.

 

It looks like a Power Apps bug introduced in a recent Office 365 update.

 

 

CODE:

 

AddColumns(ShowColumns(vRequestRecords, "ItemType", "ItemName", "RequestType", "Revision"),

  "Title", ItemType.Value & ": " & ItemName.Value & " (" & RequestType.Value & ")" & " (" & Revision & ")"

)

 

ERROR MESSAGES:

 

A column named 'Title' already exists.

The function 'AddColumns' has some invalid arguments.

1 ACCEPTED SOLUTION

Accepted Solutions

The problem has been resolved with a product update.
It no longer exists with Office 365 Power Apps Version 3.20022.19.
Hopefully regression testing as been put in place to prevent it from reoccurring again.
Thank you PowerApps team for the prompted solution.

View solution in original post

11 REPLIES 11
CarlosFigueira
Power Apps
Power Apps

Thank you for reporting this issue; I'll pass it to the product team right away.

Stefan_J
Advocate I
Advocate I

I have the same issue here.

 

Collection A with columns: ID, Title, Date

I use AddCollection(B, ShowColumns(A, "ID", "Title"))

 

Then: AddCollection(C, AddColumns(B, "Date", Today()))

 

Error: The columns named Date exists. 

In the preview of the collection B I see only the columns ID and Title.

Hey all. We've identified the issue (related to performance optimizations for data calls) and will prepare a fix. In the mean time, this can be resolved by not using a name that is present in the original table. Sorry for the inconvenience.

There is evidence of this problem being reported and fixed in the past – at least a year ago. Just searching for it in the internet shows a good number of old reports.
Microsoft Power Apps team needs to do a better job at managing code changes and performing tests to filter out previously reported – and fixed – bugs which are now being reintroduced by their own team.
When bugs are reintroduced in a software product, it is a serious issue indicating bad code change controls and inconsistent automated testing.
What old bugs should we bee looking out for next?
This is inexcusable and should be fixed immediately.

The problem has been resolved with a product update.
It no longer exists with Office 365 Power Apps Version 3.20022.19.
Hopefully regression testing as been put in place to prevent it from reoccurring again.
Thank you PowerApps team for the prompted solution.

Hi there

 

I'm still seeing the same error message.

 

Best regards

 

Hey all,

 

Same here, we are at version 3.20023.8 and the issue is still in effect.

We are creating a collection based on an SQL table wit the following formula:

ClearCollect(col_ColName,'[SQL Table]',AddColumns(col_ColName,"Changed",true))

The app keeps indicating that the column already exists in the collection.

Please advise!

 

Thanks

running in the same error today evening!
Are there any news about it?
Thanks a lot

marpio
Advocate I
Advocate I

Version 3.21(...) problem still there...

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,526)