Solucionando Problemas: Erro ao receber mensagens IDOC, WCF-SAP (pt-BR)

Solucionando Problemas: Erro ao receber mensagens IDOC, WCF-SAP (pt-BR)



Descrição do Problema

Considere o seguinte erro:

An error occurred when trying to convert byte array: [32-00-30-00-31-00-30-00-30-00-30-00-30-00-30-00] of RFCTYPE: RFCTYPE_DATE with length: 8 and decimals: 0 to a .Net type. The parameter/field name is: CREDAT. ---> System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.

Causa

Isso acontece pois o SAP está tentando enviar um Unicode-IDOC enquanto a RFC Destination está setada como non-Unicode, truncando os dados.

Solução

Recriar a RFC Destination e setar como Unicode.

Referências

Dica do meu amigo @diegoyamasaki

Autor

Ruth Resende
MVP BizTalk Server
Leave a Comment
  • Please add 2 and 3 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Luciano Lima [MVP] Brazil edited Revision 2. Comment: Alterado o título para padronização.

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Luciano Lima [MVP] Brazil edited Revision 2. Comment: Alterado o título para padronização.

Page 1 of 1 (1 items)