'CompareObjectEqual' has no supported translation to SQL

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
pm620wh
Posts: 11
Joined: Sun 08 Feb 2009 15:09

'CompareObjectEqual' has no supported translation to SQL

Post by pm620wh » Tue 10 Feb 2009 18:21

Hi

Environment:
I am developing on Windows XP using mySQL 5.0.45
I'm using the Entity Developer 1.0.53 in conjunction with VS2008 (with VB)

I have a standard LINQ query used against different tables in my application which work fine. When I try to use essentially the same query against one particular table, it results in the following error:

method 'CompareObjectEqual' has no supported translation to SQL

The LINQ query is

Dim certD = From cde In dataContext.certdetails _
Where cde.URN = lngcertdetailURN

I have no idea why this would fail here, and not elsewhere in my code when referencing other tables.

Any help would be greatly appreciated.

pm620wh
Posts: 11
Joined: Sun 08 Feb 2009 15:09

Fixed the issue - sorry for inconvenience :-(

Post by pm620wh » Wed 11 Feb 2009 08:51

Hi

Further troubleshooting (and a good nights sleep) revealed that my variable 'lngcertdetailURN' had not been typed i.e.

Dim lngcertdetailURN As Long

The 'As Long' was missing

Caused a lot of upset.

Thanks for any time you may have spent looking at this one.
Last edited by pm620wh on Wed 11 Feb 2009 13:40, edited 1 time in total.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 11 Feb 2009 12:44

Could you please post here the table's definition script?
Or send it to me (andreyr * devart * com or support * devart * com with subject similar to your post subject).

Post Reply