# TaxCompliance error handling

Source: https://developer.avalara.com/products/tax-compliance/integration-guides/extractor-en/errors/taxcompliance_error_handling/

Guide: Brazil Returns (Tax compliance) - English

# TaxCompliance error handling

The tables below describe the TaxCompliance error handling codes:

### Tax Document Header Rules

**Code**

**Rules or mandatory fields**

**Message**

30103

Different ModelCode 65 and SV, Empty Partner, and SituationCode different from 05

Required partner for tax documents with ModelCode other than 65 or SV

30106

Partner filled and Partner Country empty

Mandatory country for partner

100703

CNPJ (individual taxpayer's registration number) Accreditor filled in and different from the standard CNPJ 

Card Acquirer's CNPJ is invalid

100345

COFINS rate greater than 99.99

Invalid COFINS rate

100346

PIS  rate greater than 99.99

Invalid PIS rate

### Partner or Carrier Rules

**Code**

**Rules or mandatory fields**

**Message**

100003

Empty CPF (individual taxpayer registry number) and empty CNPJ (National Registry of Legal Entities)

Fill in one of the fields: CPF or CNPJ

100059

Filled Municipality and filled State Registration and Invalid State Registration according to UF

Invalid state registration

100077

Indicator NIF equal to Beneficiary and empty NIF

NIF  is mandatory when NIF Indicator is 'Beneficiary with NIF '

### Tax Establishment Rules

**Code**

**Rules or mandatory fields**

**Message**

100500

Verification if the template is invalid, such as required fields, size, numbers only, and decimals

Examples:

'{PropertyName}' is required and not populated or found;

'{PropertyName}' must be between '{MinLength}' and '{MaxLength}' characters. Input value with '{TotalLength}' characters;'

{PropertyName}' cannot contain more than '{ExpectedPrecision}' digit(s) and '{ExpectedScale}' decimal;

Current value has '{ActualScale}' digit(s) and '{Digits}' decimal

100600

StartDateValid Invalid 

The Start Date Valid field contains an invalid date

100704

REINF event status transmitted

Change not allowed for an event already transmitted

100710

Exclusion of the Establishment and Status of the transmitted REINF event

It is not possible to remove an establishment that has a transmitted event

### Product/Service Rules

**Code**

**Rules or mandatory fields**

**Message**

100078

Tax document item record not found when writing G/L account code

Tax Document Item not found

100079

Empty ledger account code

Code of ledger account no filled

### Withholding Tax Rules

**Code**

**Rules or mandatory fields**

**Message**

100301

ControlTaxWithheld filled

It is not possible to change a withholding tax as it is associated with a Darf Payment

### Rules for Contribution Withheld at Source PIS/COFINS

**Code**

**Rules or mandatory fields**

**Message**

100345

RateRetentionCOFINS greater than 99.99

Invalid COFINS rate

100346

RateRetentionPIS greater than 99.99

Invalid PIS rate

### Rules of the Social Security Guide

**Code**

**Rules or mandatory fields**

**Message**

No code

Social security guide filled in with the same rate

Fiscal document already has a related guide

100303

ClosingAccounting Entry filled,Accounting Status different from NotAccounted and IndicationRequestReversal Accountingdifferent from ReversalEffective

Process not allowed, record already accounted for

[Previous](/extractor-en/errors/api_error_handling)

[Next](/extractor-en/concepts/concepts_taxcompliance)