<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Entity Framework and OData error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/entity-framework-and-odata-error/qaa-p/13824288#M4855131</link>
    <description>&lt;P&gt;Do you have more information about the issue? E.g. table, schema, sample data, $metadata, how web service is designed, anything?!&lt;/P&gt;
&lt;P&gt;If not, I suggest you to enable SQL traces and analyze logs. E.g. here &lt;A href="https://sqlanywhere-forum.sap.com/questions/19508/how-to-logtrace-sql-statements"&gt;https://sqlanywhere-forum.sap.com/questions/19508/how-to-logtrace-sql-statements&lt;/A&gt;
or here: (-zr level) &lt;A href="http://dcx.sap.com/sqla170/en/html/3bc8723c6c5f10149da5dc2f3b74259d.html"&gt;http://dcx.sap.com/sqla170/en/html/3bc8723c6c5f10149da5dc2f3b74259d.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 08:10:26 GMT</pubDate>
    <dc:creator>Vlad</dc:creator>
    <dc:date>2020-10-30T08:10:26Z</dc:date>
    <item>
      <title>Entity Framework and OData error</title>
      <link>https://community.sap.com/t5/technology-q-a/entity-framework-and-odata-error/qaq-p/13824287</link>
      <description>&lt;P&gt;Hi,
I am experiencing a strange error while using SQL Anywhere .NET Framework provider with OData.
I created a Web API application that exposes a standard OData GET query.
Everything works fine using a simple api call like:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;GET &lt;A href="http://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/odata/EOrder
" target="test_blank"&gt;http://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/odata/EOrder
&lt;/A&gt;&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;It crashes when using:&lt;BR /&gt;
&lt;STRONG&gt;&lt;A href="http://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/odata/EOrder?$select=&amp;lt;column" target="test_blank"&gt;http://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/odata/EOrder?$select=&amp;lt;column&lt;/A&gt; list=""&amp;gt;&lt;/STRONG&gt; &lt;BR /&gt;
Basically it seems failing every time I use some OQuery options.&lt;/P&gt;
&lt;P&gt;It produces the following error&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;Message: "Cannot convert 'e4b8a7a6-d7c5-4adf-99ed-8bb046c3c8...' to integer"
Source: "SQL Anywhere .NET Data Provider"

Stacktrace
   at Sap.Data.SQLAnywhere.SACommand._ExecuteReader(CommandBehavior commandBehavior, Boolean isExecuteScalar, Boolean isBeginExecuteReader)
   at Sap.Data.SQLAnywhere.SACommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
   at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
   at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Oct 2020 05:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/entity-framework-and-odata-error/qaq-p/13824287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-10-27T05:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Framework and OData error</title>
      <link>https://community.sap.com/t5/technology-q-a/entity-framework-and-odata-error/qaa-p/13824288#M4855131</link>
      <description>&lt;P&gt;Do you have more information about the issue? E.g. table, schema, sample data, $metadata, how web service is designed, anything?!&lt;/P&gt;
&lt;P&gt;If not, I suggest you to enable SQL traces and analyze logs. E.g. here &lt;A href="https://sqlanywhere-forum.sap.com/questions/19508/how-to-logtrace-sql-statements"&gt;https://sqlanywhere-forum.sap.com/questions/19508/how-to-logtrace-sql-statements&lt;/A&gt;
or here: (-zr level) &lt;A href="http://dcx.sap.com/sqla170/en/html/3bc8723c6c5f10149da5dc2f3b74259d.html"&gt;http://dcx.sap.com/sqla170/en/html/3bc8723c6c5f10149da5dc2f3b74259d.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 08:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/entity-framework-and-odata-error/qaa-p/13824288#M4855131</guid>
      <dc:creator>Vlad</dc:creator>
      <dc:date>2020-10-30T08:10:26Z</dc:date>
    </item>
  </channel>
</rss>

