Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500Description<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } --> Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500 Problem You have started a mass encryption job to encrypt attachments. For most attachments the job proceeds without error, but at some point you see the following error in the $proxy_installation_location/logs/edgeencryption.log: com.snc.edgeencryption.rest_client.RestException: Unexpected response code from ServiceNow server: 500 at com.snc.edgeencryption.rest_client.RestClient.sendRequest(RestClient.java:410) at com.snc.edgeencryption.rest_client.RestClient.getAttachmentContent(RestClient.java:211) at com.snc.edgeencryption.rest_client.Attachment.getContentIfUnencrypted(Attachment.java:63) at com.snc.edgeencryption.jobs.mass_encryption.MassAttachmentEncryptionJob.processContent(MassAttachmentEncryptionJob.java:38) at com.snc.edgeencryption.jobs.mass_encryption.AMassAttachmentOperationJob.execute(AMassAttachmentOperationJob.java:43) at com.snc.edgeencryption.jobs.AJob.run(AJob.java:44) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Repeated attempts to run the mass encryption job results in the same error. Symptoms The mass encryption job has errors, see the mentioned errors in the edgeencryption.log file. Cause There are corrupted attachments. The attachments are already corrupted before there is any attempt to do the encryption of the attachments. Since the attachments are already corrupted there is no possibility to perform the encryption. This is why the same error is seen each time the mass encryption is attempted. Resolution For the attachments that have failed to get encrypted, go to those records with the attachment and try to download the attachments. If the download of the attachments fail or the downloaded attachment file cannot be unzipped or read by the appropriate program for the attachment type, then the attachment is corrupted.The best action is to simply remove the attachment from the record since in its corrupted state. It really has no value. Once all corrupted attachments are removed the mass encryption should execute to the end without any further 500 errors.