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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:19:02+00:00 2026-06-18T01:19:02+00:00

I was wondering if anyone can offer any pointers on this one. I’m trying

  • 0

I was wondering if anyone can offer any pointers on this one. I’m trying to return ItemStats from the Tridion UGC web service but I’m getting the following error when trying to bind the results:-

The closed type TridionWebUGC.CDS.ItemStat does not have a corresponding LastRatedDate settable property.

An example of code is:-

WebServiceClient ugcCall2 = new WebServiceClient();
    Uri uri = new Uri("http://new.ugc.service/odata.svc");
    CDS.ContentDeliveryService cds = new CDS.ContentDeliveryService(uri);

var myItemStats = cds.ItemStats.Where(p => p.PublicationId == 68 && p.Id == 17792 && p.Type==16);

I can get comments and ratings with no problem. E.g.

    var myComments = cds.Comments.Where(p => p.ItemId == 17805).OrderBy(p => p.CreationDate);

It’s just ItemStats that are giving me an issue. Anybody any ideas?

Thanks

John

  • 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-18T01:19:03+00:00Added an answer on June 18, 2026 at 1:19 am

    Unfortunately, the metadata of the UGC WebService is not correct in regards to the ItemsStats. For you it means that the webservice metadata does not expose the fact that the ItemStat entity contains the LastRatedDate property. This makes your .NET proxies not to be aware of this property and makes your query fail.
    To work-around this defect you have two option:

    1. Add to your service the following property: cds.IgnoreMissingProperties = true;. Advantage of this approach is that you’re done with it in 2 sec. Disadvantage is that you will not be able to access that property (in case you actually use it);
    2. Modify the proxies generated by Visual Studio and manually add that property to the ItemStat class. Advantage of this approach is that you will be able to access the property from your project. Disadvantage is that it’s totally not manageable from the coding point of view, you need to be careful when you upgrade or regenerate the proxies and it’s easy to make a mistake while manually adding the property.

    Note 1: to access the metadata of your webServer from the browser your can go to /odata.svc/$metadata.

    Note 2: on a closer look there are 2 properties missing from the webService metadata: LastRatedDate and LastCommentedDate.

    Hope this helps.

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

Sidebar

Related Questions

I am wondering if anyone can offer any advice towards solving this problem. I
I'm just wondering if anyone can offer any advice on how to improve my
Wondering if anyone here can offer any insight into the ups/downs of using the
Just wondering if anyone can optimize this usortMonths() function to be better? Basically I
Just wondering if anyone has any ideas on how we can style templates... Like
I was wondering if anyone can help me on this cause its driving me
I was wondering if anyone can help me with this scrolling problem using the
Hi I was wondering if anyone can help with this PHP problem. Is it
I'm wondering if anyone has had any luck connecting one FMS to another FMS
wondering if anyone can help. This works, but I was wondering how it would

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.