You need to sign in to do that
Don't have an account?
Vladyslav Kushney
Lightning - We couldn't retrieve the component in the main region
I develop managed package, and I pack lightning page and lightning components into package. I have Mydomain established. It uploads successfully, but when I install it in target org, I get an error:
(MyLightningPage) Validation Errors While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "We couldn't retrieve the Mymanespace:Mycomponent component in the main region.".
I can install package with lightning page without that Mycomponent successfully. Component has only two inputs and button and it sends and receives data from Apex controller.
In development org component works absolutely alright.
(MyLightningPage) Validation Errors While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "We couldn't retrieve the Mymanespace:Mycomponent component in the main region.".
I can install package with lightning page without that Mycomponent successfully. Component has only two inputs and button and it sends and receives data from Apex controller.
In development org component works absolutely alright.
@mohith_shrivastava this is first line of my component
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespace_using_reference.htm
Is there any way to add components to page via xml and metadata?
@mohith_shrivastava this is flexipage, I can see that in component definition namespace is missing, but when I add namespace: to component name and deploy it, after retriving it is again without namespace.