cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

excel Update Row Duplicate Key Value

HI when I connect to a specific spreadsheet and add in the Table and Key Column I get a duplicate Key Value field and cant get past this as I get a  Definition contains invalid parameters error

 

any ideas

 

It works okay om a test workbook but I cant connect to a customer specific template I cant alter

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

Hi

 

I have finally got to the bottom of it,

 

The flow doesnt like spreadsheets with any buttons in them.

 

As its a customer template there was a button which was previously used to run a macro still in the workbook.

 

After removing the button the flow works fine.

 

Took a long time but got there in the end.

 

 

View solution in original post

7 REPLIES 7
Highlighted
Community Support
Community Support

Re: excel Update Row Duplicate Key Value

Hi @JimTurner,

 

Do you want to update row in Excel table with the action Update a row?

In the action Update a row, please enter a value under the Key column, then it will run succeed.

I have made the following test, select column “name” for Key column field, then in the key value field, enter the value “dddd” that I am going to update.

It works fine. Please take a try with it on your side.

1.PNG

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

flow error.png

 

The issue I have is that I have two Key Value boxes , I cant get passed this.  If I create a test workbook it works as you describe but If I use the customers workbook it fails 

Highlighted
Community Support
Community Support

Re: excel Update Row Duplicate Key Value

Hi @JimTurner,

 

Could you share more details on your customer workbook to help reproduce this issue on my side?

Which browser are you using? Please test it with a different browser to see if you will still get duplicate Key Value fields.

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

Excle Table id.png

 

I have tracked it down to a table column called 'id'. If I rename this the error of duplicate key disappears

 

The table has a formula to generate the row id as row($A1) to generate the row Id's  

 

I am still struggling to get the row to update at present 

Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

My flow has two connectors connecting to two workbooks

 

Workbook 1 - Two columns Jid ( renamed ID column ) and First Quotation ( its a reduced version of Workbook 2)

 

Workbook 2 - 54 columns  Jid ( renamed ID column ) and First Quotation

 

flow is successful and says all has ran sucessfully for both workbooks

 

updates first workbook fine , second workbook doesnt get updated 

 

 

Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

My flow has two connectors connecting to two workbooks

 

Workbook 1 - Two columns Jid ( renamed ID column ) and First Quotation ( its a reduced version of Workbook 2)

 

Workbook 2 - 54 columns  Jid ( renamed ID column ) and First Quotation

 

flow is successful and says all has ran sucessfully for both workbooks

 

updates first workbook fine , second workbook doesnt get updated 

 

 

Highlighted
Frequent Visitor

Re: excel Update Row Duplicate Key Value

Hi

 

I have finally got to the bottom of it,

 

The flow doesnt like spreadsheets with any buttons in them.

 

As its a customer template there was a button which was previously used to run a macro still in the workbook.

 

After removing the button the flow works fine.

 

Took a long time but got there in the end.

 

 

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,927)