Azure function output binding for table not writing multiple rows

Tim 6 Reputation points
2020-06-05T22:08:57.35+00:00

I have an Azure function executing Python code that has an output binding to an Azure table.
Within the script, it attempts to add multiple rows to the table using the binding with a for loop.
Each time it runs successfully but only ever adds 1 row to the table - the last one that the script attempts to write.
Is this a key feature of a table output binding, that it can only be used once per execution of the function?

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
171 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,117 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tim 6 Reputation points
    2020-06-06T19:38:56.053+00:00

    Update: it appears to be a characteristic for output bindings in general that they can only be called once per function execution, but the limitation was overcome by using an array of the rows to write.

    1 person found this answer helpful.
    0 comments No comments

  2. Berry, Joseph 1 Reputation point
    2020-12-07T15:29:45.477+00:00

    Do you have an example of how you overcame this? I have a similar problem, I iterate through a list of dictionaries, hoping to insert each one using the message.set() method. However, it only seems to work for the last row. How did you create the array from the input dictionaries?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.