You need to sign in to do that
Don't have an account?
Tarun Kumar Mohanty
Error: You can't change a Lightning page's associated template.
Hi everyone I am trying to deploy code on sandbox using ant but got some error
Error: You can't change a Lightning page's associated template.
please help me found out actual meaning
Thank you.
Error: You can't change a Lightning page's associated template.
please help me found out actual meaning
Thank you.
As the error suggests, you will not be able to change a Lightning page's associated template. You will need to recreate your pages in the target org
https://salesforce.stackexchange.com/questions/239243/error-when-trying-to-deploy-lightning-page-error-you-cant-change-a-lightning
As per the document :
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_flexipage.htm
template FlexiPageTemplateInstance Required. The template associated with the Lightning page.
This field is available in API version 39.0 and later.
as per the docs, the template attribute is of type FlexiPageTemplateInstance
Meaning it's an instance of the template. which means that somewhere underlying this instance needs to be defined.
Related Idea: https://ideas.salesforce.com/s/idea/a0B8W00000GdVwEUAV/allow-lightning-apprecord-page-template-change-on-edit-instead-of-recreating
If this information helps, please mark the answer as best. Thank you