# Import Using XML Error

**URL:** <https://connective.celigo.com/t/import-using-xml-error/241>\
**Category:** Integrator.io\
**Tags:** http, error-handling, import, xml\
**Created:** [January 19, 2024, 10:18pm UTC](https://connective.celigo.com/t/import-using-xml-error/241 "2024-01-19T22:18:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [January 19, 2024, 10:18pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/1 "2024-01-19T22:18:35Z")

</div>

I am attempting to do my first import into an application using a http import. The import application needs the data in XML format (which I have not done before), and I am receiving an error (appears related to my post body, but not 100% sure). I am not sure if this is tied to the formatting of my XML, or something different.

Here is the XML code I am using for import (cc information is test data):

```
    add_customer {{connection.http.encrypted}} 5431111111111111 1025 {{record.IntPS __First_Name__ c}} {{record.IntPS __Last_Name__ c}}
```

Here is the error I am receiving when I try to import:

 ![5301043caa20740200000001-481b7d9660cc4dc4a257087fd92376cf.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/789fb7db2facd5aeab87e36554b501d56c06fa9b.png)

Additionally, here is the webpage outlining the data elements:

[https://secure.networkmerchants.com/gw/merchants/resources/integration/integration\_portal.php#cv\_variables](https://secure.networkmerchants.com/gw/merchants/resources/integration/integration_portal.php#cv_variables)

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 20, 2024, 12:19am UTC](https://connective.celigo.com/t/import-using-xml-error/241/2 "2024-01-20T00:19:30Z")

</div>

@daveguderian {{connection.http.encrypted}} is invalid. It should be something like {{connection.http.encrypted.security\_key}} or however you stored it in your encrypted fields section.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [January 23, 2024, 2:36pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/3 "2024-01-23T14:36:22Z")

</div>

Thanks Tyler. I appreciate the help on this.

Another question I have is that I have an API where the "POST" information needs to be in the URL Params as displayed below in Postman. Where would these same keys be entered in Celigo?

 ![5301043caa20740200000001-c3e9f7331dcd425ea1acfceac0f9d86e.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/3/3c556b4bdc1260d47bb5258ed20242325f8025af.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 23, 2024, 4:22pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/4 "2024-01-23T16:22:20Z")

</div>

@daveguderian parameters are just put in the relative uri field just as you see in postman uri field in your screenshot.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [January 23, 2024, 4:53pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/5 "2024-01-23T16:53:03Z")

</div>

Thanks so much Tyler. So my next question is how should I send the security\_key. In postman I am sending it via the Query Params, but it doesnt actually show up in the actual relative URI in Postman (as you can see from the initial screenshot).

How do I replicate that in Celigo as Celigo is automatically adding it to the end of the URI?

---

<div class="post-metadata">

**Author:** ![kellyizer](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kellyizer/32/4369_2.png) [@kellyizer](https://connective.celigo.com/u/kellyizer)\
**Post date:** [January 23, 2024, 5:30pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/6 "2024-01-23T17:30:59Z")

</div>

Dave,

You can put that info in the HTTP encrypted field and then call it with handlebar statement as Tyler stated before in the relative URI

{{connection.http.encrypted.security\_key}}

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 23, 2024, 6:11pm UTC](https://connective.celigo.com/t/import-using-xml-error/241/7 "2024-01-23T18:11:50Z")

</div>

@daveguderian you should probably just use settings on the connection level so you don't have to specify this connection key on every export and import.

 ![5301043caa20740200000001-4912222a07aa4cc29e98d1d3103fbb05.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/0/0db1a7cee4bc034ccee9e7368c2a1a338d73d6a4.png)
