none
Org via deployment service für CRM 2011 anlegen, schlägt fehl RRS feed

  • Frage

  • Hallo,

    beim anlegen über script kommt folgende exception, gibt es dafür eine Lösung?

     

    >Crm Exception: Message: The Deployment Service cannot process the request because one or more validation checks failed., ErrorCode: -2147167645
    [2011-12-16 13:49:28.001] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  160 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | MiniDump.CreateDumpInternal
        at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception)
        at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
        at CrmException..ctor(Int32 errorCode, Object[] arguments)
        at DeploymentRequestChecker.Validate()
        at DeploymentService.Execute(DeploymentServiceRequest request)
        at
        at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
        at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
        at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
        at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
        at MessageRpc.Process(Boolean isOperationContextSet)
        at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
        at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
        at ChannelHandler.AsyncMessagePump(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at AsyncQueueReader.Set(Item item)
        at InputQueue`1.Dispatch()
        at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
        at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
        at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >MiniDump: TraceDirectory setting not set or missing. Defaulting to temporary folder.
    [2011-12-16 13:49:28.001] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  160 |Category: Deployment.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Error | DeploymentExecutionContext.Dispose
        at DeploymentExecutionContext.Dispose(Boolean disposing)
        at DeploymentExecutionContext.Dispose()
        at DeploymentService.Execute(DeploymentServiceRequest request)
        at
        at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
        at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
        at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
        at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
        at MessageRpc.Process(Boolean isOperationContextSet)
        at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
        at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
        at ChannelHandler.AsyncMessagePump(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at AsyncQueueReader.Set(Item item)
        at InputQueue`1.Dispatch()
        at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
        at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
        at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >Exception on the server in CrmDeploymentService.Execute during the execution of BeginCreateOrganizationRequest: Microsoft.Crm.CrmException: The Deployment Service cannot process the request because one or more validation checks failed.
       at Microsoft.Xrm.Sdk.Deployment.DeploymentRequestChecker.Validate()
       at Microsoft.Xrm.Sdk.Deployment.DeploymentService.Execute(DeploymentServiceRequest request)
    [2011-12-16 13:49:28.001] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  160 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ServiceModelTraceRedirector.TraceData
        at ServiceModelTraceRedirector.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data)
        at TraceSource.TraceData(TraceEventType eventType, Int32 id, Object data)
        at DiagnosticTrace.TraceEvent(TraceEventType type, Int32 code, String msdnTraceCode, String description, TraceRecord trace, Exception exception, Object source)
        at ExceptionUtility.TraceHandledException(Exception exception, TraceEventType eventType)
        at MessageRpc.ProcessError(Exception e)
        at MessageRpc.Process(Boolean isOperationContextSet)
        at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
        at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
        at ChannelHandler.AsyncMessagePump(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at ReceiveItemAndVerifySecurityAsyncResult`2.InnerTryReceiveCompletedCallback(IAsyncResult result)
        at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
        at AsyncResult.Complete(Boolean completedSynchronously)
        at AsyncQueueReader.Set(Item item)
        at InputQueue`1.Dispatch()
        at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
        at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
        at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    ><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/de-DE/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>/LM/W3SVC/1/ROOT/XRMDeployment-1-129684313576787737</AppDomain><Exception><ExceptionType>System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFault, Microsoft.Crm.DeploymentService, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The Deployment Service cannot process the request because one or more validation checks failed.</Message><StackTrace>   at Microsoft.Xrm.Sdk.Deployment.DeploymentService.Execute(DeploymentServiceRequest request)
    >   at SyncInvokeExecute(Object , Object[] , Object[] )
    >   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)
    >   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)
    >   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)
    >   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;amp; rpc)
    >   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><ExceptionString>System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFault]: The Deployment Service cannot process the request because one or more validation checks failed. (Fault Detail is equal to Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFault).</ExceptionString></Exception></TraceRecord>

    >SysAdminValidator,  result: Level=Error, Description=You do not have sufficient permission to perform this operation on the specified organization database

    Vielen Dank für jeden Vorschlag.


    greetz dao
    Freitag, 16. Dezember 2011 15:26

Antworten

  • Hallo dao-active,

    durchaus hilfreich wäre hier der von dir verwendete Code. Je kürzer desto besser. :-)

    Viele Grüße,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    • Als Antwort markiert Daniel Ovadia Montag, 19. Dezember 2011 09:33
    Freitag, 16. Dezember 2011 22:37
    Moderator
  • Hi dao,

    Der Benuzter, unter dem du die Statements ausführst hat sicher die nötigen Berechtigungen um eine Organisation anzulegen: Rechte auf Datenbank um Org-DB anzulegen, Rechte in AD um benötigte AD-Gruppen anzulegen, Rechte auf ReportServer um Verzeichnisse etc. anzulegen!?

    Liebe Grüße,

    Andreas


    Andreas Buchinger
    Microsoft Dynamics Certified Technology Specialist
    MCPD: SharePoint Developer 2010
    • Als Antwort markiert Daniel Ovadia Montag, 19. Dezember 2011 09:33
    Sonntag, 18. Dezember 2011 14:43

Alle Antworten

  • Hallo dao-active,

    durchaus hilfreich wäre hier der von dir verwendete Code. Je kürzer desto besser. :-)

    Viele Grüße,
    Jürgen


    Jürgen Beck

    Dipl. Kfm./Wirtschaftsinformatik
    MVP, MCSD.NET, MCITP DBA, MCDBA, MCSE
    Microsoft Certified Business Management Solutions Professional
    Microsoft Certified CRM Developer
    Microsoft Certified Trainer

    ComBeck IT Services & Business Solutions
    Microsoft Gold Certified Partner
    Microsoft Small Business Specialist

    Developing & Supporting Business Applications from small business to big enterprises covering scores of sectors

    http://www.combeck.de
    • Als Antwort markiert Daniel Ovadia Montag, 19. Dezember 2011 09:33
    Freitag, 16. Dezember 2011 22:37
    Moderator
  • Hi dao,

    Der Benuzter, unter dem du die Statements ausführst hat sicher die nötigen Berechtigungen um eine Organisation anzulegen: Rechte auf Datenbank um Org-DB anzulegen, Rechte in AD um benötigte AD-Gruppen anzulegen, Rechte auf ReportServer um Verzeichnisse etc. anzulegen!?

    Liebe Grüße,

    Andreas


    Andreas Buchinger
    Microsoft Dynamics Certified Technology Specialist
    MCPD: SharePoint Developer 2010
    • Als Antwort markiert Daniel Ovadia Montag, 19. Dezember 2011 09:33
    Sonntag, 18. Dezember 2011 14:43
  • Hallo Jürgen,

    danke, das ist der verwendete code:

     

    using (var deploymentServiceClient = Helper.BuildDeploymentServiceClient())

    {

                    string reportServerUrl = string.Format("http://{0}/reportserver", sqlServerName);               

     

                    var organisation = new Microsoft.Xrm.Sdk.Deployment.Organization

                                                                                                     {

                                                                                                                     BaseLanguageCode = 1031,

                                                                                                                     Id = Guid.NewGuid(),

                                                                                                                     FriendlyName = organisationFriendlyName,

                                                                                                                     SqlServerName = sqlServerName,

                                                                                                                     SqmIsEnabled = false,

                                                                                                                     SrsUrl = reportServerUrl,

                                                                                                                     State = OrganizationState.Enabled,

                                                                                                                     UniqueName = organisationUniqueName

                                                                                                     };

     

                    var beginCreateOrganizationRequest = new BeginCreateOrganizationRequest { Organization = organisation };

                   

                    BeginCreateOrganizationResponse beginCreateOrganizationResponse =

                                   (BeginCreateOrganizationResponse)deploymentServiceClient.Execute(beginCreateOrganizationRequest);

     

                    Guid operationId = beginCreateOrganizationResponse.OperationId;

    }


    greetz dao
    Montag, 19. Dezember 2011 08:36
  • Hallo Andreas,

    danke, ja testweise haben wir es mit dem domänenadmin versucht um das ausschliessen zu können, auch seitens sql sysadmin.

     


    greetz dao
    Montag, 19. Dezember 2011 08:39
  • Hallo,

    Natürlich war es ein permission problem. Beim crm deployment haben wir einen user "apppooluser" genutzt, auch als wir das anlegen über script mit dem doaminadmin getestet haben, nuttz crm im sql trotzdem diesen appppoolaccount, somit musste ich nur den apppoluser im sql zum sysadmin machen, jetzt läuft das script.

    Danke euch!


    greetz dao
    Montag, 19. Dezember 2011 09:33