# Problem in mapping xmlconnector with file name.

**URL:** <https://community.cdata.com/t/problem-in-mapping-xmlconnector-with-file-name/613>\
**Category:** CData Arc\
**Tags:** question\
**Created:** [January 26, 2024, 5:51pm UTC](https://community.cdata.com/t/problem-in-mapping-xmlconnector-with-file-name/613 "2024-01-26T17:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreaMassa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AndreaMassa](https://community.cdata.com/u/AndreaMassa)\
**Post date:** [January 26, 2024, 5:51pm UTC](https://community.cdata.com/t/problem-in-mapping-xmlconnector-with-file-name/613/1 "2024-01-26T17:51:38Z")

</div>

I’m using an xmlmap connector to create an insert into a slq table. everything works correctly, I recently had to add a field for each record I insert that must contain the name of the file I’m importing (which is the same name as the output mapping xml file for the slq connector)

There is no way I can create the mapping via the script. I searched for examples and other topics, I use this simple command

`<arc:set attr="result.text">[Filename]</arc:set>`

The error in the log i have is:

_The value of the attribute could not be accessed: The attribute does not exist._

I have no indication of the reason and I have already made many attempts, any suggestion or idea is welcome, thanks in advance for any help you wish to give me.  
Best Regards.

---

<div class="post-metadata">

**Author:** ![AndreaMassa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AndreaMassa](https://community.cdata.com/u/AndreaMassa)\
**Post date:** [January 29, 2024, 2:59pm UTC](https://community.cdata.com/t/problem-in-mapping-xmlconnector-with-file-name/613/2 "2024-01-29T14:59:56Z")

</div>

Problem solved with the help of this similar topic:

> **[Get a filename part while mapping XML | Community](https://community.cdata.com/cdata-arc-48/get-a-filename-part-while-mapping-xml-260)**
>
> Hello,I need to get a specific filename part value while mapping XML to the desired structure in the XMLMap connector. F. ex. I need to extract ‘1234’ part from a file name 1234\_abcd.xml.I have tried to write an expression in the Expression Editor:...
