Mirroring logs "Value cannot be null" when importing files

Found in

EPiServer.CMS.Core 10.1.0

Fixed in

EPiServer.CMS.Core 10.3.2


Nov 24, 2016


Jun 27, 2018


CMS Core


Closed, Fixed and tested


Steps to reproduce.

  1. Set up mirroring between two sites.
  2. Create a page and add a file on a page.
  3. Run the mirroring.

Expected: Job completes without error/warning.
Actual: Exception: Value cannot be null. Parameter name: key
2016-11-24 10:28:21,177 [14] ERROR EPiServer.Core.Transfer.TransferLogger: 10.5.3 Export/import error: Exception: Value cannot be null.
Parameter name: key
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at EPiServer.Enterprise.Internal.DefaultDataImporter.ImportFiles(XmlTextReader reader, ZipPackage package)
at EPiServer.Enterprise.Internal.DefaultDataImporter.ImportStream(ZipPackage package, XmlTextReader reader, String partName)

Note: Even though the exception is thrown, all pages and files are imported on target site.