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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Solution Authors
Users online (3,696)