AEM cloud CDN removeMarketingParams cdn yaml config not working - config pipeline failing during deployment | Community
Skip to main content
April 3, 2025
Solved

AEM cloud CDN removeMarketingParams cdn yaml config not working - config pipeline failing during deployment

  • April 3, 2025
  • 1 reply
  • 1010 views

Adobe cdn is not allowing utm params and as per the recommendation have created the cdn.yaml file and the config pipeline is failing as it is expecting rules to be configured with it. but as per the adobe document it is not required. How this can be resolved and how to allow the marketing params such as utm params to the dispatcher.

 

kind: "CDN"
version: "1"
metadata:
  envTypes: ["dev"]
data:
  requestTransformations:
    removeMarketingParams: false

 

error log :

2025-04-02T04:44:57+0000 Summary of events during the deployment step:
2025-04-02T04:45:46+0000 Config Pipeline update status is failed
2025-04-02T04:45:47+0000 Error details are present:
2025-04-02T04:45:47+0000 Skipping config kind 'LogForwarding'. No matching configuration file found.
2025-04-02T04:45:48+0000 Error in config kind 'CDN': [/requestTransformations]: must have required property 'rules'. Actual properties: ['removeMarketingParams']. Required properties: ['rules'].
2025-04-02T04:45:48+0000 Skipping config kind 'MaintenanceTasks'. No matching configuration file found.

Best answer by konstantyn_diachenko

Hi @kannang1 ,

 

Okay, message says that it requires arrays instead of object. In YAML empty array is [].

 

kind: "CDN" version: "1" metadata: envTypes: ["dev"] data: requestTransformations: removeMarketingParams: false rules: []

 

Best regards,

Kostiantyn Diachenko.

1 reply

konstantyn_diachenko
Community Advisor
Community Advisor
April 3, 2025

Hi @kannang1 ,

 

Actually it looks like a bug during config parsing, but according to error I would suggest to add empty rules property.

kind: "CDN" version: "1" metadata: envTypes: ["dev"] data: requestTransformations: removeMarketingParams: false rules:

 

Try it out, please. Don't forget to configure Dispatcher configuration's ignoreUrlParams property.

 

Best regards,

Kostiantyn Diachenko.

 

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
KannanG1Author
April 3, 2025

Hi @konstantyn_diachenko ,

 

Thanks for your input

 

Seems not working with empty rules

 

 

2025-04-03T17:39:38+0000 Error details are present:
2025-04-03T17:39:38+0000 Skipping config kind 'LogForwarding'. No matching configuration file found.
2025-04-03T17:39:39+0000 Error in config kind 'CDN': [/requestTransformations/rules]: must be array, but was object
2025-04-03T17:39:39+0000 Skipping config kind 'MaintenanceTasks'. No matching configuration file found.

 

Regards,

Kannan

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
April 3, 2025

Hi @kannang1 ,

 

Okay, message says that it requires arrays instead of object. In YAML empty array is [].

 

kind: "CDN" version: "1" metadata: envTypes: ["dev"] data: requestTransformations: removeMarketingParams: false rules: []

 

Best regards,

Kostiantyn Diachenko.

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.