web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error Creating custom entity

(0) ShareShare
ReportReport
Posted on by 55

Hi everybody,

I have a big problem with our crm 2011 installation. We did the whole upgrade from 1.2 up to 2011.

Today I tried to create a custom entity but failed with this error:

[2013-09-19 21:50:24.120] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   21 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 899ce6e1-597e-4690-9d8c-72104db998f6 | CrmException..ctor  ilOffset = 0x0

at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x0

at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x0

at Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)  ilOffset = 0x18

at RoleServiceInternal`1.AddNewPrivilegesToExistingRole(Guid roleId, RolePrivilege[] privileges, ExecutionContext context)  ilOffset = 0xB

at SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context)  ilOffset = 0x190

at SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context)  ilOffset = 0x122

at EntityService.CreateInternal(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)  ilOffset = 0x3E

at EntityService.Create(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)  ilOffset = 0xB1

at EntityService.Create(EntityCreateInfo entityInfo, Guid solutionId)  ilOffset = 0x2E

at EntityCreate.Execute(Guid solutionId, ParameterBag paramBag)  ilOffset = 0xFE

at SystemCustomization.CreateEntity(XmlNode data)  ilOffset = 0x16

at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)  ilOffset = 0xFFFFFFFF

at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)  ilOffset = 0x101

at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x0

at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

at WebServiceHandler.Invoke()  ilOffset = 0xC3

at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x0

at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x11D

at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10E

at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0xFC

at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x45

>Crm Exception: Message: Expected non-empty Guid., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty Guid.

Parametername: roleId

[2013-09-19 21:50:24.167] Process: w3wp |Organization:bf9ae8a0-4e4f-4303-a57a-f5205efe7f79 |Thread:   21 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 899ce6e1-597e-4690-9d8c-72104db998f6 | EntityService.Create  ilOffset = 0xB1

at EntityService.Create(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context)  ilOffset = 0xB1

at EntityService.Create(EntityCreateInfo entityInfo, Guid solutionId)  ilOffset = 0x2E

at EntityCreate.Execute(Guid solutionId, ParameterBag paramBag)  ilOffset = 0xFE

at SystemCustomization.CreateEntity(XmlNode data)  ilOffset = 0x16

at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)  ilOffset = 0xFFFFFFFF

at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)  ilOffset = 0x101

at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x0

at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

at WebServiceHandler.Invoke()  ilOffset = 0xC3

at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x0

at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x11D

at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10E

at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0xFC

at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x45

>EntityService.Create caught exception: Microsoft.Crm.CrmArgumentException: Expected non-empty Guid. ---> System.ArgumentException: Expected non-empty Guid.

Parametername: roleId

Has anybody an idea how to fix this?

From my understanding we are missing a default role (compared to a new installed demo organisation - yes) an beacause of this the creation fails.

Many Thanks,

Martin

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    I would suggest raising a support ticket with Microsoft - it sounds like an upgrade issue that can't be sorted out without an adjustment to directly to the CRM Database:

    rc.crm.dynamics.com/.../support.aspx

  • JBirnbau Profile Picture
    on at

    Hi Martin,

    As Scott mentioned, this will likely require a support case to determine how best to address the missing security role GUID. If you decide to open a support case, I would recommend executing the following query against your ORG_MSCRM database to help provide some focus on where the GUID is missing:

    SELECT RoleId, Name FROM RoleBase

    All of the records in this table should have 32-digit GUIDs in the RoleId column. Also, for your reference, this is a list of all of the default security roles in a fresh installation of CRM 2011:

    CEO-Business Manager
    CSR Manager
    Customer Service Representative
    Delegate
    Marketing Manager
    Marketing Professional
    Sales Manager
    Salesperson
    Schedule Manager
    Scheduler
    Support User
    System Administrator
    System Customizer
    Vice President of Marketing
    Vice President of Sales

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans