# Renaming Views – Dereferencing a non-pointer and "Name cannot contain any of the following characters:"

**URL:** <https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012>\
**Category:** Revit\
**Created:** [May 18, 2018, 3:53am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012 "2018-05-18T03:53:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johk02](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johk02](https://forum.dynamobim.com/u/johk02)\
**Post date:** [May 18, 2018, 3:53am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/1 "2018-05-18T03:53:14Z")

</div>

Hi have a script where I can rename views. I have been trying to add a filter where I filter out all Legend views but the graph is now giving the error “Dereferencing a non-pointer”.  
I am not sure were I went wrong but would appreciate some feedback

Thanks  
JH  
[Rename Views On Sheets.dyn](https://forum.dynamobim.com/uploads/short-url/yyqC5m3LK7mO3MNNYt026HtC1lL.dyn) (16 KB)  
 ![error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c4009b225351f81570e91b434b52f746134f601d.PNG)

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

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 18, 2018, 4:22am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/2 "2018-05-18T04:22:43Z")

</div>

Looks like you are no longer feeding view elements into the set parameter value by name node, but instead you’re feeding it view types which don’t have a view name parameter.

Try this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/53f3be79e034496a60e90d254f919bd0111056a0.jpeg)

---

<div class="post-metadata">

**Author:** ![johk02](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johk02](https://forum.dynamobim.com/u/johk02)\
**Post date:** [May 18, 2018, 7:22am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/3 "2018-05-18T07:22:10Z")

</div>

Thank you Jacob,  
I tried the graph as suggested and I still got an error - please see attached  
Will have a look at it again later.  
Thanks  
JH

 ![error2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a4e2233c2e8489ee5d8f7651afc51834cba8aa6.PNG) screenshot.

---

<div class="post-metadata">

**Author:** ![johk02](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johk02](https://forum.dynamobim.com/u/johk02)\
**Post date:** [May 18, 2018, 10:01am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/4 "2018-05-18T10:01:09Z")

</div>

Hi,  
I did some modification to the graph – please see below but now I get the error

Name cannot contain any of the following characters:  
\ : { } | ; \< \> ? ` ~  
or any of the non-printable characters.

Going though the graph I can’t see why I et this error as I have not added any additional characters.  
Thanks  
JH

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/37c3d57a77e3fe8151cbb1e8db5e715d9235e24d.png)[Rename Views.dyn](https://forum.dynamobim.com/uploads/short-url/5mHJqWmhwmqIrhJWjm4QcYOGaWh.dyn) (31.9 KB)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 18, 2018, 12:13pm UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/5 "2018-05-18T12:13:03Z")

</div>

Previously the lower half of your graph was working, so it may be that you have a selection issue. What are the errors?

---

<div class="post-metadata">

**Author:** ![johk02](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johk02](https://forum.dynamobim.com/u/johk02)\
**Post date:** [May 18, 2018, 9:08pm UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/6 "2018-05-18T21:08:00Z")

</div>

Hi,  
The graph is actually not generating any erros - but revit give me the below error. I know that the chracters can’t be used in view names but I have not introduced any of them in my naming …so I am not sure what is happening.  
JH

> [@johk02](#):
>
> Name cannot contain any of the following characters:  
> \ : { } | ; \< \> ? ` ~  
> or any of the non-printable characters.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 19, 2018, 1:31am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/7 "2018-05-19T01:31:47Z")

</div>

Can you post your .rvt file?

---

<div class="post-metadata">

**Author:** ![johk02](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johk02](https://forum.dynamobim.com/u/johk02)\
**Post date:** [May 19, 2018, 3:54am UTC](https://forum.dynamobim.com/t/renaming-views-dereferencing-a-non-pointer-and-name-cannot-contain-any-of-the-following-characters/22012/8 "2018-05-19T03:54:13Z")

</div>

Hi  
I have used the rst\_advanced\_sample\_project as my sample project.  
The error occuer even if the sheet doesn;t have a legend view  
I have uploaded the model here [https://www.dropbox.com/s/s0iqgxcw3p3cqje/test.rvt?dl=0](https://www.dropbox.com/s/s0iqgxcw3p3cqje/test.rvt?dl=0)

Thanks  
JH
