locked
CRM 2011: Publish All Customizations after Importing Solution is throwing error RRS feed

  • Question

  • Hi,

    I made the changes in one environment -> Created a Solution -> Exported. This created the ZIP file. Now I imported this ZIP file into another environment. The import was successful but when I did "Publish All Customizations" it gave the error as shown below. Can someone help here? Thanks!

    Raghu

    Saturday, March 8, 2014 9:08 AM

All replies

  • What is the update rollup version of the source and target systems?

    Have you considered enabling tracing during the publishing process?


    Hope this helps.
    Adam Vero, Microsoft Certified Trainer | Microsoft Community Contributor 2011
    Blog: Getting IT Right

    Saturday, March 8, 2014 4:50 PM
  • Hi Adam,

    Thanks for the response. Update Rollup 13 is the version on source and target.

    I did not enable the trace. I will check and try it.

    Raghu

    Monday, March 10, 2014 1:55 PM
  • Another thing that might be worth trying is to publish your imported entities one by one. You may find that there's just one of them that's causing the problem. If this is the case, I've found that removing all relationships and web resources will allow it to publish and then you can manually add them back in - usually doing this will reveal the cause of the problem.
    Monday, March 10, 2014 2:45 PM
  • I enabled tracing and noticed the following error. All the changes (specific to the solution which I imported) are working fine. 

    It does look like that "Publish All Customizations" was not working even before the solution import which I did. When I publish the individual entities present in the solution, the publish is happening without any error.

    The below error sounds like a problem associated with plugin. Your thoughts? Thanks!

    command: INSERT INTO #MetadataPublishCollect(ObjectId, ObjectTypeCode, ComponentState) values ('ed36abd8-7f54-4077-8b46-d6f9bf8e71df', None, Publish).
    [2014-03-12 18:34:27.629] Process: w3wp |Organization:fde0a8ee-316f-4718-8cf5-3db0a3928c32 |Thread:   34 |Category: Platform.Sql |User: 4ffd0929-5b64-41c9-aae1-2d0e0a126271 |Level: Verbose |ReqId: 4247a12d-84a0-4127-8c5f-9417861d45ff | DBCommandExecutor.ExecuteNonQuery  ilOffset = 0x46
     at DBCommandExecutor.ExecuteNonQuery(IDbCommand command, ISqlExecutionContext context)  ilOffset = 0x46
     at LocalizedLabelService.PublishByObjectId(Guid[] objectIds, ISqlExecutionContext context)  ilOffset = 0xC7
     at SavedQueryHelper.publishViewsInternal(Boolean forAllEntities, Int32 objectTypeCode, ExecutionContext context)  ilOffset = 0x1B2
     at PublishXml.PublishAll(ExecutionContext context)  ilOffset = 0x5C
     at PublishXmlService.PublishAll(ExecutionContext context)  ilOffset = 0x32
     at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
     at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x84
     at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F
     at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x57
     at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x58
     at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65
     at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4
     at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x156
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)  ilOffset = 0x145
     at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x34
     at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)  ilOffset = 0x24
     at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34
     at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6
     at PublishAllXmlCommand.Execute()  ilOffset = 0x7
     at CustomizationsPublishAll.Execute()  ilOffset = 0x28
     at SystemCustomization.PublishAllCustomizations()  ilOffset = 0x0
     at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF
     at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x34
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0x84
     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 = 0x18D
     at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
     at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    Thursday, March 13, 2014 2:02 AM