cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimTurner
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

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
v-yamao-msft
Community Support
Community Support

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.

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 

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.

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 

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 

 

 

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 

 

 

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.

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (4,439)