Table

EFDocHist_BR

NF-e history

History of messages and status changes for a Brazilian NF-e. Each record links to the electronic fiscal document and may link to an authority and a return code. It records the date, time, message details and contingency mode.

Table name
EFDocHist_BR
Module
Fiscal books brazil
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ContingencyModeContingency mode that applied, such as SCAN or SVC-AN.Enum
EFDocContingMode_BR (enum)
NoNone
ContingencyReasonReason why contingency mode was used.String (255)
EFDocContingencyReason_BR
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateDate of the history entry.Date
TransDate
NoNone
EFDocAuthorityAuthority that the message relates to.String
EFDocAuthorityId_BR
NoEFDocAuthority_BR.AuthorityIdNone
EFDRefRecIdElectronic fiscal document (NF-e) that the entry belongs to.Int64
RefRecId
NoEFDocument_BR.RecIdNone
FiscalDocStatusStatus of the fiscal document, such as approved, cancelled or rejected.Enum
FiscalDocumentStatus_BR (enum)
NoNone
MessageStatusState of the message: waiting to send, sent or processed.Enum
EFDocMessageStatus_BR (enum)
NoNone
MessageTypeKind of message: NF-e, discard, cancel or cancel by substitution.Enum
EFDocMessageType_BR (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReceiptNumberReceipt number for the message.String (15)
EFDocReceiptNumber_BR
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReturnCodeDescriptionText that explains the return code.String (255)
EFDocReturnCodeDescription_BR
NoNone
ReturnCodeRefRecIdReturn code (NF-e rejection code) for the message. The label talks about price currency, which does not match the relation.low confidenceInt64
ReturnCodeId_BR
NoEFDReturnCode_BR.RecIdNone
ReturnMessageMessage returned by SEFAZ, the tax authority.String (200)
EFDocReturnMessage_BR
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimeTime of the history entry.Time
TimeOfDay
NoNone

Relations (3)

Each relation joins EFDocHist_BR to another table on the fields shown.

  • EFDocAuthority → EFDocAuthority_BR

    Join on EFDocAuthority = EFDocAuthority_BR.AuthorityId

    Many EFDocHist_BR records → exactly one EFDocAuthority_BR record

  • EFDReturnCode_BR → EFDReturnCode_BR

    Join on ReturnCodeRefRecId = EFDReturnCode_BR.RecId

    Many EFDocHist_BR records → zero or one EFDReturnCode_BR record

  • ElectronicFiscalDoc_BR → EFDocument_BR

    Join on EFDRefRecId = EFDocument_BR.RecId

    Many EFDocHist_BR records → zero or one EFDocument_BR record

Get this data out

No public entity reads from EFDocHist_BR. Its data is only reachable through the application, a custom entity or a database export.

Need help with EFDocHist_BR in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk