I've got an error when deploying 2nd gen package to scratch org

(Flexi_Page) Data Not Available The data you were trying to access could not be found. It may be due to another user deleting the data or a system error. If you know the data is not deleted but cannot access it, please look at our <a href="{0}" title="support{1}" support</a> page.

When I deployed this package version to sandbox I did not receive any errors. Could someone explain what should be done?

  • Does your scratch org have a namespace assigned, and is it the same as the package?
    – Phil W
    Mar 24, 2023 at 18:01
  • @Phil W -i guess yes, because I've created this scratch from Dev hub, where namespace was registered. But let me create the new one
    – oldgunner
    Mar 24, 2023 at 18:45
  • The namespace is specified in the sfdx-project.json or scratch def, can't remember which, not the dev hub.
    – Phil W
    Mar 24, 2023 at 19:03
  • Yeah, I used this link sfdx-isv.github.io/sfdx-workshop/sfdx-managed-packages/…
    – oldgunner
    Mar 24, 2023 at 19:17
  • 1
    Well, if the scratch org has the package's namespace and you try to install the package rather than deploy the package's metadata to it, stuff will go wrong. You either have the namespace on the org and deploy, or you have no namespace on the org (or some other namespace) and install.
    – Phil W
    Mar 24, 2023 at 21:40

1 Answer 1


After many attempts of deploying I've noticed that flexipage overrides profile settings but I did not have this profile in my scratch org.

    <profile>Custom Profile Name</profile>

So I've cloned existing profile with brand new name (Custom Profile Name) and package installed successfully! Thanks for your help, @Phil W!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .