---
article_id: KB0404360
article_type: Support Note
component_ids:
  - BNS-ARI-CI-AN
component_descriptions:
  - SAP Integration Suite, managed gateway > Managed Gateway for Business Network
products:
  - SAP Business Network for Procurement and SAP Business Network for Supply Chain
personas:
  - Admin
  - Buyer
language: en
created: 2023-02-14
updated: 2024-03-18
source: Knowledge Base
url: https://support.ariba.com/item/view/KB0404360
connect_url: https://support.ariba.com/item/view/KB0404360?min=1
sap_for_me_url: https://me.sap.com/notes/KB0404360
---

# Error: The To of CopyRequest must be the same as the From of the InvoiceDetailRequest attachment

## Symptom

InvoiceDetailRequest is failing in Managed Gateway for Spend&Network with below error:

SAP Business Network Response is :"Bad Request" and Error Code:"400" and Error Code Response:"Error:The To of CopyRequest must be the same as the From of the InvoiceDetailRequest attachment. Please contact support with the Error Reference Number: ANERR-160000000000000000985035497 for more details.Suggested Action : Document Failed in SAP Business Network. Error Code : CIG-PLT-00644. Please review the Support Note 189049([https://support.ariba.com/item/view/189049](https://support.ariba.com/item/view/189049)) for solution

## Cause

The issue occurs when the System ID passed in the copy request and the System ID passed in the Invoice are different.

## Resolution

You can solve this issue by *[Managing custom routing for document transactions](https://help.sap.com/viewer/63a2629582ae40f1b7ff0f8b9b9b1c6f/latest/en-US/5b04ccff96f945e186b98cae50ce4993.html)* to set the Custom Routing in Managed Gateway for Spend&Network.

## Keywords

Error Code:"400"; Invoicedetailrequest failing in CIG, Error 400, Invoicedetailrequest, Invoice detail request
