Can not convert value to enum type Glass.Mapper.Sc.Fields.TriState

273 views
Skip to first unread message

Sergej Kravchenko

unread,
Jun 6, 2014, 5:09:55 AM6/6/14
to glass...@googlegroups.com
Hi Guys,

Encountered with issue in Glass.Mapper.Sc 3.1.2.18, throws an exception if we try to use Developer Field type Tristate in Sitecore 7.1
[MapperException: Can not convert value  to enum type Glass.Mapper.Sc.Fields.TriState]
   Glass.Mapper.Sc.DataMappers.SitecoreFieldEnumMapper.GetFieldValue(String fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context) +428
   Glass.Mapper.Sc.DataMappers.AbstractSitecoreFieldMapper.GetField(Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context) +124

[MapperException: Failed to map field SSL Secure with value ]
   Glass.Mapper.Sc.DataMappers.AbstractSitecoreFieldMapper.GetField(Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context) +326
   Glass.Mapper.AbstractDataMapper.MapCmsToProperty(AbstractDataMappingContext mappingContext) +29
   Glass.Mapper.Configuration.AbstractTypeConfiguration.MapPropertiesToObject(Object obj, IAbstractService service, AbstractTypeCreationContext context) +188

[MapperException: Failed to map property SSL_Secure on London.edu.DataModel.BasePageTemplate]
   Glass.Mapper.Configuration.AbstractTypeConfiguration.MapPropertiesToObject(Object obj, IAbstractService service, AbstractTypeCreationContext context) +519

Sergej Kravchenko

unread,
Jun 9, 2014, 5:33:11 AM6/9/14
to glass...@googlegroups.com
Problem will be resolve in latest release later this week, thanks to Mike Edwards.

Leigh Kaszick

unread,
Aug 14, 2014, 7:03:54 PM8/14/14
to glass...@googlegroups.com
Did this issue ever get resolved?
Reply all
Reply to author
Forward
0 new messages