Olá, após atualizar o componente para a versão do Trunk2 do ACBr a CCe que antes funcionava redondo agora ocorre o erro: 493 – Rejeicao: Evento nao atende o Schema XML especifico.
E a rotina esta assim:
ACBrNFe1.NotasFiscais.Clear;
ACBrNFe1.EventoNFe.Evento.Clear;
ACBrNFe1.EventoNFe.idLote := wlote;
with ACBrNFe1.EventoNFe.Evento.Add do
begin
infEvento.cOrgao := 23;
infEvento.tpAmb := StrToTpAmb(Ok, IntToStr(rgTipoAmb.ItemIndex + 1));
infEvento.chNFe := wnfe;
infEvento.CNPJ := wcnpj;
infEvento.dhEvento := Now;
infEvento.tpEvento := teCCe;
infEvento.versaoEvento := ‘1.00’;
infEvento.nSeqEvento := wSeqEvento;
infEvento.detEvento.xCorrecao := memo_correcao.Text;
infEvento.detEvento.nProt := wprotocolonfe; //Protocolo de Autorização da Nfe
infEvento.detEvento.xCondUso := memo_cond_uso.Text; //Texto fixo conforme NT 2011.003
end;
if ACBrNFe1.EnviarEvento(wlote) then
begin
with ACBrNFe1.WebServices.EnvEvento do
begin
if not (EventoRetorno.retEvento.Items[0].RetInfEvento.cStat in [135, 136]) then
begin
raise EDatabaseError.CreateFmt(
‘Ocorreu o seguinte erro:’ + sLineBreak +
‘Código: %d’ + ‘ – %s’, [
EventoRetorno.retEvento.Items[0].RetInfEvento.cStat,
EventoRetorno.retEvento.Items[0].RetInfEvento.xMotivo
]);
end;
end;
end;
O ACBrNFe1 esta configurado para versão da NF-e; ve310.
Gostaria de uma ajuda pra resolver esse probleminha.
Obrigado.