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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ContingencyModeContingency mode that applied, such as SCAN or SVC-AN. | EnumEFDocContingMode_BR (enum) | No | None | |
ContingencyReasonReason why contingency mode was used. | String (255)EFDocContingencyReason_BR | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateDate of the history entry. | DateTransDate | No | None | |
EFDocAuthorityAuthority that the message relates to. | StringEFDocAuthorityId_BR | No | EFDocAuthority_BR.AuthorityId | None |
EFDRefRecIdElectronic fiscal document (NF-e) that the entry belongs to. | Int64RefRecId | No | EFDocument_BR.RecId | None |
FiscalDocStatusStatus of the fiscal document, such as approved, cancelled or rejected. | EnumFiscalDocumentStatus_BR (enum) | No | None | |
MessageStatusState of the message: waiting to send, sent or processed. | EnumEFDocMessageStatus_BR (enum) | No | None | |
MessageTypeKind of message: NF-e, discard, cancel or cancel by substitution. | EnumEFDocMessageType_BR (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiptNumberReceipt number for the message. | String (15)EFDocReceiptNumber_BR | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReturnCodeDescriptionText that explains the return code. | String (255)EFDocReturnCodeDescription_BR | No | None | |
ReturnCodeRefRecIdReturn code (NF-e rejection code) for the message. The label talks about price currency, which does not match the relation.low confidence | Int64ReturnCodeId_BR | No | EFDReturnCode_BR.RecId | None |
ReturnMessageMessage returned by SEFAZ, the tax authority. | String (200)EFDocReturnMessage_BR | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TimeTime of the history entry. | TimeTimeOfDay | No | None |
Relations (3)
Each relation joins EFDocHist_BR to another table on the fields shown.
EFDReturnCode_BR→EFDReturnCode_BRJoin on
ReturnCodeRefRecId = EFDReturnCode_BR.RecIdMany EFDocHist_BR records → zero or one EFDReturnCode_BR record
ElectronicFiscalDoc_BR→EFDocument_BRJoin on
EFDRefRecId = EFDocument_BR.RecIdMany 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.