# Newly created Agent policy has space\_id set to null in version 9.4.2

**URL:** https://discuss.elastic.co/t/newly-created-agent-policy-has-space-id-set-to-null-in-version-9-4-2/386845
**Category:** Elastic Agent
**Created:** [June 12, 2026, 7:58pm UTC](https://discuss.elastic.co/t/newly-created-agent-policy-has-space-id-set-to-null-in-version-9-4-2/386845 "2026-06-12T19:58:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![umesh2020](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umesh2020/32/126038_2.png) [@umesh2020](https://discuss.elastic.co/u/umesh2020)
#### Post date: [June 12, 2026, 8:41pm UTC](https://discuss.elastic.co/t/newly-created-agent-policy-has-space-id-set-to-null-in-version-9-4-2/386845/3 "2026-06-12T20:41:42Z")

</div>

Thanks @leandrojmp for your quick response. If I migrate, will it impact existing Agent policies ? If I don't migrate, I am getting error in creating private locations as the space\_id is null. Is there a work around in this case ?

---

_[View the full topic](https://discuss.elastic.co/t/newly-created-agent-policy-has-space-id-set-to-null-in-version-9-4-2/386845)._
