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.
Copy attachment action gives error in Flow designer - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Copy attachment action gives error in Flow designer
KB0813220

Copy attachment action gives error in Flow designer


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

Issue

When we configure flow designer to copy the attachments from one record to another record with copy attachment action it is throwing an error and we are unable to see the attachment on the target record.

Error message:

The Record type sc_req_item does not match with Attachment table type. (sys_script_include.5430bdf89313130079b5925cf67ffb04.script; line 30)



Resolution

-To achieve the requirement of copying the attachments from one record to another record we need to follow a different process
-First it requires to look up the attachments from the triggered record id
-Then we need to look up the record with lookup attachment sys_id from the sys_attachment table
-Now we need to configure copy attachment action with source record as 'attachment record' from look up record action
-Now save it, activate it then test the flow with any of the existing or submitting new request with attachment.

Since we are configuring the lookup attachment action with triggered record sys_id the copy attachment action will not understand which is sys_id of the attachment in source record as we are not defining where the exact location/table the attachment is going to be stored.

With look up record action, we will get the attachment record to pass into copy attachment action.


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.