# Parameter.CreateSharedParameter does not generate new parameter

**URL:** <https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433>\
**Category:** Revit\
**Created:** [May 11, 2022, 12:35pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433 "2022-05-11T12:35:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 11, 2022, 12:35pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/1 "2022-05-11T12:35:59Z")

</div>

Hi, I need to store a string in a new parameter I’m trying to create with the node

> Parameter.CreateSharedParameter

It seems to work, since the node returns “Function”.

I’m further trying to store the value in the new parameter with the node

> Element.SetParameterByName

However this doesn’t work and it returns the error:  
“No parameter with this name found”

The Workflow worked once but isn’t anymore. I have no idea what the reason is.

I attach the Dynamo file in case someone wants to reproduce the error.

Thank you very much!

 ![NewParameterLayerWalls_2022-05-11_02-05-42](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b8bdffd04f592b4af1ec3c6ffbd13708d641728.png)

[NewParameterLayerWalls.dyn](https://forum.dynamobim.com/uploads/short-url/7dyizZcI59mrpJe1wj9HpViHFVV.dyn) (35.8 KB)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 11, 2022, 12:43pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/2 "2022-05-11T12:43:11Z")

</div>

hi @ranocchio ,

is your imput strings? you also use speacial signs _[{&%$§_. Is this nessercary ? Whats the error message?

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [May 11, 2022, 12:46pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/3 "2022-05-11T12:46:44Z")

</div>

@ranocchio most probably it can be solved by a passthrough node, give Revit time to create the parameter before setting its value, you can check Transaction End node as well

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 11, 2022, 12:55pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/4 "2022-05-11T12:55:00Z")

</div>

Also your groupname is missing! @ranocchio

![2022-05-11_14h53_50](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/6/c6aaf9f8fb0dcd933a309126a9bc53272f874769.png)

 ![2022-05-11_14h53_58](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/9/c917e294b65691a85d0b6a6e9ff0f98c6f3c023f.png)  
 ![2022-05-11_14h55_30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/58bf78b24327c1137287fe551e2618696f75c09f.png)

---

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 11, 2022, 12:58pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/5 "2022-05-11T12:58:24Z")

</div>

Thank you for your fast reply.  
Yes, the input is a string and the special signs are necessary since I want to export the parameter and need this notation. However the special signs shouldn’t be the issue.  
The error message is: “No parameter with this name found”

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 11, 2022, 1:00pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/6 "2022-05-11T13:00:19Z")

</div>

> [@Passthrough, how can i understand that?](https://forum.dynamobim.com/t/passthrough-how-can-i-understand-that/50646):
>
> [2020-05-14\_12h08\_59] [https://www.tutorialspoint.com/python/python\_pass\_statement.htm](https://www.tutorialspoint.com/python/python_pass_statement.htm) Hello Dynos, How can i understand this commend, it seems to be very simple. It is just made by Codeblocks! What can i acctualy do with a node like this? Does anyone have a practical use? I am glad about any info KR Andreas

---

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 11, 2022, 1:01pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/7 "2022-05-11T13:01:12Z")

</div>

Yes, it is missing in the file I posted. However, at least for me, it doesn’t change the result.

---

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 11, 2022, 1:13pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/8 "2022-05-11T13:13:23Z")

</div>

That sounds plausible.  
Unfortunately the passthrough node is a custom node and my company’s firewall does not allow me to download packages. I couldn’t find Python code for the node to create it by myself.  
Where would you place the Transaction.End node to avoid that error?

---

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 11, 2022, 1:28pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/9 "2022-05-11T13:28:51Z")

</div>

I implemented a passthrough code block. It worked once but since I reopened the project and tried to use the workflow again it returns the same error as before 😕

 ![NewParameterLayerWalls_2022-05-11_03-23-28](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/0509621e025fc6f873abffcbef806b9845f84343.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [May 11, 2022, 2:49pm UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/10 "2022-05-11T14:49:30Z")

</div>

What is the Error-Message?

---

<div class="post-metadata">

**Author:** ![ranocchio](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ranocchio](https://forum.dynamobim.com/u/ranocchio)\
**Post date:** [May 12, 2022, 9:24am UTC](https://forum.dynamobim.com/t/parameter-createsharedparameter-does-not-generate-new-parameter/76433/11 "2022-05-12T09:24:28Z")

</div>

It still shows me the same error:  
“No parameter with this name found”  
I did not include a screenshot since the error message gets displayed in german.  
However, I managed to solve my problem. Instead of using the

> Parameter.CreateSharedParameter

node, I’m using

> Parameter.CreateProjectParameter

since it still meets my needs. I have no idea why it works with one node and doesn’t work with the other.  
Nevertheless, the passthrough node depicted below is necessary to generate the new parameter before dynamo tries to pass the value.

 ![NewParameterLayerWalls_2022-05-12_11-40-17](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1074c45bd1ab5f623bef68fb9ef789e8f5b5b155.png)
