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

9 REPLIES 9
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.

View solution in original post

Hi there

 

I'm still seeing the same error message.

 

Best regards

 

NR1
Regular Visitor

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
Helper I
Helper I

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,292)