A UBL invoice should not include the InvoiceLine InvoicePeriod DurationMeasure
/ubl:Invoice | /cn:CreditNote
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:DurationMeasure)