Cadastro de Cliente - Erro ao abrir a ficha cadastral do cliente (is not a valid integer value)

Criado por Debora Carvalho em 15/05/2023 18:06  ·  Atualizado em 15/05/2023 19:47  ·  Leitura: 1 min

Situação: Ao tentar abrir e/ou alterar a ficha cadastral do cliente, o sistema retorna o seguinte erro: " is not a valid integer value"

 

 

Solução: Realizar uma cópia do banco de dados por segurança e após isso, rodar o update abaixo no script executive:

update fichacadastral
set fichacadastral.documentocli = null
where fichacadastral.documentocli = '';
COMMIT; 

update fichacadastral
set fichacadastral.TipoDocumentoDev = null
where fichacadastral.TipoDocumentoDev = '';
COMMIT;

update fichacadastral
set fichacadastral.tipotelcli = null
where fichacadastral.TIPOTELCLI = '';
COMMIT;

Feito isso, abrir o sistema, testar e validar se foi corrigido.