#Prosoft

F1468-Falha ao instanciar inicializar o plugin Wkb.OnPremises.Fiscal.Integra.Engine. - Log do Integrador- Cannot deserialize the current JSON object - Prosoft Fiscal

Sumário

Sistema: Intax.

Contexto: Este artigo tem como objetivo orientar na correção do erro: Falha ao instanciar/ inicializar o plugin Wkb.OnPremises.Fiscal.Integra.Engine na rotina Monitoramento Integrações do Intax.

image-2025-1-24_14-49-40.png

Ao acessar o Log do Integrador é apresentado a mensagem abaixo:

[Wkb.Integra.Local.Infra.IntegraLogger] MessagePluginExecutorHandler - Falha ao instanciar/inicializar o plugin Wkb.OnPremises.Fiscal.Integra.Engine (log GUID: 0bfc03cd-d04c-4e12-8b47-8a96ebf14fb7).
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Wkb.OnPremises.Fiscal.Integra.Engine.Domain.Model.Integracao.ConfModel]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'Server', line 1, position 10.

Informações Adicionais: Verificar a estrutura do arquivo Integra.Conf [{"Server":"nomedoservidor","Proemp":"?PROEMP??"}]

Resolução

1 - Acessar o caminho: ?:\Prosoft.win\Scop\Componentes.NET\Wkb.Integra.Plugin localizar o arquivo integra.conf, deve conter Abertura de Colchete + abertura de Chaves + Nome do servidor + proemp + fechar Chaves + fechar Colchetes.

Exemplo: [{"Server":"nomedoservidor","Proemp":"?PROEMP??"}]