# Metadata display name not coming

**URL:** <https://community.dynatrace.com/t/metadata-display-name-not-coming/36622>\
**Category:** Dynatrace API\
**Tags:** tagging, dynatrace-api\
**Created:** [September 22, 2022, 3:38pm UTC](https://community.dynatrace.com/t/metadata-display-name-not-coming/36622 "2022-09-22T15:38:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dynatrace124](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@Dynatrace124](https://community.dynatrace.com/u/Dynatrace124)\
**Post date:** [September 22, 2022, 3:38pm UTC](https://community.dynatrace.com/t/metadata-display-name-not-coming/36622/1 "2022-09-22T15:38:50Z")

</div>

I am using Dynatrace OneAgent metric API and making post calls to ingest metrics in the Dynatrace server.

I was trying to give a display name to some of the metrics being ingested using my script before making a post call.

I am observing this error :&nbsp;  
_{“linesOk”:0,“linesInvalid”:1,“error”:{“code”:400,“message”:“1 invalid lines”,“invalidLines”:[{“line”:1," **error":“reserved dimension key: dt.meta.displayname”** }]},“warnings”:null}_

Part of Code which I am using for of adding display name is this:

 ![Screenshot 2022-09-22 at 8.38.12 PM.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/2/42f53c09833eb16bd2f12516bd3eb95802cc8f42.png)

On printing metric format, it is appearing as this :

‘wa.metricboard.application\_wa\_jobsbyworkstation\_jobs,dt.meta.displayname=Job count by Workstation,description=jobsnumberinthestatusspecifiedbyjobstatustag,jobstatus=ERROR,workstation=/MASTERAGENTS 3.0’.

I am following this structure: **metricKey,dt.meta.prop1=\<\_\_\>,dimensions &nbsp;payload.**

If not, what is the right way?

Thank You

---

<div class="post-metadata">

**Author:** ![abbachr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abbachr/32/28551_2.png) [@abbachr](https://community.dynatrace.com/u/abbachr)\
**Post date:** [December 14, 2022, 12:58pm UTC](https://community.dynatrace.com/t/metadata-display-name-not-coming/36622/2 "2022-12-14T12:58:18Z")

</div>

The error message indicates that you sent in a normal metric data point and not a metadata line. As mentioned in the docs, a metadata line needs to start with the ‘#’ symbol:

> **[Metric ingestion protocol](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol)**
>
> Learn how the data ingestion protocol for Dynatrace Metrics API works.
