# 400 Error for in Grafana UI when using ID's to use Metric Math

**URL:** <https://community.grafana.com/t/400-error-for-in-grafana-ui-when-using-ids-to-use-metric-math/127392>\
**Category:** Cloudwatch\
**Created:** [July 30, 2024, 12:25am UTC](https://community.grafana.com/t/400-error-for-in-grafana-ui-when-using-ids-to-use-metric-math/127392 "2024-07-30T00:25:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajunx8](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ajunx8](https://community.grafana.com/u/ajunx8)\
**Post date:** [July 30, 2024, 12:25am UTC](https://community.grafana.com/t/400-error-for-in-grafana-ui-when-using-ids-to-use-metric-math/127392/1 "2024-07-30T00:25:11Z")

</div>

- What Grafana version and what operating system are you using?  
MacOS 14.4  
Browser: Firefox  
Grafana: Grafana v11.0.0 (277ef258d4)

- **What** are you trying to achieve?  
For the panel to match itself in the grafana app.

- **How** are you trying to achieve it?  
embedded grafana through reverse proxy. All other panels work. This particular panel is using cross-account data. (if that affects it)

- What happened?  
Panel in embedded grafana UI is showing the error.

- What did you **expect** to happen?  
Query built with “code” option. When using an ID of another query. The embedded panel version says that the ID is not found. But in the actual Grafana app where I modify the panel, there is no issue.  
This is the query “code”  
`FILL(ebp,0)`

- Can you copy/paste the configuration(s) that you are having problems with?

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
Error in the UI  
`metric request error: "ValidationError: Error in expression 'query16c3e4cf58294f6484dbd7d1d2db5ea5': ID 'ebp' not found\n\tstatus code: 400, request id: acb9b7e6-c7de-462c-b7c6-e4bcbd7c5b61`

---

<div class="post-metadata">

**Author:** ![runnoob](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@runnoob](https://community.grafana.com/u/runnoob)\
**Post date:** [August 21, 2024, 1:25am UTC](https://community.grafana.com/t/400-error-for-in-grafana-ui-when-using-ids-to-use-metric-math/127392/2 "2024-08-21T01:25:53Z")

</div>

![image](https://us1.discourse-cdn.com/grafana/original/3X/1/6/16d0b7c37d3bad34b8513581f5377effccad6260.png)  
You might have to redefine your source name in Grafana. Check my example `my_source`
