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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:52:37+00:00 2026-05-22T00:52:37+00:00

I keep getting this error with my below LINQ statement, and I can’t figure

  • 0

I keep getting this error with my below LINQ statement, and I can’t figure out why.

The text data type cannot be selected as DISTINCT because it is not comparable.

var reportLoad = from dash in
                 (from rl in QVuser.QlikViewPermissions
                  join d in QVuser.QlikViewDashboards on rl.DashboardId equals d.DashboardId
                   where rl.UserId == user && rl.Active == true
                   group rl by new { DashName = d.DashboardName, DashProdLink = d.ProductionLink, DashTestLink = d.TestLink } into g
                   select new { DashName = g.Key.DashName, DashProdLink = g.Key.DashProdLink, DashTestLink = g.Key.DashTestLink })
                       select new
                       {
                            DashName = dash.DashName,
                            DashLink = (whichServer.UseProductionServer ? dash.DashProdLink : dash.DashTestLink)
                       };

this.DataList1.DataSource = reportLoad;
this.DataList1.DataBind();
  • 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-05-22T00:52:38+00:00Added an answer on May 22, 2026 at 12:52 am

    I figured it out.

    var reportLoad =    from d in QVuser.QlikViewDashboards
                        orderby d.DashboardName
                        select new
                        {
                        DashName = d.DashboardName,
                        DashLink =
                                 from dd in QVuser.QlikViewDashboards
                                  join p in QVuser.QlikViewPermissions on d.DashboardId equals p.DashboardId
                                  where p.UserId == user && p.Active == true
                                  group dd by dd.DashboardName into g
                                  select (whichServer.UseProductionServer ? d.ProductionLink : d.TestLink)
                        };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use slime from CVS (2009-01-05) but keep getting this error: LOAD:
I keep getting this NPE in my application and I can't seem to get
I keep getting tasks that are above my skill level. How can I address this without coming accross as grossly incompetent?
I keep getting this error when trying to delete a record from my table.
I'm using the Html Agility Pack and I keep getting this error. The remote
On first load of my Silverlight application I keep getting this error: Could not
I keep getting a PermGen error on my Tomcat 6 server. I know what
I want to rename a database, but keep getting the error that 'couldn't get
I keep getting compiler errors when I try to access flashVars in an AS3
I keep getting asked about AppDomains in interviews, and I know the basics :

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.