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="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>OutOfRangeInput</code>
<message xml:lang="en-US">One of the request inputs is out of range.
RequestId:xxxTime:xxx</message>
</error>
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.
System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>OutOfRangeInput</code>
<message xml:lang="en-US">One of the request inputs is out of range.
RequestId:xxxTime:xxx</message>
</error>
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.
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!
ReplyDelete