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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:14:15+00:00 2026-06-17T09:14:15+00:00

I’m using the code from the below blog entry to re-assign user queries to

  • 0

I’m using the code from the below blog entry to re-assign user queries to a different user. I have ran the DB Update statement in the database (as shown on the blog below).

http://mscrmblogger.com/2009/02/04/crm-4-userquery-privileges-for-system-administrators/

Here’s my code:

  CrmAuthenticationToken token = new CrmAuthenticationToken();  
  token.AuthenticationType = AuthenticationType.AD; 
  token.OrganizationName = Request.Params["orgname"];  

  CrmService crmService = new CrmService(); 
  crmService.Url = ConfigurationManager.AppSettings["WebServiceUrl"]; 
  crmService.CrmAuthenticationTokenValue = token;  
  crmService.PreAuthenticate = true;
  crmService.UseDefaultCredentials = false;
  crmService.Credentials = new NetworkCredentials(username, password, domain);  

  SecurityPrincipal newowner = new SecurityPrincipal();  
  newowner.Type = SecurityPrincipalType.User;  
  newowner.PrincipalId = new Guid(userid);  

  TargetOwnedUserQuery query = new TargetOwnedUserQuery();  
  query.EntityId = new Guid(queryid);  

  AssignRequest assign = new AssignRequest();  
  assign.Assignee = newowner;  
  assign.Target = query;  

  AssignResponse assignResponse = (AssignResponse)crmService.Execute(assign);  

When running this code, I get the below exceptions at the crmService.Execute().

SOAP Exception
Message: Server was unable to process request
Inner Detail: 0x8000404ff Cannot assign Offline Filters Platform

When running this for a couple of the user queries, I get a few slightly different exceptions. The majority of the user queries return the above/first exception shown above. A few return these different SOAP exceptions.

2) Inner Detail: 0x80048448 Cannot assign address book filters Platform
3) Inner Detail: 0x80040264 Cannot assign Outlook Filters Platform

As far as I know, we aren’t using Offline Filters with our CRM product. We’re also not using anything relating to Outlook integration.

The custom ASPX page is hosted the same server as our CRM and within a ISV folder. The authentication, sitemap customization, and (seemingly) every other piece is working correctly to integrate this as a custom page.

Any tips on how to troubleshoot this?

Thanks

Query to get the UserQueryID, @SystemUserId is passed in via populated dropdown box of users

SELECT [Name], [UserQueryId] 
FROM [UserQueryBase] 
WHERE [OwningUser] = @SystemUserId 
ORDER BY [Name]
  • 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-17T09:14:16+00:00Added an answer on June 17, 2026 at 9:14 am

    So we really need to know how you are getting the Guid of the UserQuery. If you can elaborate on that it would probably help. That said, I’ll take a shot at answering.

    Just because you are not using Outlook doesn’t mean there will not be automatically generated Views and Filters in the database.

    You need to check the UserQuery entity prior to doing the assignment to ensure it is not one of the types generating an error message. You may also wish to log these so you can investigate them further.

    The value to check is userquery.querytype which is a CrmNumber type. It will be an Enum type (use the SDK: SDK\Helpers\CS\CrmHelpers\enums.cs) that uses flags. Use the .HasFlag(integer) to check to see if the attribute contains a flag for a specific type of query.

    See the SDK for a list of potential query types.

    You’ll want to avoid doing assignment of queries designed for offline usage.

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

Sidebar

Related Questions

I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to
I have a view passing on information from a database: def serve_article(request, id): served_article
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am using jsonparser to parse data and images obtained from json response. When

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.