none
Error al crear entidad RRS feed

  • Pregunta

  • Buenas,

    Al intentar crear una entidad nueva me aparece el error "Argumento no válido". Utilizando el CrmDiagTool he sacado los logs. Por lo que he leido por ahí, el error viene de que no está el rol SystemCustomizer

    http://dmcrm.blogspot.com/2007/09/system-customizer-role.html
    http://mscrm-es.blogspot.com/search/label/Microsoft%20CRM%204.0

    Alguna idea de cómo solucionarlo? En teoría aparece una solución en el segundo link, pero no la entiendo, la verdad...


    [2008-11-14 08:39:57.8] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:    6 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
        at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
        at CrmArgumentException..ctor(String message)
        at Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)
        at RoleServiceInternal`1.AddPrivileges(Guid roleId, RolePrivilege[] privileges, ExecutionContext context)
        at SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context)
        at SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context)
        at EntityService.CreateInternal(EntityCreateInfo entityInfo, ExecutionContext context)
        at EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context)
        at EntityService.Create(EntityCreateInfo entityInfo)
        at EntityCreate.Execute(IUser user, ParameterBag paramBag)
        at SystemCustomization.CreateEntity(XmlNode data)
        at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
        at LogicalMethodInfo.Invoke(Object target, Object[] values)
        at WebServiceHandler.Invoke()
        at WebServiceHandler.CoreProcessRequest()
        at SyncSessionlessHandler.ProcessRequest(HttpContext context)
        at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
        at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
        at ApplicationStepManager.ResumeSteps(Exception error)
        at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
        at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
        at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
        at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >Crm Exception: Message: roleId, ErrorCode: -2147220989, InnerException: System.ArgumentException: roleId
    [2008-11-14 08:39:57.8] Process: w3wp |Organization:f24da05b-a9dd-4daf-a072-7bf0201e517a |Thread:    6 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error | EntityService.Create
        at EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context)
        at EntityService.Create(EntityCreateInfo entityInfo)
        at EntityCreate.Execute(IUser user, ParameterBag paramBag)
        at SystemCustomization.CreateEntity(XmlNode data)
        at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
        at LogicalMethodInfo.Invoke(Object target, Object[] values)
        at WebServiceHandler.Invoke()
        at WebServiceHandler.CoreProcessRequest()
        at SyncSessionlessHandler.ProcessRequest(HttpContext context)
        at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
        at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
        at ApplicationStepManager.ResumeSteps(Exception error)
        at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
        at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
        at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
        at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >EntityService.Create caught exception: Microsoft.Crm.CrmArgumentException: roleId ---> System.ArgumentException: roleId
       --- Fin del seguimiento de la pila de la excepción interna ---
       en Microsoft.Crm.Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)
       en Microsoft.Crm.ObjectModel.RoleServiceInternal`1.AddPrivileges(Guid roleId, RolePrivilege[] privileges, ExecutionContext context)
       en Microsoft.Crm.Metadata.SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context)
       en Microsoft.Crm.Metadata.SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context)
       en Microsoft.Crm.Metadata.EntityService.CreateInternal(EntityCreateInfo entityInfo, ExecutionContext context)
       en Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context)

    [2008-11-14 08:39:58.4] Process: w3wp |Organization:f24da05b-a9dd-4daf-a072-7bf0201e517a |Thread:    6 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
        at ErrorInformation.LogError()
        at ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError)
        at ErrorInformation..ctor(Exception exception, Uri requestUrl)
        at AppWebService.CreateSoapException(Exception innerException)
        at SystemCustomization.CreateEntity(XmlNode data)
        at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
        at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
        at LogicalMethodInfo.Invoke(Object target, Object[] values)
        at WebServiceHandler.Invoke()
        at WebServiceHandler.CoreProcessRequest()
        at SyncSessionlessHandler.ProcessRequest(HttpContext context)
        at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
        at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
        at ApplicationStepManager.ResumeSteps(Exception error)
        at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
        at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
        at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
        at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: roleId

    Error Number: 0x80040203

    Error Message: roleId

    Error Details: roleId

    Source File: Not available

    Line Number: Not available

    Request URL: http://server_crm/ArionDataCRM/AppWebServices/SystemCustomization.asmx

    Stack Trace Info: [ArgumentException: roleId]


    [CrmArgumentException: roleId]
       en Microsoft.Crm.Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)
       en Microsoft.Crm.ObjectModel.RoleServiceInternal`1.AddPrivileges(Guid roleId, RolePrivilege[] privileges, ExecutionContext context)
       en Microsoft.Crm.Metadata.SecurityHelper.AddPrivilegesToUserRole(RolePrivilege[] privileges, Guid[] roleTemplates, ExecutionContext context)
       en Microsoft.Crm.Metadata.SecurityHelper.CreateEntityHelper(IEntityDescription entityDescription, OwnershipTypes ownershipTypeMask, ExecutionContext context)
       en Microsoft.Crm.Metadata.EntityService.CreateInternal(EntityCreateInfo entityInfo, ExecutionContext context)
       en Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo, ExecutionContext context)
       en Microsoft.Crm.Metadata.EntityService.Create(EntityCreateInfo entityInfo)
       en Microsoft.Crm.Application.WebServices.SystemCustomization.EntityCreate.Execute(IUser user, ParameterBag paramBag)
       en Microsoft.Crm.Application.WebServices.SystemCustomization.SystemCustomization.CreateEntity(XmlNode data)



    viernes, 14 de noviembre de 2008 8:26