cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HydrogenUtility
Advocate II
Advocate II

Updating row in Excel Table with HYPERLINK() works, but also updates all rows above!

Hi All, perhaps a curly one:

I can update the rows of a given Excel table perfectly. I'm using a 'child' flow which does this single job carrying variables from a 'parent flow' of much greater complexity.

The table in question has the following headers:

Received DateFromDoc CountDeliverable CodeLink Out

 

Everything gets updated correctly except the Link Out which updates the row AND every row above with the current link!

Received DateFromDoc CountDeliverable CodeLink Out
Tuesday, March 09, 2021 4:42 PMfake@email.com2code code codeLINK was unique now same as below
Tuesday, March 09, 2021 4:43 PMfake@email.com1code code codeLINK updates link above too

 

 The operative part of the flow is shown here:

Image 9-3-21 at 4.54 pm.jpg

Could there be an excel specific issue related to the function =HYPERLINK("http://link.link.link", "LINK")?

 

Any help greatly appreciated!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Yutao
Employee
Employee

The following trick worked for me, although a bit tedious and somewhat strange:

* Open this workbook in desktop Excel.

* Go to File -> Options -> Proofing -> AutoCorrect Options -> AutoFormat As You Type, uncheck "Fill formulas in tables to create calculated columns":

Yutao_1-1615356673410.png

* Now back to the table that contains hyperlinks (still in desktop Excel), update one of the existing hyperlink cells to have a different link address. Excel would show a warning for inconsistent calculated column formula. Ignore it.

* Save and close the workbook.

* From now on, the add row operations from Power Automate should be able to create different hyperlinks for different rows.

View solution in original post

@HydrogenUtility -

 

Sorry I'm also not sure where to find that option in Mac Excel. But if you can run VBA in Mac Excel, you probably can try running the VBA code below and see if that works. I tried it at least in Windows Excel and it indeed turned off that option for me.

 

Application.AutoCorrect.AutoFillFormulasInLists = False

 

Hope this helps!

View solution in original post

26 REPLIES 26
jinivthakkar
Community Champion
Community Champion

@HydrogenUtility this is a specific issue with flow function I was able to reproduce the issue, even in my case it  updates the last link with all other existing link 

 

jinivthakkar_0-1615296685414.png

 

I also tried using the concat function like :

 

concat('=HYPERLINK("',outputs('Compose'),'"',',','"','Link4','")')
 
but even then the behavior is same. Please reach out to Microsoft if you have premium support.
 
Hope this helps.
 
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Yutao
Employee
Employee

The following trick worked for me, although a bit tedious and somewhat strange:

* Open this workbook in desktop Excel.

* Go to File -> Options -> Proofing -> AutoCorrect Options -> AutoFormat As You Type, uncheck "Fill formulas in tables to create calculated columns":

Yutao_1-1615356673410.png

* Now back to the table that contains hyperlinks (still in desktop Excel), update one of the existing hyperlink cells to have a different link address. Excel would show a warning for inconsistent calculated column formula. Ignore it.

* Save and close the workbook.

* From now on, the add row operations from Power Automate should be able to create different hyperlinks for different rows.

Interesting solution and I can see how that would be the problem. I'm in the MacOS excel though and the option for 'Fill formulas in tables to create calculated columns' is currently eluding me. I'll explore where the option is in this version and complete my test.

Thanks for the tests on your end @Yutao and for corroboration @jinivthakkar 

 

HydrogenUtility
Advocate II
Advocate II

Further to this:

I have not been able to discover how to reproduce Windows Excel off-line application File -> Options -> Proofing -> AutoCorrect Options -> AutoFormat As You Type on MACos.

All I have gotten to is: Excel -> Preferences -> AutoCorrect where the Autoformat As You Type option is absent.

Any further ideas on how to manage this (or where this option is located) would be appreciated. That is in lieu of taking the file offline in a windows environment and making the option there. One assumes the options as sent in Windows offline environment would embed in the document and be current in all online incarnations?

 

@HydrogenUtility -

 

Sorry I'm also not sure where to find that option in Mac Excel. But if you can run VBA in Mac Excel, you probably can try running the VBA code below and see if that works. I tried it at least in Windows Excel and it indeed turned off that option for me.

 

Application.AutoCorrect.AutoFillFormulasInLists = False

 

Hope this helps!

This from @Yutao , appended to the earlier suggestion from @jinivthakkar has solved my problem. One caution though is that by running a VBA in the excel desktop MACos the file required saving as "macro enabled". Once saved this way it no longer can be accessed by the original flow where this problem originated.

The workaround:

1) Run the VBA in desktop app

2) save as macro-enabled workbook (appears on SharePoint, no Power Automate access [*.xlsm])

3) rename the workbook in OneDrive (can't access file extension in SharePoint) to *.xlsx

4) reconnect in Power Automate.

Yutao
Employee
Employee

@HydrogenUtility  - glad to hear you've solved the problem! Although the fact that you had to save the workbook as "macro enabled" was kind of a bummer...

 

After thinking about it for a bit more and doing some further experiment, I feel the actual trick was probably just to break the "pattern" within the same column. Once you have one cell in that column with a hyperlink different than others, you can start to add rows with different hyperlinks afterwards.

 

By default, Excel will always automatically apply the hyperlink you've entered into a single cell to all the other rows. Here you can just press "CTRL+Z" (or "CMD+Z" on Mac ) to undo the auto-fill. After that, editing a single cell's hyperlink won't affect other cells any more.

 

Here is a simple screen recording to demonstrate this trick. You don't need to run any VBA macros or set any auto-correct options. Once a table has been treated like this, the Add table row actions in Power Automate should be able to add any hyperlinks to the table without affecting other rows.

 

disable-auto-correct.gif

 

Something to consider...

Yes! Of course! In fact that way is better by far. The truth is I have been manipulating that table in dev environment for so many hours that it is quite likely that this is infact what has occurred not necessarily toggling the “AutoFillFormulasInLists” via VBA, given that there’s no way I know of to see the setting change in MACOS.

 

For those turning up here, please be advised that this approach is likely the better. Thanks @Yutao 

Sidkn33
Helper I
Helper I

Hi

I have turned off the autocorrect option in Excel (Windows!) but I am seeing inconsistent results when altering one hyperlink in my table.
Sometimes, this has the desired effect, but not always. 
It seems almost random.

  1.  I run my flow, it populates the excel table, updating the hyperlink column erroneously
  2. I edit the hyperlink cell in the row 01 of the table, pointing at a different URL
  3. I delete all other rows leaving 01 with the edited hyperlink.
  4. I re-run my Flow
  5. Sometimes this works, sometimes it doesn't

I don't have "premium" support from Microsoft, any ideas how to a: get consistent behaviour and b: get input from Microsoft on a fix?

2

Can you screenshot your flow or at least the pertinent parts. Can you explain where the hyperlink is being generated and give examples of correct vs erroneous? 
In my situation this was my syntax:

=hyperlink(“http://someplace.URL”, “what to display”) but of course this is just a string until it reaches excel where it becomes a function. Is your syntax well formatted? 

Sidkn33
Helper I
Helper I

Hi, 

Firstly please see my related post that Yutao responded to by redirecting me here.

Erroneously, meaning that an excel table column containing a hyperlink is being updated in its entirety with the last iterated value.
This is my Flow

column hyperlink issue.pngcolumn hyperlink issue sheet.png


What I've found is that the fix suggested in this thread (to edit the hyperlink in the first row of the table) does not consistently fix the problem.


 

HydrogenUtility
Advocate II
Advocate II

@Sidkn33Is this behaviour still random as per your first post? Or is this a consistent error now? Because it seems identical to my error and there remains some obscurity in my case as to what fixed it. The absence of a way to uncheck "Fill formulas in tables to create calculated columns": other than the VBA script which provides no success message nor toggle state of the function in macOS means that the @Yutao workaround appears best. But can you definitively confirm you've unchecked the "Fill formulas in tables to create calculated columns" above in Excel Windows Desktop and then saved (or autosaved) the file back to Excel online? And it's definitely the right version you're interacting with via power automate?

Sidkn33
Helper I
Helper I

I haven't been able to pinpoint when all hyperlink (column) rows might be updated erroneously and yes in my case "Fill formulas in tables to create calculated columns" is unchecked and saved back to excel online (specifically, I use the "open in desktop" function, which does not involve "saving back" online.

For example, with an excel onle table, if I delete all existing rows, (except the first one with the edited hyperlink) and re-run my Flow, most of the time, the hyperlinks update correctly. but then I'll re-delete the rows and the hyperlinks will start updating the entire column with each iteration. 

I re-edit the first row hyperlink and then the error goes away again, or doesn't .....
I am confused in fact by the prospect of "Fill formulas in tables to create calculated columns" being of impact here - this is an excel app option, not file specific and not available to excel online (which is of course, Excel-As-A-Service)
So, why would this excel desktop option affect the file when interacting with it (a contained table) in excel online?
The implication is that the option when unchecked in the desktop Excel, does somehow affect how the Excel online app service works, this seems unlikely.

H2U
Frequent Visitor

Understood on your points. The only thing I can think to do as a test is to make another table-related formatting change (after all we're talking about a formatting issue here) which is clearly visible in the table and see if you can perpetuate that change from offline to online. This might be a pointer to the way in which preferences are file-specific and are carried from platform to platform in the file headers / metadata. Certainly this is demonstrable when using an *.xlsx on Windows and on macOS.

Sidkn33
Helper I
Helper I

Good suggestion, I will do some more testing.

One question though - why do you think this a formatting issue specifically? It seems to me to be a table/data/hyperlink (formatting?) formula handling problem.

It's not that the hyperlink is being formatted incorrectly (that remains correct) , the issue is that the data in every row of the hyperlink data column is being replaced with the current row/cell in an excel table.
Implying that there is a data/table based bug brought about when adding a hyperlink formatted cell into the current row, which causes all cells in the hyperlink column to be updated with the current value.  

HydrogenUtility
Advocate II
Advocate II

Indeed, I assumed this behaviour to be a bug too but after assessing the comments from @jinivthakkar and @Yutao I confirmed that, in my case at least, this was related to the auto-fill columns functionality in excel. This article is succinct: https://www.excelcampus.com/tables/prevent-table-formula-autofill/

Bear in mind that, counter-intuitively the =hyperlink syntax in excel is considered a formula as it is prefixed with ‘=‘. 
I can’t confirm this visually right now but (per that article linked) if you can reproduce the error one time then, before making any change, check the undo history (does it exist in excel online?) and see if indeed the auto-fill action was performed. 

xtree96
Frequent Visitor

I have the same problem but found a workaround. I added an empty row right below the header. Somehow it stop triggering the formula autocorrect.

Billdozer
Frequent Visitor

The solution that worked for me was to create another row within the "Apply to Each" loop and Populate only the Key column with "DELETE" and the formula column with "DELETE" and then after the loop completed, I delete all rows with DELETE in the key column. This seems to breakup the rows so that the auto formula update did not trigger in Excel.  I ended up having to add some delays to give time for the cloud update to process as I am copying the file content to a new file for email delivery.  Hope this helps someone as I spent several hours getting this to work.  It is unfortunate that these bugs exist, but it seems as they often do. 😉

 

Billdozer_0-1654534551526.png

 

hemabalan
Frequent Visitor

Add a dummy row ,in thelink column -add a text type add any text then the rest of the rows will not get automatically autocorrected..

Helpful resources

Announcements

Exclusive LIVE Community Event: Power Apps Copilot Coffee Chat with Copilot Studio Product Team

It's time for the SECOND Power Apps Copilot Coffee Chat featuring the Copilot Studio product team, which will be held LIVE on April 3, 2024 at 9:30 AM Pacific Daylight Time (PDT).     This is an incredible opportunity to connect with members of the Copilot Studio product team and ask them anything about Copilot Studio. We'll share our special guests with you shortly--but we want to encourage to mark your calendars now because you will not want to miss the conversation.   This live event will give you the unique opportunity to learn more about Copilot Studio plans, where we’ll focus, and get insight into upcoming features. We’re looking forward to hearing from the community, so bring your questions!   TO GET ACCESS TO THIS EXCLUSIVE AMA: Kudo this post to reserve your spot! Reserve your spot now by kudoing this post.  Reservations will be prioritized on when your kudo for the post comes through, so don't wait! Click that "kudo button" today.   Invitations will be sent on April 2nd.Users posting Kudos after April 2nd at 9AM PDT may not receive an invitation but will be able to view the session online after conclusion of the event. Give your "kudo" today and mark your calendars for April 3, 2024 at 9:30 AM PDT and join us for an engaging and informative session!

Tuesday Tip: Unlocking Community Achievements and Earning Badges

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!     THIS WEEK'S TIP: Unlocking Achievements and Earning BadgesAcross the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. These badges each signify a different achievement--and all of those achievements are available to any Community member! If you're a seasoned pro or just getting started, you too can earn badges for the great work you do. Check out some details on Community badges below--and find out more in the detailed link at the end of the article!       A Diverse Range of Badges to Collect The badges you can earn in the Community cover a wide array of activities, including: Kudos Received: Acknowledges the number of times a user’s post has been appreciated with a “Kudo.”Kudos Given: Highlights the user’s generosity in recognizing others’ contributions.Topics Created: Tracks the number of discussions initiated by a user.Solutions Provided: Celebrates the instances where a user’s response is marked as the correct solution.Reply: Counts the number of times a user has engaged with community discussions.Blog Contributor: Honors those who contribute valuable content and are invited to write for the community blog.       A Community Evolving Together Badges are not only a great way to recognize outstanding contributions of our amazing Community members--they are also a way to continue fostering a collaborative and supportive environment. As you continue to share your knowledge and assist each other these badges serve as a visual representation of your valuable contributions.   Find out more about badges in these Community Support pages in each Community: All About Community Badges - Power Apps CommunityAll About Community Badges - Power Automate CommunityAll About Community Badges - Copilot Studio CommunityAll About Community Badges - Power Pages Community

Tuesday Tips: Powering Up Your Community Profile

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week's Tip: Power Up Your Profile!  🚀 It's where every Community member gets their start, and it's essential that you keep it updated! Your Community User Profile is how you're able to get messages, post solutions, ask questions--and as you rank up, it's where your badges will appear and how you'll be known when you start blogging in the Community Blog. Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile.     Password Puzzles? No Problem! Find out how to sync your Azure AD password with your community account, ensuring a seamless sign-in. No separate passwords to remember! Job Jumps & Email Swaps Changed jobs? Got a new email? Fear not! You'll find out how to link your shiny new email to your existing community account, keeping your contributions and connections intact. Username Uncertainties Unraveled Picking the perfect username is crucial--and sometimes the original choice you signed up with doesn't fit as well as you may have thought. There's a quick way to request an update here--but remember, your username is your community identity, so choose wisely. "Need Admin Approval" Warning Window? If you see this error message while using the community, don't worry. A simple process will help you get where you need to go. If you still need assistance, find out how to contact your Community Support team. Whatever you're looking for, when it comes to your profile, the Community Account Support Knowledge Base article is your treasure trove of tips as you navigate the nuances of your Community Profile. It’s the ultimate resource for keeping your digital identity in tip-top shape while engaging with the Power Platform Community. So, dive in and power up your profile today!  💪🚀   Community Account Support | Power Apps Community Account Support | Power AutomateCommunity Account Support | Copilot Studio  Community Account Support | Power Pages

Super User of the Month | Chris Piasecki

In our 2nd installment of this new ongoing feature in the Community, we're thrilled to announce that Chris Piasecki is our Super User of the Month for March 2024. If you've been in the Community for a while, we're sure you've seen a comment or marked one of Chris' helpful tips as a solution--he's been a Super User for SEVEN consecutive seasons!   Since authoring his first reply in April 2020 to his most recent achievement organizing the Canadian Power Platform Summit this month, Chris has helped countless Community members with his insights and expertise. In addition to being a Super User, Chris is also a User Group leader, Microsoft MVP, and a featured speaker at the Microsoft Power Platform Conference. His contributions to the new SUIT program, along with his joyous personality and willingness to jump in and help so many members has made Chris a fixture in the Power Platform Community.   When Chris isn't authoring solutions or organizing events, he's actively leading Piasecki Consulting, specializing in solution architecture, integration, DevOps, and more--helping clients discover how to strategize and implement Microsoft's technology platforms. We are grateful for Chris' insightful help in the Community and look forward to even more amazing milestones as he continues to assist so many with his great tips, solutions--always with a smile and a great sense of humor.You can find Chris in the Community and on LinkedIn. Thanks for being such a SUPER user, Chris! 💪 🌠  

Tuesday Tips: Community Ranks and YOU

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!This Week: Community Ranks--Moving from "Member" to "Community Champion"   Have you ever wondered how your fellow community members ascend the ranks within our community? What sets apart an Advocate from a Helper, or a Solution Sage from a Community Champion? In today’s #TuesdayTip, we’re unveiling the secrets and sharing tips to help YOU elevate your ranking—and why it matters to our vibrant communities. Community ranks serve as a window into a member’s role and activity. They celebrate your accomplishments and reveal whether someone has been actively contributing and assisting others. For instance, a Super User is someone who has been exceptionally helpful and engaged. Some ranks even come with special permissions, especially those related to community management. As you actively participate—whether by creating new topics, providing solutions, or earning kudos—your rank can climb. Each time you achieve a new rank, you’ll receive an email notification. Look out for the icon and rank name displayed next to your username—it’s a badge of honor! Fun fact: Your Community Engagement Team keeps an eye on these ranks, recognizing the most passionate and active community members. So shine brightly with valuable content, and you might just earn well-deserved recognition! Where can you see someone’s rank? When viewing a post, you’ll find a member’s rank to the left of their name.Click on a username to explore their profile, where their rank is prominently displayed. What about the ranks themselves? New members start as New Members, progressing to Regular Visitors, and then Frequent Visitors.Beyond that, we have a categorized system: Kudo Ranks: Earned through kudos (teal icons).Post Ranks: Based on your posts (purple icons).Solution Ranks: Reflecting your solutions (green icons).Combo Ranks: These orange icons combine kudos, solutions, and posts. The top ranks have unique names, making your journey even more exciting! So dive in, collect those kudos, share solutions, and let’s see how high you can rank!  🌟 🚀   Check out the Using the Community boards in each of the communities for more helpful information!  Power Apps, Power Automate, Copilot Studio & Power Pages

Find Out What Makes Super Users So Super

We know many of you visit the Power Platform Communities to ask questions and receive answers. But do you know that many of our best answers and solutions come from Community members who are super active, helping anyone who needs a little help getting unstuck with Business Applications products? We call these dedicated Community members Super Users because they are the real heroes in the Community, willing to jump in whenever they can to help! Maybe you've encountered them yourself and they've solved some of your biggest questions. Have you ever wondered, "Why?"We interviewed several of our Super Users to understand what drives them to help in the Community--and discover the difference it has made in their lives as well! Take a look in our gallery today: What Motivates a Super User? - Power Platform Community (microsoft.com)

Users online (5,553)