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 / AddColumns fails when ...
Power Apps
Answered

AddColumns fails when adding column to collection from ShowColumns

(3) ShareShare
ReportReport
Posted on by 27

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.

Categories:
I have the same question (0)
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

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

  • Stefan_J Profile Picture
    7 on at

    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.

  • McCall Saltzman Profile Picture
    Microsoft Employee on at

    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.

  • NasserA Profile Picture
    27 on at

    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.

  • Verified answer
    NasserA Profile Picture
    27 on at

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi there

     

    I'm still seeing the same error message.

     

    Best regards

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

  • MiLoCore Profile Picture
    62 on at

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

  • marpio Profile Picture
    on at

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

  • james_hathaway Profile Picture
    427 on at

    It seems this BUG has REAPPEARED.

     

    I too am getting the "Column already Exists" error, for a column that most certainly DOES NOT EXIST.

     

    I also agree with @NasserA

    This is inexcusable - especially as it was a big that was previously reported and fixed, and yet is back!

     

    Microsoft - Please fix.

     

    James.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard