Monday, October 29, 2012

Azure Table Storage - One of the request inputs is out of range

I was getting this error while saving an entity in Azure Table Storage using the method SaveChangesWithRetries() in Microsoft.WindowsAzure.StorageClient.TableServiceContext

System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="">
  <message xml:lang="en-US">One of the request inputs is out of range.

I was setting the Primary Key and the Row Key correctly so wasn't sure about the root cause of the error.
Then I found that one of the properties of the entity was of Type DateTime which was not being set.
After I set the property to a value, say DateTime.Now, the entity got saved successfully.

1 comment:

  1. Wow, that was a great find! This only happened to me in production but not in the emulator environment. Spent far too long on this bug. Thanks for the post!