Publish separate AOV error Deadline

Hey everyone,

I’m trying to render separate AOV’s from maya with Deadline. Everything renders as expected but during the publish process I’m getting an error about duplicate productNames. This is the error I’m getting:

2025-03-27 14:09:32:  0: STDOUT: ERROR:pyblish.plugin:Traceback (most recent call last):
2025-03-27 14:09:32:  0: STDOUT:   File "/home/farm/.local/share/AYON/dependency_packages/ayon_2410161522_linux-rocky9.zip/dependencies/pyblish/plugin.py", line 528, in __explicit_process
2025-03-27 14:09:32:  0: STDOUT:     runner(*args)
2025-03-27 14:09:32:  0: STDOUT:   File "/home/farm/.local/share/AYON/addons/core_1.1.3+AM.0.2/ayon_core/plugins/publish/validate_unique_subsets.py", line 84, in process
2025-03-27 14:09:32:  0: STDOUT: ayon_core.pipeline.publish.publish_plugins.PublishXmlValidationError: Instance product names ['/sequences/RnD/sh010 > lgt_Harry'] are not unique. Please remove or rename duplicates.
2025-03-27 14:09:32:  0: STDOUT: Traceback (most recent call last):
2025-03-27 14:09:32:  0: STDOUT:   File "/home/farm/.local/share/AYON/dependency_packages/ayon_2410161522_linux-rocky9.zip/dependencies/pyblish/plugin.py", line 528, in __explicit_process
2025-03-27 14:09:32:  0: STDOUT:     runner(*args)
2025-03-27 14:09:32:  0: STDOUT:   File "<string>", line 84, in process
2025-03-27 14:09:32:  0: STDOUT: ayon_core.pipeline.publish.publish_plugins.PublishXmlValidationError: Instance product names ['/sequences/RnD/sh010 > lgt_Harry'] are not unique. Please remove or rename duplicates.
2025-03-27 14:09:32:  0: STDOUT: !!! ERR: 2025-03-27 14:09:32,878 >>> { CLI-publish }: [ Failed ValidateProductUniqueness: Instance product names ['/sequences/RnD/sh010 > lgt_Harry'] are not unique. Please remove or rename duplicates. -- ('/home/farm/.local/share/AYON/addons/core_1.1.3+AM.0.2/ayon_core/plugins/publish/validate_unique_subsets.py', 84, 'process', '') ]

I’m assuming it has to do with the template we’ve configured but after adding the {aov} key in the template it keeps on giving the error. My templates are the following:

And the template for the product name:

When just rendering the merged aov’s it does pickup the {aov} key so that is working.

The metadata publish data is the following:
lgt_Harry_metadata.json (90.1 KB)

Do other people run it to this? I’m sure it has something to do with how we configured our Ayon but I can’t figure out where this is coming from.

Thanks in advance!

Ralph

I believe this is related to Product Name Profiles setting ayon+settings://core/tools/creator/product_name_profiles as it’s responsible for naming your products and subsequently naming your publish instances.

You can test quickly in Houdini by using local render target and hit validate button image.
This is possible becasue Houdini local render mimics the farm logic.

And, If validation works fine, you’d be able to see the AOV runtime instances in the publisher.

Here are the rsults from the default template.



And, here are the results from my updated template using <_{Aov}>



P.S.
Local render instnaces mentions mantra_rop becasue this the product type of the original instance. should be fixed by Change render creator product types to render so they are all just render products #214.

Thanks Mustafa,

I didn’t know how to use the {aov} token within the template correctly. It works now. Thanks a million!

Ralph

Just to quickly get back to this issue. Is it possible to use product[group] instead of product[name] as a key in the template. Preferably I don’t want to separate the passes into different folders and since the productname now has the aov in the name it automatically forces this.

So the preferred template would be /renderlayer({product[group]}?)/version/renderlayer_aov.exr.

I tried replacing the product[name] with product[group] in my render template
image

But on publish it can’t resolve the product[group] key. Eventough it seems registered in the metadata.json

Is this possible or supported?

So, you want grouped products saved togther in one folder.

Isn’t it the same with textures?


Anatomy Templates follow the Project Anatomy | AYON Docs

Feel free to request more keys here AYON Feedback

Yes. That would be ideal. How should I be able to achieve that?

Go to AYON Feedback and create a new request
image

1 Like