# How to suppress warnings from NamespaceEditor

**URL:** <https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862>\
**Category:** USD\
**Created:** [February 19, 2026, 3:27pm UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862 "2026-02-19T15:27:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkat](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rkat](https://forum.aousd.org/u/rkat)\
**Post date:** [February 19, 2026, 3:27pm UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862/1 "2026-02-19T15:27:35Z")

</div>

Hi there,  
When I use the NamespaceEditor as shown below, I receive the following warning messages.  
However, this relocation is intentional, and the result is correct, so I would prefer not to have these warnings appear.  
Are these warnings expected and what options do we have to suppress them given these layers?  
I considered filtering them in our delegate, but I would rather avoid checking warning if possible.

Thank you!

Here’s the sample code:

```auto
from pxr import Usd, Sdf, Tf
chairLayerStr = """#usda 1.0
(
    defaultPrim = "Chair"
)

def Material "Chair"
{
    token outputs:displacement.connect = </Chair/Shader.outputs:out>

    def Shader "Shader"
    {
        token outputs:out
    }
}

"""
chairLayer = Sdf.Layer.CreateAnonymous()
chairLayer.ImportFromString(chairLayerStr)

stage = Usd.Stage.CreateInMemory()
p = stage.DefinePrim("/World/Asset/Asset01")
p.GetReferences().AddReference(chairLayer.identifier)

e = Usd.NamespaceEditor(stage)
e.MovePrimAtPath("/World", "/ABC")
e.ApplyEdits()

```

Here’s the warning:

```auto
Failed to update the following targets and/or connections for the namespace edit: Fixing the connection paths [/World/Asset/Asset01/Shader.outputs:out] for the attribute at '/World/Asset/Asset01.outputs:displacement' would require '/World'to be relocated but we do not introduce relocates for prims that do not have opinions across composition arcs.

```

---

<div class="post-metadata">

**Author:** ![diyajoy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@diyajoy](https://forum.aousd.org/u/diyajoy)\
**Post date:** [February 25, 2026, 6:55pm UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862/2 "2026-02-25T18:55:04Z")

</div>

@rkat Thank you for the example! This does look like a bug - the warning you’re seeing should not be issued by the namespace editor for the edit you’re trying to do. Unfortunately, there’s currently no easy way to suppress warnings. We’ve filed an internal issue to address the incorrect warning, and can let you know when it’s pushed to dev!

---

<div class="post-metadata">

**Author:** ![rkat](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rkat](https://forum.aousd.org/u/rkat)\
**Post date:** [February 26, 2026, 6:10pm UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862/3 "2026-02-26T18:10:51Z")

</div>

Thank you for checking. I’ll share this with my team.

---

<div class="post-metadata">

**Author:** ![diyajoy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@diyajoy](https://forum.aousd.org/u/diyajoy)\
**Post date:** [June 8, 2026, 8:13pm UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862/4 "2026-06-08T20:13:11Z")

</div>

@rkat A [fix](https://github.com/PixarAnimationStudios/OpenUSD/commit/d70dd68f1fbc46be83b5b222190c29f0dc021afd) is in the 26.05 release - the warnings you mentioned should no longer appear!

---

<div class="post-metadata">

**Author:** ![rkat](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@rkat](https://forum.aousd.org/u/rkat)\
**Post date:** [June 9, 2026, 9:48am UTC](https://forum.aousd.org/t/how-to-suppress-warnings-from-namespaceeditor/2862/5 "2026-06-09T09:48:16Z")

</div>

I confirmed the warning is not displayed anymore on my end. Thank you very much.
