What is wrong with this formula? The error I'm getting is on the rename columns step stating that "a column named field_6 already exists". But I'm literally dropping the field_6 column in the previous step. Does drop columns simply not work? This should be taking the email addresses in field_6, making them insensitive by running them through the Lower function and saving them to a new field, then drop the original field_6 and rename the new field to field_6. When I view the collects created at these various steps, those columns do not appear in the collections. This code worked fine six months ago.
Thank you. That is useful advice that I haven't heard yet. I will start learning how to read that file. That sounds like an excellent way to find stuff the editor is hiding.
@dsagfhjj There are many things that happen in Power Apps that we can't easily see when looking at it in the Power Apps editor. For instance, every container control has a DisplayMode property, but you can't access it directly without first selecting another item (checkbox/label/textbox/etc) that also has a DisplayMode property. Then you can edit the DisplayMode of all of them together..
But another thing I found is that the MSAPP file that gets downloaded when you save your app to your computer is an archive file.. (You can open it with 7-Zip) and inside are many text files.. What you can't find easily in the Power Apps editor can be investigated using a text editor.. Though I wouldn't suggest modifying this file unless you know what you're doing. (There are tools out in the wild for that..) but it can be useful when you're trying to find specific keywords in your app, and you can't remember where you used them and the Power Apps editor won't let you search your custom component properties.
I lost count of the times I have used this to find some formula I forgot about that was affecting one thing or another.. but I couldn't do a find/replace in the editor because Find/Replace in Power Apps is ridiculously bugged... so definitely familiarize yourself with the MSAPP file.
</MyTwoBits>
It worked, but I wish I understood why my code became broken. I don't use the with() function very often.
@dsagfhjj see my last reply on first page. Let me know if that one works.
@dsagfhjj What if you change it to
ClearCollect(
formattedcolSecurityAll,
ForAll(
colSecurityAll As _record,
Patch(_record, {field_6: Lower(_record.field_6)})
)
);
@dsagfhjj Can you show me a screenshot showing where all the squiggly lines are in your formula?
Maybe I have the collection being used somewhere else? I'll have to look around.
Same error.
@dsagfhjj I have tried both of my suggestions on a temporary table, and received no errors.. There is another element to this puzzle we are missing.
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional