cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimTurner
Level: Powered On

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
JimTurner
Level: Powered On

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
Community Support Team
Community Support Team

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.
JimTurner
Level: Powered On

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 

Community Support Team
Community Support Team

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
JimTurner
Level: Powered On

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 

JimTurner
Level: Powered On

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 

 

 

JimTurner
Level: Powered On

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 

 

 

JimTurner
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,375)