Go PDF Decrypt Wrong Password Error Explained — Supplier Invoice Handling
Short answer: quarantine a supplier's encrypted PDF when decryption reports a wrong password, preserve the original bytes, and request a corrected credential through an approved channel; do not retry the same secret across invoice jobs. For an edtech order-to-invoice pipeline, keep that attachment failure separate from rendering the invoice from trusted order data. The deciding constraint is…
This brief explains the correct procedure for handling supplier invoices that come as encrypted PDFs, specifically when decryption reports a "wrong password" error. The key points are to quarantine the encrypted PDF, preserve the original bytes, and request a corrected credential through an approved channel. It is crucial not to retry the same secret across invoice jobs.
The focus should be on whether the supplier attachment must appear in the final PDF, as this affects both the fidelity requirement and the rendering work. If the supplier document can be omitted from the invoice, generation can proceed with an explicit attachment-pending state. However, if the document must accompany the invoice, delivery should be held.
The brief emphasizes the importance of distinguishing between a failed attachment-ingest step and an invoice renderer alarm, and it advises against implying that a missing page was rendered successfully. Additionally, the brief suggests keeping a separate queue or concurrency budget for attachment inspection and alerting on the age of held orders against the delivery SLO.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.