Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

AssetDelivery is null in some AEM environments

Avatar

Level 1

Hi AEM Community,

I'm implemented web optimized URL feature of Dynamic Media for custom components.

I'm following the documentation to create a proxy OSGi service that can deliver web optimized images. https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/developing/advance...

 

The code is deployed to all AEM cloud environments.

 

Now the code works on lower environment like DEV and RDE which are using the same Company root folder. Example: companynamedev

But AssetDelivery is retuning "null" in higher environments like STAGE and PROD which are using same Company root folder. Example: companynameprod

 

Any help in debugging and fixing the issue is highly appreciated. 

 

Thanks.

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Hi @Vignesh_Naren 

 

Could you check the logs to see if any errors are being logged?
Based on my experience, the sample code you shared can run into issues on the following line when assets have spaces in their names, since the "seoname" field doesn't allow spaces:

 

options.put("seoname", StringUtils.defaultString((String) options.get("seoname"), asset.getName()));

 

Reviewing the logs should help confirm if that’s what's happening in your case.

 

Hope this helps!



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor and Adobe Champion

Hi @Vignesh_Naren 

 

Could you check the logs to see if any errors are being logged?
Based on my experience, the sample code you shared can run into issues on the following line when assets have spaces in their names, since the "seoname" field doesn't allow spaces:

 

options.put("seoname", StringUtils.defaultString((String) options.get("seoname"), asset.getName()));

 

Reviewing the logs should help confirm if that’s what's happening in your case.

 

Hope this helps!



Esteban Bustamante

Avatar

Level 3

Hi @Vignesh_Naren 


Is your Stage and Prod pointing to the same Dynamic Media instance as that of Dev?

 

Thanks!