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

  • Home
  • SEARCH
  • 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 8194909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:57:54+00:00 2026-06-07T04:57:54+00:00

I am using Fluent NHibernate on sqlserverce. Using NHibernate QueryOver I try to retrieve

  • 0

I am using Fluent NHibernate on sqlserverce.
Using NHibernate QueryOver I try to retrieve a row – NHibernate generate automatically a a join query
and I get the following Exception:

[SQL: SELECT tag FROM CheckpointToProtectionGroup cp2pg 
      JOIN CheckpointStorageObject cp ON cp.id = cp2pg.checkpoint_id 
      JOIN ProtectionGroupCheckpointStorageObject pg ON pg.id = cp2pg.vpg_id 
      WHERE cp.CheckpointIdentifierIdentifier = 1111  AND 
            pg.ProtectionGroupIdentifierGroupGuid = 
               11111111-1111-1111-1111-111111111111]
---> System.Data.SqlServerCe.SqlCeException: 
     The conversion is not supported. 
     [ Type to convert from (if known) = uniqueidentifier, 
       Type to convert to (if known) = numeric ]

From what I see, it seems that it tries to convert the value – 11111111-1111-1111-1111-111111111111 to numeric but this value is a Guid field:

CheckpointToProtectionGroup checkpointToProtectionGroup = Session
            .QueryOver<CheckpointToProtectionGroup>()
            .JoinQueryOver( row => row.ProtectionGroup)
            .Where(row => row.ProtectionGroupIdentifier.GroupGuid == 
                   protectionGroupIdentifier.GroupGuid)
            .SingleOrDefault();

ProtectionGroupIdentifier.GroupGuid is of Guid type

  • 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-07T04:57:57+00:00Added an answer on June 7, 2026 at 4:57 am

    Looks like your GroupGuid value is not correctly converted to SQL. It should have single quotes around the value.

    pg.ProtectionGroupIndentifierGroupGuidId = '11111111-1111-1111-1111-111111111111'
    

    SQL Server tried to convert left hand value from uniqueidentifier (Guid) to numeric, since the right hand value is numeric value – numeric subtract operation with few operands.

    You have protectionGroupIdentifier.GroupGuid value in Where part of your QueryOver expression. Check if GroupGuid is indeed Guid property. If it’s an object property, cast it to Guid.

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

Sidebar

Related Questions

I have problem using Fluent Nhibernate, I have following model. When I try to
I am using Fluent NHibernate with an external 'hibernate.cfg.xml' file. Following is the configuration
Currently I'm using Fluent NHibernate to generate my database schema, but I want the
I'm using Fluent NHibernate and need to get my Connection String from the connection.connection_string
I'm trying to get logging enabled on my application using Fluent NHibernate and log4net.
I'm trying to do a join like this using fluent nhibernate: Id(x => x.Id);
I've just started using Fluent NHibernate and have run into the following problem trying
I'm enjoying using Fluent NHibernate with AutoMappings but every now and then I get
I am using Fluent-NHibernate (with automapping) to generate my tables but would like to
I am using Fluent NHibernate and would like to use linq to query my

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.