question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CreateOrReplace operation possible for Azure Table Storage binding?

See original GitHub issue

Please provide a succinct description of the issue.

Repro steps

Provide the steps required to reproduce the problem

  1. Use table storage output binding in node function in App Service plan

  2. Output table item with existing RowKey, setting Etag: “*”

Expected behavior

A upsert operation is executed as mentioned here

Actual behavior

Function fails with: The specified entity already exists.

The docs state that upsert is not supported but there seems to be something here that should do the trick? https://github.com/Azure/azure-webjobs-sdk/blob/ea55e6ef5439b1059b43825cb9d40cc12ae219bc/src/Microsoft.Azure.WebJobs.Extensions.Storage/Tables/TableEntityWriter.cs#L100

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
jeffhollancommented, Apr 2, 2020

It’s a valid feature and potentially just a few lines of code, but not yet at the top of the backlog. Keep letting us know (via 👍 or whatever) that this would be a worthwhile feature to implement more explicitly in the extension. For now the recommended approach would be leveraging the Table SDKs directly in the Azure Function code (e.g. the Node Azure Table SDK) to perform an upsert operation. In general bindings are a convenience (and a great one at that 😄 ) but can accomplish the same behaviors by leveraging the SDKs if need more flexibility or control. Let us know. Thanks

7reactions
mpseidelcommented, Aug 27, 2019

Great. So looks like this can be fixed with little effort? If so when can we expect it to be shipped?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Tables bindings for Azure Functions
Integrating with Azure Tables allows you to build functions that read and write data using Azure Cosmos DB for Table and Azure Table...
Read more >
Azure Tables output bindings for Azure Functions
Use an Azure Tables output binding to write entities to a table in Azure Cosmos DB for Table or Azure Table Storage.
Read more >
Azure Tables input bindings for Azure Functions
Use the Azure Tables input binding to read a table in Azure Cosmos DB for Table or Azure Table Storage. For information on...
Read more >
How to update a row in an Azure storage table using ...
This output binding only supports creating new entities in a table. If you need to update an existing entity from your function code, ......
Read more >
Using the Python Connector
This topic provides a series of examples that illustrate how to use the Snowflake Connector to perform standard Snowflake operations such as user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found