ZeroFormatter icon indicating copy to clipboard operation
ZeroFormatter copied to clipboard

Type is not supported, please register

Open JedatKinports opened this issue 7 years ago • 3 comments

Type is not supported, occurs invalid error: List`1 InnerException:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Type is not supported, occurs invalid error: ProductHomepageModel InnerException:System.InvalidOperationException: Type is not supported, please register CompletionField

The CompletionField is needed for Elasticsearch suggest feature.

I tried with Formatter.RegisterArray<CompletionField>() but RegisterArray() was not found.

How can I fix this?

JedatKinports avatar Jun 06 '18 08:06 JedatKinports

CompletionField should be properly decored with [ZeroFormatterAttribute] and [Index(n)] attributes. If you can't because of it is not your own code you should implement a specific CompletionField Formatter, see Extensibility section in wiki area.

lorenzoisidori21 avatar Jul 22 '19 07:07 lorenzoisidori21

Same here with proper attributes... Did you find any fix ?

Soahr avatar May 04 '20 14:05 Soahr

same for me, also with proper attributes..

jsipkovsky avatar Aug 19 '21 14:08 jsipkovsky