Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Export fails both UI, sync and async

(0) ShareShare
ReportReport
Posted on by 80

Just tried exporting through pipeline, both the sync and async methods fail. I get the following error message, which leads me to believe it is a Microsoft error. Also fails in the UI, but does so silently.

 

2020-11-05T16:17:48.8413539Z System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: An unexpected error occurred. (Fault Detail is equal to Exception details: 
2020-11-05T16:17:48.8414509Z ErrorCode: 0x80040216
2020-11-05T16:17:48.8415347Z Message: An unexpected error occurred.
2020-11-05T16:17:48.8415792Z TimeStamp: 2020-11-05T16:17:48.5310280Z
2020-11-05T16:17:48.8416025Z --
2020-11-05T16:17:48.8416615Z Exception details: 
2020-11-05T16:17:48.8416926Z ErrorCode: 0x80040216
2020-11-05T16:17:48.8417421Z Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
2020-11-05T16:17:48.8420845Z at System.ThrowHelper.ThrowKeyNotFoundException()
2020-11-05T16:17:48.8421140Z at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
2020-11-05T16:17:48.8422264Z at Microsoft.Crm.Tools.ImportExportPublish.SystemFormImportExportDependencyHelper.FillComponentInfoForExport(ComponentInfo dependency, ExecutionContext context)
2020-11-05T16:17:48.8422890Z at Microsoft.Crm.Tools.ImportExportPublish.SolutionHandler.AddAllSolutionRoots(XmlDocument importDocument, XmlNode rootNode, Guid solutionId)
2020-11-05T16:17:48.8423376Z at Microsoft.Crm.Tools.ImportExportPublish.SolutionHandler.ExportItem(XmlDocument importDocument)
2020-11-05T16:17:48.8424362Z at Microsoft.Crm.Tools.ImportExportPublish.ExportHandler.Export(XmlDocument XDoc)
2020-11-05T16:17:48.8424744Z at Microsoft.Crm.Tools.ImportExportPublish.RootExportHandler.RunExport()
2020-11-05T16:17:48.8425045Z at Microsoft.Crm.WebServices.ExportXmlSer...).
2020-11-05T16:17:48.8425317Z Stopped due to error 

 

Server version: 9.1.0000.24345 

  • Jean Joel Kakou Profile Picture
    on at
    Re: Export fails both UI, sync and async

    Hello , This is a know issue, It is related to Dynamics AppforOutlook

     

    Scenario 1:

    Did you have any active layer on this app?  If you are not doing any customization, please do any of the following:

     

    • Remove the active layer from the AppforOutlookModule
    • Remove the AppforOutlookModule from the customer solution.

    Scenario 2:

    If you are doing a customization, you will have to check first this link:

    Replace the ORGURL with your organization  and Solution ID with your soluion

     

    <ORGURL>/api/data/v9.1/solutioncomponents?$filter=_solutionid_value%20eq%20<SOLUTIONID>%20and%20objectid%20eq%2095f2e667-95c3-e611-80d6-00155db7dbc8

     

    Check if the current dashboard with ID “95f2e667-95c3-e611-80d6-00155db7dbc8” is associated to a systemform type 13.

     

    If yes, then you will have to do the following to remove it from the solution:

     

    For scenario 2, we need to remove the component from the solution. As the component is not visible from the UI, we can use the below script to call the RemoveSolutionComponent action.

    Follow the below steps to execute the script.

    • Navigate to the organization 
    • Press F12
    • Copy the below script and replace the SolutionUniqueName with the proper value.
    var Sdk = window.Sdk || {};
    
    Sdk.RemoveSolutionComponent = function(solutionComponent, componentType,solutionUniqueName) {
     this.SolutionComponent = solutionComponent;
     this.ComponentType = componentType;
    	this.SolutionUniqueName = solutionUniqueName;
    };
    
    Sdk.RemoveSolutionComponent.prototype.getMetadata = function () {
     return {
     boundParameter: null,
     parameterTypes: {
     "SolutionComponent": {
     "typeName": "solutioncomponent",
     "structuralProperty": 5 
    			},
     "ComponentType": {
     "typeName": "Edm.Int32",
     "structuralProperty": 1 
    			},
    			 "SolutionUniqueName": {
     "typeName": "Edm.String",
     "structuralProperty": 1 
    			}
     },
     operationType: 0, 
     operationName: "RemoveSolutionComponent",
     };
    };
    
    
    var solutionComponent = {
     "solutioncomponentid": "95f2e667-95c3-e611-80d6-00155db7dbc8"
    }
    
    var componentType = 60;
    var solutionUniqueName = "<SolutionUniqueName>";
    
    var removeSolutionComponent = new Sdk.RemoveSolutionComponent(solutionComponent, componentType,solutionUniqueName);
    
    // Use the request object to execute the function
    Xrm.WebApi.online.execute(removeSolutionComponent).then(
     function(result) {
     if (result.ok) {
     console.log("Status: %s %s", result.status, result.statusText);
     // perform other operations as required;
     }
     },
     function(error) {
     console.log(error.message);
     // handle error conditions
     }
    );

     

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 81 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 53 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard