This is a migrated thread and some comments may be shown as answers.

How do I get access to all the oData commands?

8 Answers 153 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 03 Nov 2010, 02:03 AM
I have the Astoria V2 service running, and all works well if I just use the Navigation Links specified in the resulting Atom feed...

But any attempt to use $format, or $select seems to bomb with a 400 (or other error).  Im following this oData document

Is there something I need to enable or do that the DSW isn't creating to get me some JSON or XML?


**EDIT**
Oh wait, is it because of this?

Im getting a 500 on a $select

8 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 03 Nov 2010, 05:30 AM
Should I just scrap it and do it from scratch with Entity Framework instead?
(I would very much rather not have to use EF)
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 03 Nov 2010, 05:23 PM
Verbose errors throwing this on a select

  <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
  <code />
  <message xml:lang="en-US">An error occurred while processing this request.</message>
- <innererror>
  <message>An exception occured during the execution of ' Extent<ShopService.Category>.Select(p => IIF((p == null), null, new ProjectedWrapper2() {ResourceTypeName = "ShopService.Category", PropertyNameList = "ParentID,ID", ProjectedProperty0 = Convert((p As Category).ParentID), ProjectedProperty1 = Convert(Convert((p As Category).ID))}))'. See InnerException for more details.</message>
  <type>System.InvalidOperationException</type>
  <stacktrace>at Telerik.OpenAccess.Query.ExpressionCompiler.PerformDatabaseQuery(Type type, Int32 elementAt, Object[] groupResolutionParamValues, Boolean single) at Telerik.OpenAccess.Query.ExpressionExecution.PerformDatabaseQuery[T](Piece`1 piece, Object[] grpVals) at Telerik.OpenAccess.Query.Piece`1.System.Collections.IEnumerable.GetEnumerator() at System.Data.Services.Internal.ProjectedWrapper.EnumerableWrapper.GetEnumerator() at System.Data.Services.WebUtil.GetRequestEnumerator(IEnumerable enumerable) at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService) at System.Data.Services.DataService`1.HandleRequest()</stacktrace>
- <internalexception>
  <message>Unable to cast object of type 'System.Object[]' to type 'OpenAccessRuntime.DataObjects.query.Node'.</message>
  <type>System.InvalidCastException</type>
  <stacktrace>at Telerik.OpenAccess.Query.ExpressionCompiler.PerformDatabaseQueryImpl(Type type, Int32 elementAt, Object[] groupResolutionParamValues, Boolean single) at Telerik.OpenAccess.Query.ExpressionCompiler.PerformDatabaseQuery(Type type, Int32 elementAt, Object[] groupResolutionParamValues, Boolean single)</stacktrace>
  </internalexception>
  </innererror>
  </error>
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 03 Nov 2010, 06:17 PM
Works fine with EF
0
Petko_I
Telerik team
answered on 08 Nov 2010, 10:46 AM
Hello Steve,

Firstly, we would like to apologize for the inconvenience caused. The error you are receiving is one that we are aware of and we are addressing this issue. We are currently redesigning our provider for the Data Services with which we will extend our supported features in the area. Unfortunately the changes will not make it into the Q3 official release but we will provide a resolution as soon as possible. In your first post you have correctly identified another related topic which essentially addresses the same issue. There will be further improvements in the Data Services Wizard which will come together with the extended support for the Data Services.

All the best,
Petko_I
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
G.
Top achievements
Rank 1
answered on 10 May 2011, 03:57 PM
Petko - I am using 2001 Q1 Release and it appears that you have the $filter issue fixed, but I still cannot use $select against the OData service I created on top of a Model generated by OA. Any plans on addressing this soon? I also posted a description here
0
Thomas
Telerik team
answered on 11 May 2011, 04:56 PM
Hello G.,

I just fixed this issue ($select puts a protective conditional into the LINQ that is not handled correctly.)
The next version will have the needed changes; no release date has been set yet. 

Greetings,
Thomas
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
G.
Top achievements
Rank 1
answered on 11 May 2011, 05:01 PM
Thanks, Thomas. It is great to see a company that takes support as seriously as you guys do. Please post here when you decide if the fix will be a prat of a hotfix, realease or otherwise available. Thanks again for you help. G.
0
Thomas
Telerik team
answered on 20 Jun 2011, 03:21 PM
Hello G.,

this issue was fixed, we improved our projeciton handling greatly. The upcoming Q2 2011 release will contain the needed bits.

Best wishes,
Thomas
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
Web Services
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Petko_I
Telerik team
G.
Top achievements
Rank 1
Thomas
Telerik team
Share this question
or