Problem when trying to get PCSID (Passing compliance checks)

Normally OTP Expire within 1 hour, try to Test it at the same time. I am always doing these all steps in 1 go, never face any issue.

My sample code for debit note, is it good??

<?xml version="1.0" encoding="UTF-8"?>

cbc:ProfileIDreporting:1.0</cbc:ProfileID>
cbc:ID935</cbc:ID>

cbc:UUIDec65d239-c793-452f-8e8c-509dbd54d2a9</cbc:UUID>
cbc:IssueDate2021-01-05</cbc:IssueDate>
cbc:IssueTime09:32:40</cbc:IssueTime>
<cbc:InvoiceTypeCode name=“0200000”>383</cbc:InvoiceTypeCode>
cbc:DocumentCurrencyCodeSAR</cbc:DocumentCurrencyCode>
cbc:TaxCurrencyCodeSAR</cbc:TaxCurrencyCode>
cac:BillingReference
cac:InvoiceDocumentReference
cbc:ID?Invoice Number: 354; Invoice Issue Date: 2021-02-10?</cbc:ID>
</cac:InvoiceDocumentReference>
</cac:BillingReference>
cac:AdditionalDocumentReference
cbc:IDICV</cbc:ID>
cbc:UUID70</cbc:UUID>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference

  <cbc:ID>PIH</cbc:ID>
  <cac:Attachment>
     <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
  </cac:Attachment>

</cac:AdditionalDocumentReference>

cac:AdditionalDocumentReference
cbc:IDQR</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>AW/YtNix2YPYqSDYqtmI2LHZitivINin2YTYqtmD2YbZiNmE2YjYrNmK2Kcg2KjYo9mC2LXZiSDYs9ix2LnYqSDYp9mE2YXYrdiv2YjYr9ipIHwgTWF4aW11bSBTcGVlZCBUZWNoIFN1cHBseSBMVEQCDzM5OTk5OTk5OTkwMDAwMwMTMjAyMS0wMS0wNVQwOTozMjo0MAQGMjUwLjAwBQQwLjAwBiw4QURMeEpRejFpOGhTcXFHYUZSWm9SSmtrSGpRWmpvS0J6djVwUG14REdNPQdgTUVZQ0lRQ29yRVJNTmd1TExkeHJtNExPUytFdkdMTW5IUXlWQStsOEhrVFFJSWJvYlFJaEFQUTdNVHpJTXhxU2g4SHlUK0pFUm9Makg0SWxCaFJPOElLTDRPRDlzd3NpCFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAAShYIprRJr0UgStM6/S4CQLVUgpfFT2c+nHa+V/jKEx6PLxzTZcluUOru0/J2jyarRqE4yY2jyDCeLte3UpP1R4CUcwRQIhALE/ichmnWXCUKUbca3yci8oqwaLvFdHVjQrveI9uqAbAiA9hC4M8jgMBADPSzmd2uiPJA6gKR3LE03U75eqbC/rXA==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>

cac:AccountingSupplierParty
cac:Party
cac:PartyIdentification
<cbc:ID schemeID=“CRN”>1010010000</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetNameالامير سلطان | Prince Sultan</cbc:StreetName>
cbc:BuildingNumber2322</cbc:BuildingNumber>
cbc:CitySubdivisionNameالمربع | Al-Murabba</cbc:CitySubdivisionName>
cbc:CityNameالرياض | Riyadh</cbc:CityName>
cbc:PostalZone23333</cbc:PostalZone>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID399999999900003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameشركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
cac:AccountingCustomerParty
cac:Party
cac:PostalAddress
cbc:StreetNameصلاح الدين | Salah Al-Din</cbc:StreetName>
cbc:BuildingNumber1111</cbc:BuildingNumber>
cbc:CitySubdivisionNameالمروج | Al-Murooj</cbc:CitySubdivisionName>
cbc:CityNameالرياض | Riyadh</cbc:CityName>
cbc:PostalZone12222</cbc:PostalZone>
cac:Country
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID399999999800003</cbc:CompanyID>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationNameشركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
cac:Delivery
cbc:ActualDeliveryDate2022-03-13</cbc:ActualDeliveryDate>
cbc:LatestDeliveryDate2022-03-15</cbc:LatestDeliveryDate>
</cac:Delivery>
cac:PaymentMeans
cbc:PaymentMeansCode42</cbc:PaymentMeansCode>
cbc:InstructionNoteReturned items</cbc:InstructionNote>
</cac:PaymentMeans>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>0.00</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=“SAR”>250.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=“SAR”>0.00</cbc:TaxAmount>
cac:TaxCategory
cbc:IDZ</cbc:ID>
cbc:Percent0</cbc:Percent>
cbc:TaxExemptionReasonCodeVATEX-SA-HEA </cbc:TaxExemptionReasonCode>
cbc:TaxExemptionReasonPrivate healthcare to citizen</cbc:TaxExemptionReason>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>0.00</cbc:TaxAmount>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID=“SAR”>250.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=“SAR”>250.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=“SAR”>250.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID=“SAR”>250.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID73428</cbc:ID>
cbc:InvoicedQuantity1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>250.00</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>0.00</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>250.00</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:NameSurgery</cbc:Name>
cac:ClassifiedTaxCategory
cbc:IDZ</cbc:ID>
cbc:Percent0</cbc:Percent>
cac:TaxScheme
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=“SAR”>250.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>

Validate XSD [Success]
Validate EN Schematrons [Success]
Validate KSA Schematrons [Failed]

Errors:
**** [error] CODE: BR-KSA-49, MESSAGE: [BR-KSA-49]-If the tax exemption reason code (BT-121) is equal to VATEX-SA-EDU or VATEX-SA-HEA, then the other buyer ID (BT-46) mandatory and must be national ID (BT-46-1 = NAT).

Validate QR Code [Success]
Validate EInvoice Signature [Success]
Validate EInvoice PIH [Success]
Overall status [Failed]

Thanks,
will you please provide a valid xml format for simplified debit, so i can check and do as format

Your XML is correct, just add the required field and test it before sending for compliance check

@sayedrahman

<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
<cbc:ID>935</cbc:ID>
<cbc:UUID>ec65d239-c793-452f-8e8c-509dbd54d2a9</cbc:UUID>
<cbc:IssueDate>2021-01-05</cbc:IssueDate>
<cbc:IssueTime>09:32:40</cbc:IssueTime>
<cbc:InvoiceTypeCode name="0200000">383</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
<cac:BillingReference>
    <cac:InvoiceDocumentReference>
        <cbc:ID>Invoice Number: 354; Invoice Issue Date: 2021-02-10</cbc:ID>
    </cac:InvoiceDocumentReference>
</cac:BillingReference>
<cac:AdditionalDocumentReference>
    <cbc:ID>ICV</cbc:ID>
    <cbc:UUID>70</cbc:UUID>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>PIH</cbc:ID>
    <cac:Attachment>
        <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
    </cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
    <cbc:ID>QR</cbc:ID>
    <cac:Attachment>
        <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AW/YtNix2YPYqSDYqtmI2LHZitivINin2YTYqtmD2YbZiNmE2YjYrNmK2Kcg2KjYo9mC2LXZiSDYs9ix2LnYqSDYp9mE2YXYrdiv2YjYr9ipIHwgTWF4aW11bSBTcGVlZCBUZWNoIFN1cHBseSBMVEQCDzM5OTk5OTk5OTkwMDAwMwMTMjAyMS0wMS0wNVQwOTozMjo0MAQGMjUwLjAwBQQwLjAwBiw4QURMeEpRejFpOGhTcXFHYUZSWm9SSmtrSGpRWmpvS0J6djVwUG14REdNPQdgTUVZQ0lRQ29yRVJNTmd1TExkeHJtNExPUytFdkdMTW5IUXlWQStsOEhrVFFJSWJvYlFJaEFQUTdNVHpJTXhxU2g4SHlUK0pFUm9Makg0SWxCaFJPOElLTDRPRDlzd3NpCFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAAShYIprRJr0UgStM6/S4CQLVUgpfFT2c+nHa+V/jKEx6PLxzTZcluUOru0/J2jyarRqE4yY2jyDCeLte3UpP1R4CUcwRQIhALE/ichmnWXCUKUbca3yci8oqwaLvFdHVjQrveI9uqAbAiA9hC4M8jgMBADPSzmd2uiPJA6gKR3LE03U75eqbC/rXA==</cbc:EmbeddedDocumentBinaryObject>
    </cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AccountingSupplierParty>
    <cac:Party>
        <cac:PartyIdentification>
            <cbc:ID schemeID="CRN">1010010000</cbc:ID>
        </cac:PartyIdentification>
        <cac:PostalAddress>
            <cbc:StreetName>الامير سلطان | Prince Sultan</cbc:StreetName>
            <cbc:BuildingNumber>2322</cbc:BuildingNumber>
            <cbc:CitySubdivisionName>المربع | Al-Murabba</cbc:CitySubdivisionName>
            <cbc:CityName>الرياض | Riyadh</cbc:CityName>
            <cbc:PostalZone>23333</cbc:PostalZone>
            <cac:Country>
                <cbc:IdentificationCode>SA</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>399999999900003</cbc:CompanyID>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
    <cac:Party>
	        <cac:PartyIdentification>
            <cbc:ID schemeID="NAT">456789123</cbc:ID>
        </cac:PartyIdentification>
        <cac:PostalAddress>
            <cbc:StreetName>صلاح الدين | Salah Al-Din</cbc:StreetName>
            <cbc:BuildingNumber>1111</cbc:BuildingNumber>
            <cbc:CitySubdivisionName>المروج | Al-Murooj</cbc:CitySubdivisionName>
            <cbc:CityName>الرياض | Riyadh</cbc:CityName>
            <cbc:PostalZone>12222</cbc:PostalZone>
            <cac:Country>
                <cbc:IdentificationCode>SA</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>399999999800003</cbc:CompanyID>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
    <cbc:ActualDeliveryDate>2022-03-13</cbc:ActualDeliveryDate>
    <cbc:LatestDeliveryDate>2022-03-15</cbc:LatestDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
    <cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
    <cbc:InstructionNote>Returned items</cbc:InstructionNote>
</cac:PaymentMeans>
<cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="SAR">250.00</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
        <cac:TaxCategory>
            <cbc:ID>Z</cbc:ID>
            <cbc:Percent>0</cbc:Percent>
            <cbc:TaxExemptionReasonCode>VATEX-SA-HEA</cbc:TaxExemptionReasonCode>
            <cbc:TaxExemptionReason>Private healthcare to citizen</cbc:TaxExemptionReason>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
    </cac:TaxSubtotal>
</cac:TaxTotal>
<cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="SAR">250.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="SAR">250.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="SAR">250.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="SAR">250.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
    <cbc:ID>73428</cbc:ID>
    <cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">250.00</cbc:LineExtensionAmount>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
        <cbc:RoundingAmount currencyID="SAR">250.00</cbc:RoundingAmount>
    </cac:TaxTotal>
    <cac:Item>
        <cbc:Name>Surgery</cbc:Name>
        <cac:ClassifiedTaxCategory>
            <cbc:ID>Z</cbc:ID>
            <cbc:Percent>0</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
        <cbc:PriceAmount currencyID="SAR">250.00</cbc:PriceAmount>
    </cac:Price>
</cac:InvoiceLine>
</Invoice>

thanks, issue was in my debit code, its solved and i got pcsid, but i have one more question, do i need to test all 6 invoice again for live?? if yes, than it should be real data??

if only Debit Note has the issue, you can just try to Send Debit Note. and It should be Real Data for TESTING