[FieldFrameworkException: Field with name '_option' culture '*' throws exception when fetching data.]

After running the Update-LitiumDatabase script we recieve this error:

System.Exception: 'Error mapping types.

Mapping types:
FieldDefinitionEntity -> FieldDefinition
Litium.Application.FieldFramework.Data.FieldDefinitionEntity -> Litium.FieldFramework.FieldDefinition

Type Map configuration:
FieldDefinitionEntity -> FieldDefinition
Litium.Application.FieldFramework.Data.FieldDefinitionEntity -> Litium.FieldFramework.FieldDefinition

What are we missing here?

Litium version: [7.2.3]

I think AreaType is missing from that field in DB.

Sounds like there’s field data in the database that’s referencing a type that’s not available. Is the class FilterFieldTypeMetadata still in the solution? If it’s not needed anymore you could try removing it from FieldFramework.FieldDefinitionFieldData table, you can see in the JsonValue column which data references which type.

Removing the “_options entry” for AcceleratorFilterField in the database solved the issue. Excellent!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.