cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Regular Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

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

7 REPLIES 7
Highlighted
Power Apps
Power Apps

Re: AddColumns fails when adding column to collection from ShowColumns

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

Highlighted
Frequent Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

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.

Highlighted
Power Apps
Power Apps

Re: AddColumns fails when adding column to collection from ShowColumns

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.

Highlighted
Regular Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

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.

Highlighted
Regular Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

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

Highlighted
Regular Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

Hi there

 

I'm still seeing the same error message.

 

Best regards

 

Highlighted
Regular Visitor

Re: AddColumns fails when adding column to collection from ShowColumns

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,529)