Symptoms

We have a primary ledger (with accounts different from the Portugueses rules) and a secondary ledger with a portuguese Chart of Accounts. When generating the complete SAFT (I), it never fetch data from the secondary ledger, that has the setup defined. This is causing the following issues while validating the xml file against Portugal Tax Authorities link:

Na linha 36: cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[GR, GA, GM, AR, AA, AM]'. It must be a value from the enumeration.Na linha 36: cvc-type.3.1.3: The value '' of element 'GroupingCategory' is not valid.Na linha 37: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'SAFPTGLAccountID'.Na linha 37: cvc-type.3.1.3: The value '' of element 'GroupingCode' is not valid.Na linha 46: cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[GR, GA, GM, AR, AA, AM]'. It must be a value from the enumeration.Na linha 46: cvc-type.3.1.3: The value '' of element 'GroupingCategory' is not valid.Na linha 47: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'SAFPTGLAccountID'.