locked
Custom users view in Service Calendar RRS feed

  • Question

  • In CRM 4.0 I need to see service calendar just for specific group of users.

    I have created custom view on Users entity and saved it under new name “Custom user view”.  When I try to use it, it works fine (shows users which I need). But when I try to see service calendar for users in that view CRM throws me an error: “The requested record was not found or you do not have sufficient permissions to view it.” While viewing service calendar, for type I choose “users” and for view I choose “Custom user view” it throws me the upper message.

    Can anyone please help how to see service calendar just for specific group of users.

    Monday, July 14, 2008 2:02 PM

Answers

  • Is the query with ID = 6969abbd-be51-dd11-b782-000c29268939 a savedquery (created via Customisations), or a userquery (created by saving an Advanced Find query) ?

     

    The behaviour you describe is what I'd expect if the query is a userquery - in which case you need to recreate the query as a savedquery.

     

    For reference, the permission level on the userquery entity can only be set to none or user-level, hence SYSTEM does not have permission on any userqueries

     

    Thursday, July 17, 2008 10:10 AM
    Moderator

All replies

  • Hi,

     

    What's the security role you got? It looks like a permission issue.

    Check your security role settings on the [Service Management] tab.

     

    Cheers,

    Jim

     

    Monday, July 14, 2008 2:48 PM
    Moderator
  • Thank you Jim for a swift reply,

     

    I have a System Administrator role, so I do not think that it is a permission issue.

    Monday, July 14, 2008 3:05 PM
  • I see. I just give it a test here but I don't have this problem.

    You might want to recreate the user view, or just create another test view using very simple Filter Criteria to test.

     

    Jim

     

    Monday, July 14, 2008 3:36 PM
    Moderator
  • Thank you Jim for looking into our problem,

     

    I have tried several times with different views and on different CRM servers (Production and test) and on both I am getting the same error. I have tried even on a clean installation of trial version of CRM server without any customizations on virtual machine and got the same error.

     

    Vlada

    Monday, July 14, 2008 4:39 PM
  • Vlada,

     

    That's odd, I think you need to enable trace for more details.

    http://support.microsoft.com/kb/907490

    (It's probably caused by one or some users you included)

     

    Cheers,

    Jim

    Thursday, July 17, 2008 8:20 AM
    Moderator
  • This is the error that i found in trace file:

     

    >Crm Exception: Message: savedquery With Id = 6969abbd-be51-dd11-b782-000c29268939 Does Not Exist, ErrorCode: -2147220969
    [2008-07-17 10:44:52.8] Process: w3wp |Organization:55747c15-26e3-4949-b0c2-e37946cbd283 |Thread:    6 |Category: Platform |User: 63d158e3-4310-4f2b-b73c-437b664baa7f |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'Retrieve' for 'savedquery'.
    [2008-07-17 10:44:52.8] Process: w3wp |Organization:55747c15-26e3-4949-b0c2-e37946cbd283 |Thread:    6 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x80040217

    Error Message: savedquery With Id = 6969abbd-be51-dd11-b782-000c29268939 Does Not Exist

    Error Details: savedquery With Id = 6969abbd-be51-dd11-b782-000c29268939 Does Not Exist

    Source File: Not available

    Line Number: Not available

    Request URL: http://crmtest:5555/OLCTest/sm/GanttControlFrame.aspx?viewID={6969ABBD-BE51-DD11-B782-000C29268939}&viewType=4230&subareatype=schedules&zoomLevel=4&startDate=2008-07-17T00:00:00&endDate=2008-07-17T00:00:00

    Stack Trace Info: [CrmObjectNotFoundException: savedquery With Id = 6969abbd-be51-dd11-b782-000c29268939 Does Not Exist]
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrievePublishableSingle(BusinessEntityMoniker moniker, EntityExpression entityExpression, Boolean includeUnpublished, ExecutionContext context)

     

    As I can see user with ID = 63d158e3-4310-4f2b-b73c-437b664baa7f is requesting for query ID = 6969abbd-be51-dd11-b782-000c29268939 and is getting message “Does Not Exist”. User with that ID is SYSTEM user, not an actual user, owner of this query is user with ID = f8607a61-783c-dd11-9157-000c29268939, me.

    As if that user SYSTEM does not have enough privileges to view this query.

    Thursday, July 17, 2008 9:20 AM
  • Is the query with ID = 6969abbd-be51-dd11-b782-000c29268939 a savedquery (created via Customisations), or a userquery (created by saving an Advanced Find query) ?

     

    The behaviour you describe is what I'd expect if the query is a userquery - in which case you need to recreate the query as a savedquery.

     

    For reference, the permission level on the userquery entity can only be set to none or user-level, hence SYSTEM does not have permission on any userqueries

     

    Thursday, July 17, 2008 10:10 AM
    Moderator
  •  

    Thank you Jim and David for your help!

    This is a user-query when I made new system-query it worked fine.

    Vlada

    Thursday, July 17, 2008 10:18 AM
  • Hi,

    i am getting this error.

    finally what is the solution ?

    thanks

    prakash


    Prakash visanagiri
    Tuesday, November 16, 2010 10:45 AM