# Settings parameters are always outdated

**URL:** <https://forum.opentap.io/t/settings-parameters-are-always-outdated/776>\
**Category:** Technical\
**Created:** [July 13, 2022, 9:09am UTC](https://forum.opentap.io/t/settings-parameters-are-always-outdated/776 "2022-07-13T09:09:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![carlos.montes](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@carlos.montes](https://forum.opentap.io/u/carlos.montes)\
**Post date:** [July 15, 2022, 3:41pm UTC](https://forum.opentap.io/t/settings-parameters-are-always-outdated/776/3 "2022-07-15T15:41:28Z")

</div>

Hello @connospp and welcome to the forum!

I have a couple of questions:

-How are you updating the settings? Are you enabling the “Allow Metadata Prompt” checkbox on the Engine settings or are you using a custom user prompt?

![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/8cae0eccc6c2038b52c95b9a2ce1fbf8bc693185.png)

We noticed this behavior a few months ago and are working on a fix, in the meantime there is a workaround which you can find on the following post:

> [@How to show user prompts from within the plugin code?](https://forum.opentap.io/t/how-to-show-user-prompts-from-within-the-plugin-code/105/12):
>
> Hello @smartkuku, We have confirmed the bug when using component settings and I have filed an issue with R&D. In the meantime, there is a work around. First you need to create a DUT and move the Serial from the Component Settings to the new created DUT, also in order to propagate the serial number change we need to add a private property and also call the OnPropertyChanged() method on the set, here is an example of the DUT I created: namespace OpenTap.Plugins.MyPlugin1 { [Display(“MyDut1”,…

The workaround is:  
-move the properties from the component settings to the DUT  
-call the OnPropertyChanged() method on the setter of each property  
-Enable the “Allow Metadata Prompt” checkbox on the Engine settings

This should update the metadata properties and you should be able to get the updated values on Result Listener OnTestStepRunStart, OnTestPlanRunCompleted and also on any test step Run. I tested the behavior and here are some screen shots showing the input box for the meta data and the session log shows the values for Serial and Operator during the OnTestStepRunStart, Test Step Run and OnTestPlanRunCompleted:

![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/d0a5e491101f4bb78693fee0d9715ebacfd9952f.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/9b26c5a083dd921942e081a7cd65d959a9b2b2b8.png)

Let me know if this works for you.

Regards,

Carlos Montes

---

_[View the full topic](https://forum.opentap.io/t/settings-parameters-are-always-outdated/776)._
