hola a todos porque al hacer el resumen diarios de boletas exonerada me sale este resultado
<sac:SummaryDocuments xmlns:sac="urn:sunat:names:specification:ubl:peru:schema:xsd:SummaryDocuments-1" xmlns:sacAgg="urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2cac:AccountingSupplierParty> <sacAgg:SummaryDocumentsLine> <cbc:LineID>1</cbc:LineID> <</cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version:EndDocumentNumberID>1</sacAgg:EndDocumentNumberID> <sacAgg:TotalAmount currencyID="PEN">100.00</sacAgg:TotalAmount> <sacAgg:BillingPayment> <cbc:PaidAmount currencyID="PEN">100.00</cbc:PaidAmount> <cbc:InstructionID>01</cbc:InstructionID> </sacAgg:BillingPayment> <cac:TaxTotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version:EndDocumentNcbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine:BillingPayment> <cac:TaxTotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<soap-env:Envelope xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\"><soap-env:Header/><soap-env:Body><soap-env:Fault xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><faultcode>soap-env:Client.2522</faultcode><faultstring>No existe información del documento del anticipo. - Detalle: xxx.xxx.xxx value='ticket: 1768575716804 error: INFO: 2522 (nodo: \"/\" valor: \"\")'</faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>". <sac:SummaryDocuments xmlns:sac="urn:sunat:names:specification:ubl:peru:schema:xsd:SummaryDocuments-1" xmlns:sacAgg="urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2cac:AccountingSupplierParty> <sacAgg:SummaryDocumentsLine> <cbc:LineID>1</cbc:LineID> <</cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version:EndDocumentNumberID>1</sacAgg:EndDocumentNumberID> <sacAgg:TotalAmount currencyID="PEN">100.00</sacAgg:TotalAmount> <sacAgg:BillingPayment> <cbc😛aidAmount currencyID="PEN">100.00</cbc😛aidAmount> <cbc:InstructionID>01</cbc:InstructionID> </sacAgg:BillingPayment> <cac:TaxTotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version:EndDocumentNcbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine:BillingPayment> <cac:TaxTotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxSubtotal> <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> <cac:TaxCategory> <cac:TaxScheme> <cbc:ID>1000</cbc:ID> <cbc:Name>IGV</cbc:Name> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> </sacAgg:SummaryDocumentsLine> </sac:SummaryDocuments> aun con esas modificaciones me sale este error "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<soap-env:Envelope xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\"><soap-env:Header/><soap-env:Body><soap-env:Fault xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><faultcode>soap-env:Client.2522</faultcode><faultstring>No existe información del documento del anticipo. - Detalle: xxx.xxx.xxx value='ticket: 1768575716804 error: INFO: 2522 (nodo: \"/\" valor: \"\")'</faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>" a claro que estoy probando con el api de beta de sunat no en produccion y no estoy enviando ningun anticipo de documento aqui esta mi xml , que esta mal en mi xml esoty enviando boletas exoneradas que no tienen ningun igv , este es mi xml GenerateSummaryXml(SummaryOfBallots summary) { XNamespace sac = "urn:sunat:names:specification:ubl:peru:schema:xsd:SummaryDocuments-1"; XNamespace sacAgg = "urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponentsesAnulacion STATUS SOLO PARA ANULACIÓN if (esAnulacion) { line.Add( new XElement(sacAgg + "Status", new XElement(cbcriantCulture) ), new XElement(cac + "TaxCategory", new XElement(cac + "TaxScheme", new XElement(cbc + "ID", taxSchemeId), new XElement(cbc + "Name", taxSchemeName), new XElement(cbc + "TaxTypeCode", taxTypeCode) ) ) ) ) ); } // STATUS SOLO PARA ANULACIÓN if (esAnulacion) { line.Add( new XElement(sacAgg + "Status", new XElement(cbcxAmount", new XAttribute("currencyID", "PEN"), b.Igv.ToString("F2", CultureInfo.InvariantCulture) ), new XElement(cac + "TaxSubtotal", new XElement(cbc + "TaxAmount", new XAttr"; break; case "03": // Inafecto, "6"), new XElement(cac + "Party", new XElement(cac + "PartyLegalEntity", new XElement(cbc + "RegistrationName", summary.RazonSocial) ) ) ), summary.Boletas.Select((b, i) => { bool esAnulacionement(cbclistID", "0101"), "03"), // Boleta new XElement(sacAgg + "DocumentSerialID", b.Serie), new XElementesAnulacionStartDocumentNumberID", b.Correlativo), new XElement(sacAgg + "EndDocumentNumberID", b.Correlativo), // Total del comprobante (monto total) new XElement(sacAgg + "TotalAmount", new XAttribute("currencyID", "PEN"), (esAnulacionAccountID", "6"), new XElement(cac + "Party", new XElement(cac + "PartyLegalEntity", new XElement(cbc + "RegistrationName", summary.RazonSocial) ) ) ), summary.Boletas.Select((b, i) => { bool esAnulacion = b.Estado == "3"; // Determinar esquema de impuesto según tipoOperacion // 01 = Gravado (IGV) -> ID 1000 // 02 = Exonerado -> ID 9997 // 03 = Inafecto -> ID 9998 string taxSchemeId; string taxSchemeName; string taxTypeCode = "VAT"; switch (b.TipoOperacion) { case "01": // Gravado taxSchemeId = "1000"; taxSchemeName = "IGV"; break; case "02": // Exonerado taxSchemeId = "9997"; taxSchemeName = "EXO"; break; case "03": // Inafecto taxSchemeId = "9998"; taxSchemeName = "INA"; break; default: taxSchemeId = "1000"; taxSchemeName = "IGV"; break; } var line = new XElement(sacAgg + "SummaryDocumentsLine", new XElement(cbc + "LineID", i + 1), //new XElement(cbc + "DocumentTypeCode", "03"), new XElement(cbc + "DocumentTypeCode", new XAttribute("listID", "0101"), "03"), // Boleta new XElement(sacAgg + "DocumentSerialID", b.Serie), new XElement(sacAgg + "StartDocumentNumberID", b.Correlativo), new XElement(sacAgg + "EndDocumentNumberID", b.Correlativo), // Total del comprobante (monto total) new XElement(sacAgg + "TotalAmount", new XAttribute("currencyID", "PEN"), (esAnulacion ? 0m : b.Total).ToString("F2", CultureInfo.InvariantCulture) ) ); // SOLO SI NO ES ANULACIÓN if (!esAnulacion) { // BillingPayment: según catálogo 11 (01 gravado, 02 exonerado, 03 inafecto, etc.) line.Add( new XElement(sacAgg + "BillingPayment", new XElement(cbc + "PaidAmount", new XAttribute("currencyID", "PEN"), b.BaseImponible.ToString("F2", CultureInfo.InvariantCulture) ), new XElement(cbc + "InstructionID", b.TipoOperacion) ) ); // TaxTotal: IGV o 0 según tipo de afectación line.Add( new XElement(cac + "TaxTotal", new XElement(cbc + "TaxAmount", new XAttribute("currencyID", "PEN"), b.Igv.ToString("F2", CultureInfo.InvariantCulture) ), new XElement(cac + "TaxSubtotal", new XElement(cbc + "TaxAmount", new XAttribute("currencyID", "PEN"), b.Igv.ToString("F2", CultureInfo.InvariantCulture) ), new XElement(cac + "TaxCategory", new XElement(cac + "TaxScheme", new XElement(cbc + "ID", taxSchemeId), new XElement(cbc + "Name", taxSchemeName), new XElement(cbc + "TaxTypeCode", taxTypeCode) ) ) ) ) ); } // STATUS SOLO PARA ANULACIÓN if (esAnulacion) { line.Add( new XElement(sacAgg + "Status", new XElement(cbc + "ConditionCode", "3") // 3 = Anulado ) ); } return line; }) ) ); return doc.ToString(SaveOptions.DisableFormatting); }