cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sopatte
Level 8

Bug: RenameColumns then AddColumns with same name

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.

1 ACCEPTED SOLUTION

Accepted Solutions
sopatte
Level 8

Re: Bug: RenameColumns then AddColumns with same name

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.

View solution in original post

2 REPLIES 2
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Bug: RenameColumns then AddColumns with same name

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?

sopatte
Level 8

Re: Bug: RenameColumns then AddColumns with same name

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.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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