Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6574955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:19:41+00:00 2026-05-25T15:19:41+00:00

I have an Azure Worker Role set up to get information from a few

  • 0

I have an Azure Worker Role set up to get information from a few external web services, parse it into several different entity types, and store these entities in an Azure Table Storage. Crucially, most if not all of these entities are each inserted into their own partition in the table.

I am using a TableServiceContext-extended class with calls to AddObject(EntityToBeInserted) to attach the new entities to the tableservicecontext as they are created. Currently, I then call TableServiceContext.SaveChangesWithRetries(SaveChangesOptions.None) to save these entities to the Table in their respective partitions. This all works fine.

My question is: what happens when it doesn’t work fine? I am able to cause 1+ of the entities to not be saved by making their row and partition keys non-unique, but the error message I catch around that behavior does not indicate which of the entities failed, just that there was an error in one of them.

How should I save entities to Table Storage from a Worker Role where each entity goes to its own partition (assume there are 2-30 entities being inserted in one of these save calls), so that if one or more of these inserts fail I will be able to at least know which one it was? These operations are very time-sensitive, so I cannot unfortunately rely on long-running Retry options to wait for the relevant storage nodes to become available again.

Thank you,
Alex

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:19:42+00:00Added an answer on May 25, 2026 at 3:19 pm

    The answer is you can’t do bulk inserts across table storage partitions, so you should track the ids (partitionkey and rowkey) of the entities you insert, and verify their success in the callback of the async table storage insert call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a requirement to read an excel sheet from the Azure worker role.
I have a relatively low bandwidth Azure Web Role application and also several processes
We have a Web Role that we are hosting in Windows Azure that uses
I'm trying to set up Quartz.NET in an Azure worker role for scheduling a
I have a class library shared between an Azure Worker Role and a ASP.NET
I have deployed a Worker Role to an Azure instance with remote access enabled.
I have a web service hosted on azure as a web role. In this
In my service i have. 1. A Worker Role. 2.A Web Role with input
How many worker roles and web roles can you have per Azure subscription? a.
I, Here is my situation. I have a worker role in my Azure who

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.