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 8068709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:46:40+00:00 2026-06-05T12:46:40+00:00

I am trying to query against the table storage but I am getting the

  • 0

I am trying to query against the table storage but I am getting the following error:

<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>

<error
xmlns=”http://schemas.microsoft.com/ado/2007/08/dataservices/metadata”&gt;

<code>InvalidInput</code>

<message xml:lang=”en-US”>One of the request inputs is not
valid.</message>

</error>

The code I use is as follows:

public IEnumerable<ShoppingItemEntity> Get(string shoppingRowKey) {

    var ctx = getTableServiceContext();
    var shoppingItems = ctx.CreateQuery<ShoppingItemEntity>(
        Constants.TABLE_STORAGE_SHOPPING_ITEM_TABLE_NAME
    ).Where(x => x.PartitionKey == string.Empty && x.ShoppingId == shoppingRowKey).AsTableServiceQuery();

    return shoppingItems.ToList();
}

private TableServiceContext getTableServiceContext() {

    var account = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["DataConnectionString"]);
    return account.CreateCloudTableClient().GetDataServiceContext();
}

The strange thing here is that if I run the query without where clause, I get no errors:

public IEnumerable<ShoppingItemEntity> Get(string shoppingRowKey) {

    var ctx = getTableServiceContext();
    var shoppingItems = ctx.CreateQuery<ShoppingItemEntity>(
        Constants.TABLE_STORAGE_SHOPPING_ITEM_TABLE_NAME
    ).AsTableServiceQuery();

    return shoppingItems.ToList();
}

What do u think is the problem here?

  • 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-06-05T12:46:42+00:00Added an answer on June 5, 2026 at 12:46 pm

    There are articles here and here shows the similar experience you have had with Azure Table storage. When dealing with Azure Development Storage you really need to “convince” the table service provider that you know what you are doing by inserting some dummy entities.

    I believe you sure like this article Azure Table Storage, what a pain in the ass.

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

Sidebar

Related Questions

I'm trying to write a query that will check today's date against my table
I am trying to add a fulltext index against a table, but it does
I'm trying to run a query in SQL Server 2008 against a table where
I am trying to query against an array of strings. The me_topics_users table is
I am trying to execute this query against Oracle linked server, and getting the
I'm trying to query a MySQL database using an array but I'm having trouble!
I am trying to query an .xls spreadsheet with VBScript, but I have run
I'm trying to create a query and need to join against something that I
I'm trying to figure out how best to query against a schema that consists
I have been trying to introduce a Merge statement into the following SQL query

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.