Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500 - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500
KB0639232

Edge Encryption Mass Encryption Attachment Job Error: Unexpected response code from ServiceNow server: 500


632 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

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


  1. 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.
  2. The best action is to simply remove the attachment from the record since in its corrupted state. It really has no value. 
  3. Once all corrupted attachments are removed the mass encryption should execute to the end without any further 500 errors.

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.