# How to modify component's metadata?

**URL:** <https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719>\
**Category:** Python Programming\
**Created:** [June 25, 2019, 9:37am UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719 "2019-06-25T09:37:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwn\_h](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wwn\_h](https://forum.visualcomponents.com/u/wwn_h)\
**Post date:** [June 25, 2019, 9:37am UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719/1 "2019-06-25T09:37:06Z")

</div>

I want to modify the Metadata information of the component through vcHelpers.VcmFile .

But after the modification, the updated information is not shown in the component’s metadata, why?

![](https://vc-forum-files.s3-eu-west-1.amazonaws.com/uploads/hm_bbpui/15169/mvdw6np5gai5l9u0br4w2qibubmeusx6.png)

---

<div class="post-metadata">

**Author:** ![anon52833583](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/9e8a1a/32.png) [@anon52833583](https://forum.visualcomponents.com/u/anon52833583)\
**Post date:** [June 25, 2019, 10:19am UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719/2 "2019-06-25T10:19:46Z")

</div>

There seems to be a bug in VcmFile. Whenever there’s no attribute e.g. Description given to the component previously, it’s ignored and not created by the VcmFile helper.

So to work around it, you have to give the component some Description (even just a space is enough) when saving it (with the UI). After that the attribute is created for the component and VcmFile is capable of writing to it.

I hope it will get fixed to the next release.

---

<div class="post-metadata">

**Author:** ![wwn\_h](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wwn\_h](https://forum.visualcomponents.com/u/wwn_h)\
**Post date:** [June 26, 2019, 11:29am UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719/3 "2019-06-26T11:29:11Z")

</div>

Hi ,jouha!

Thanks for your replay.

But I don’t understand the meaning about " you have to give the component some Description (even just a space is enough) when saving it (with the UI)".

Can you help me with a case to introduce about this?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![anon52833583](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/a/9e8a1a/32.png) [@anon52833583](https://forum.visualcomponents.com/u/anon52833583)\
**Post date:** [June 26, 2019, 1:59pm UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719/4 "2019-06-26T13:59:02Z")

</div>

Hi!

Sorry for being a bit confusing…

When you (first time) save the component you need to type something into the description in order to change that entry afterwards with VcmFile helper.

So the entries are not created to the actual .vcmx file if the field/attribute is empty when saving the component and the VcmFile is not able to create such (due to bug/implementation) afterwards.

Hope this clarifies it!

---

<div class="post-metadata">

**Author:** ![wwn\_h](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wwn\_h](https://forum.visualcomponents.com/u/wwn_h)\
**Post date:** [July 12, 2019, 4:27pm UTC](https://forum.visualcomponents.com/t/how-to-modify-components-metadata/719/5 "2019-07-12T16:27:49Z")

</div>

houha,

Thank you very much!

I have successfully solved this problem through the method you gave.
