web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bug: RenameColumns the...
Power Apps
Answered

Bug: RenameColumns then AddColumns with same name

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I think I've found another bug.

 

To get a minimum test case. I have a sharepoint list called Test with a Title (of course) and an text field "SN".

 

ClearCollect(
    Test2,
    RenameColumns(
        Test,
        "SN",
        "OrigSN"
    )
);
ClearCollect(
    Test3,
    AddColumns(
        Test2,
        "SN",
        If(IsBlank(OrigSN),"",OrigSN)
    )
)


This should work, but adding an "SN" column to Test2 fails. If I call it "SN2" it works fine. This doesn't seem to be an issue when the orginal source is a local collection, but it is an issue when it's a sharepoint list.

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

    Thank you for reporting this issue. I've filed a bug with the appropriate team for fixing.

    Meanwhile, are you blocked by this issue? If so, can you provide more details from your scenario so that we can provide a workaround while the bug is not fixed?

  • Verified answer
    SoPatt Profile Picture
    Microsoft Employee on at

    I'm not blocked, thanks. I was trying to work around the "patch doesn't work for blank fields" issue but UpdateIf was a better workaround anyway.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard