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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:12:15+00:00 2026-05-16T12:12:15+00:00

The following code always throws exception …. DataServiceContext ctx = account.CreateCloudTableClient().GetDataServiceContext(); var val =

  • 0

The following code always throws exception

....
DataServiceContext ctx = account.CreateCloudTableClient().GetDataServiceContext();
var val  = (from t in ctx.CreateTable<MyClass>("TableName") 
           select new {testval = t.id}).FirstOrDefault();

If I read the entity it works fine:

var val  = (from t in ctx.CreateTable<MyClass>("TableName") 
           select t).FirstOrDefault();

Is it impossible to read just one field (or a few, I don’t want to read entity) from Azure table?

Thanks in advance.


Update:

Exception data:
System.Data.Services.Client.DataServiceQueryException.

Message – “An error occurred while processing this request.”

Internal Exception – code :”InvalidInput”, message : “One of the request inputs is not valid.”

  • 1 1 Answer
  • 1 View
  • 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-16T12:12:15+00:00Added an answer on May 16, 2026 at 12:12 pm

    I seem to remember that the current implementation only supports getting the full entities and does not support anonymous classes.

    Another option would be to fetch the complete entity and then transform it into an anonymous type. Do note that in this case you are actually pulling full entities and then transforming them, resulting in more bandwidth consumption than would actually be needed.

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

Sidebar

Related Questions

I have the following code: var thing = (from t in things where t.Type
I have the following code that runs without throwing an exception: var t =
I have multiple messages in SQS. The following code always returns only one, even
DataAnnotations does not work with buddy class. The following code always validate true. Why
I'm using chrome devtools network API and the following code but always the alert
The following code does not always create the file. As far as I noticed,
I am using the following code: if (store.getItem('TopicID') != 00) TopidID is always 4
Possible Duplicate: Is NULL always zero in C? Following code: char *p1 = 0;
Is the following always acceptable code? It seems to work, but does it consistently
I am using following PHP code for trigger creation but always get error, please

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.