cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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

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

27 REPLIES 27
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.

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 

 

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.

@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 

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? 

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.


 

@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?

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.

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.

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.  

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

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (862)