# Custom node with path error

**URL:** <https://forum.dynamobim.com/t/custom-node-with-path-error/105704>\
**Category:** Uncategorized\
**Created:** [November 8, 2024, 10:59am UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704 "2024-11-08T10:59:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingalvolt](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ingalvolt](https://forum.dynamobim.com/u/ingalvolt)\
**Post date:** [November 8, 2024, 10:59am UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/1 "2024-11-08T10:59:00Z")

</div>

I can’t insert the path in the custom node  
Help Thanks

 ![nodo pers](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0e1e244da1ae5d428bedd77b22c4070bb7526ed3.jpeg)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [November 8, 2024, 2:09pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/2 "2024-11-08T14:09:35Z")

</div>

Hi guess filepath is a string

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [November 8, 2024, 2:38pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/3 "2024-11-08T14:38:59Z")

</div>

> [@sovitek](#):
>
> filepath is a string

This. Your path needs to be a string. A string node is easiest, but if you use a code block make sure you use a double-slash (`\\`) to avoid escape characters.

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [November 8, 2024, 2:52pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/4 "2024-11-08T14:52:42Z")

</div>

For file path i suggest use `string node`

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [November 8, 2024, 2:56pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/5 "2024-11-08T14:56:41Z")

</div>

yeah me too 😉 becaurse im not sure the double slash trick works for input node or accept the real path without double slash…havent tried

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [November 8, 2024, 3:02pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/6 "2024-11-08T15:02:48Z")

</div>

Here is the sample

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e459eeaa51762e7ddb43a5809e89da0680dcf694.png)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [November 8, 2024, 3:04pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/7 "2024-11-08T15:04:45Z")

</div>

yeah and in a codeblock with db slash as @Nick_Boyts mention

 ![Skærmbillede 2024-11-08 160345](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/4115ed143c80757d8559557e12ff37b424ef5b9f.png)

---

<div class="post-metadata">

**Author:** ![ingalvolt](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ingalvolt](https://forum.dynamobim.com/u/ingalvolt)\
**Post date:** [November 8, 2024, 3:07pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/8 "2024-11-08T15:07:15Z")

</div>

Thanks everyone for the help

I don’t understand what the difference is between this:

Thanks everyone for the help

I don’t understand what the difference is between this:

 ![funziona](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31d400d7035b3e9610948346f623772098aa7ac8.jpeg)

and this (the path is a string):

 ![non funziona](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f663cf41c3b03836ee3b9530714f59eb145d74a8.jpeg)

---

<div class="post-metadata">

**Author:** ![ingalvolt](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ingalvolt](https://forum.dynamobim.com/u/ingalvolt)\
**Post date:** [November 8, 2024, 3:10pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/9 "2024-11-08T15:10:47Z")

</div>

but how does one know about the // ?

it’s a bit strange

Thank you

 ![funz2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b0a5cd2f80ff1b2e31df2d93e53cf394dde6840.jpeg)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [November 8, 2024, 3:13pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/10 "2024-11-08T15:13:18Z")

</div>

yeah probably, but now you know it 😉

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [November 8, 2024, 3:14pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/11 "2024-11-08T15:14:30Z")

</div>

Strings can contain special characters called escape characters that do a specific function within a full string. Things like line breaks, quotes within quotes, and special formatting can be accomplished with the appropriate escape characters. It’s not a Dynamo thing, it’s common in most languages and just one of those things you become familiar with over time and experience.

Here are some [examples](https://www.w3schools.com/python/gloss_python_escape_characters.asp) in Python, though most will probably work in Dynamo code blocks as well.

---

<div class="post-metadata">

**Author:** ![ingalvolt](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@ingalvolt](https://forum.dynamobim.com/u/ingalvolt)\
**Post date:** [November 14, 2024, 4:54pm UTC](https://forum.dynamobim.com/t/custom-node-with-path-error/105704/12 "2024-11-14T16:54:40Z")

</div>

Thank you  
I got it… I had the \ in the path
