We have moved to GitHub Issues
Created by Kevin Jump 12 Mar 2014, 10:12:47 Updated by Sebastiaan Janssen 24 Mar 2014, 14:24:16
When exporting a DataType using the Packaging Service, you get a YSOD because the value of the pre value is null:
System.ArgumentNullException: Value cannot be null. Parameter name: value at System.Xml.Linq.XAttribute..ctor(XName name, Object value) at Umbraco.Core.Services.PackagingService.Export(IDataTypeDefinition dataTypeDefinition, Boolean raiseEvents) at jumps.umbraco.usync.SyncDataType.SaveToDisk(IDataTypeDefinition item)
Looking at it - it looks like exports of DataTypeDefinitions fail if a Numeric PropertyValue has no value as it returns null.
'''How to Reproduce:''' If you create a Multi Node Tree picker Data Type, and then call PackageService.Export on the DataTypeDefinition it fails if the MinValue or MaxValue are not set. with
'''Pull Request has been submitted for the fix: https://github.com/umbraco/Umbraco-CMS/pull/313'''
@KevinJump I can assume this is fixed then with the PRs that were merged in?
Just tested an it looks great now:
Considering it fixed.
Assignee: Shannon Deminick
Difficulty: Very Easy
Backwards Compatible: True
Fix Submitted: Pull request
Affected versions: 7.1.0, 6.2.0
Due in version: 7.1.0, 6.2.0