Symptom
When uploading PDF attachments to a document(e.g. sales orders, billing documents and others) which is using a CMIS repository as the storage, error "Read error during PC upload: An error occurred when uploading to SAP Knowledge Provider" comes out.
Will get below message if click on "More Info" button: "An error occurred when uploading to SAP Knowledge Provider".
Another kind of error message appears when uploading via the attachment service (CV ATTACHMENT API): "FILE_NAME.pdf: File is either corrupted or file format not supported for upload.". When checking the file against the main Virus Scan Interface profile (e.g. ZBASIC) via T-code VSCANTEST, the following message is seen: "/path_to_pdf/FILE_NAME.pdf", the scan engine blocked the active content due to the rule "TM_ACTIVE_CONTENT_SCRIPT_PDF (Active content is detected)".
Check the following possible causes:
- The document may already be open in an external application.
In this case, close the application and try again. - The system was not able to access an external content server or an external archive."
This only happens with certain PDF documents. When trying to attach a different PDF, the upload works.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Read more...
Environment
- SAP S/4HANA
- SAP S/4HANA Cloud
Product
Keywords
CMIS Repository, KPRO, Virus, PDF, Upload, JavaScript, Unknown error, Create attachment, Read error during PC upload, Sales order, Billing document, Services for Object, Virus Scan, TM_ACTIVE_CONTENT_SCRIPT_PDF. , KBA , BC-SRV-KPR , Knowledge Provider , BC-SEC-VIR , Anti Virus Protection , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.