# Issues in accessing quality metadata

**URL:** <https://alice-talk.web.cern.ch/t/issues-in-accessing-quality-metadata/1397>\
**Category:** O²\
**Tags:** quality-control\
**Created:** [December 21, 2022, 12:02pm UTC](https://alice-talk.web.cern.ch/t/issues-in-accessing-quality-metadata/1397 "2022-12-21T12:02:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlesch](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@mlesch](https://alice-talk.web.cern.ch/u/mlesch)\
**Post date:** [December 21, 2022, 12:02pm UTC](https://alice-talk.web.cern.ch/t/issues-in-accessing-quality-metadata/1397/1 "2022-12-21T12:02:42Z")

</div>

Dear experts,

I currently have some issues in accessing metadata that is attached to the quality of a QO. For instance, in a dedicated checker some metadata is added via `quality->addMetadata("Comment", "TestComment")`

If I call within the checker `quality->getMetadata("Comment")` (e.g. in a beautify function) I indeed get the string “TestComment”. However, if I access the QO with another task, get its quality and call `quality->getMetadata("Comment")`, then I am not able to retrieve the metadata anymore. However, I can access the quality status (good, medium, bad, null) itself. This can be seen e.g. with [this QO object on the test ccdb](http://ccdb-test.cern.ch:8080/browse/qc/TPC/QO/CheckOfTrack_Trending/Tracks_Trending/hEta_StatMean_Trend), which should have the metadata “TestComment” under the key “Comment”, but nothing is stored.

Do you have any inside of what I am doing wrong? I would be thankful for any help in this issue!

Cheers,  
Marcel

---

<div class="post-metadata">

**Author:** ![pkonopka](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/p/e47774/32.png) [@pkonopka](https://alice-talk.web.cern.ch/u/pkonopka)\
**Post date:** [January 5, 2023, 9:33am UTC](https://alice-talk.web.cern.ch/t/issues-in-accessing-quality-metadata/1397/2 "2023-01-05T09:33:49Z")

</div>

Hi Marcel,  
apologies for the late reply, both me and Barth were (are) on holidays.

I identified a bug in the framework, a fix is on the way  
[https://alice.its.cern.ch/jira/browse/QC-912](https://alice.its.cern.ch/jira/browse/QC-912)

---

<div class="post-metadata">

**Author:** ![mlesch](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@mlesch](https://alice-talk.web.cern.ch/u/mlesch)\
**Post date:** [January 9, 2023, 2:35pm UTC](https://alice-talk.web.cern.ch/t/issues-in-accessing-quality-metadata/1397/3 "2023-01-09T14:35:11Z")

</div>

Hi Piotr,

Thanks a lot for the help, well appreciated!

Cheers,  
Marcel
