Skip to main content
NG NG ha publicado en Salesforce DX

Hi everyone, I have a few issues on pushing into a new scratch org when working with experience bundle.

 

I'm using an exciting org metadata with two communities and I'm facing several issues along the way:

Scrath org def:

I have generated a shape of my prod org into a JSON scrach def file.

Note that using sourceOrg directly will generate a scratch org with all my prod settings, but I can't create communities in it - I'm getting "Required fields are missing: [Welcome Email Template, Change Password Email Template, Lost Password Template]", this happens from the UI as well, if I try to create a community manually. Because of that I'm using the generated JSON instead.

 

Deploy vs Push:

I have selected all our org relevant metadata including communities (excluding siteDotCom as we want to work with Experience).

When trying to push around (2000 components according to the deployment status), I'm getting the following error:

In field: PicassoSite - no SiteDotCom named [community_name] found

 

The Experience Bundle meta is using <ExperienceBundle...> not <SiteDotCom...>

so I'm not sure why I'm still getting this.

 

<catch 22>

Note that pushing the siteDotCom instead of the experience bundle does work, but then when removing the siteDotCom and pulling the experience it does bringing the experience meta, but this meta is not deployable to our CI Sandbox, since all the reference Ids are bad (there is other weird issue as well). 

 

I have tried deploying to the scratch org, which work as well (only with siteDotCom), but still getting the same issue with experience bundle in the end result.

 

sfdx-cli/7.82.1-0 linux-x64 node-v14.15.4

Metadata version 50

 

final note, I'm getting a lot of those when trying to push into a scratch org (only for the big initial package):

Error: getaddrinfo EAI_AGAIN [scratch org domain]

Unhandled rejection Error: getaddrinfo EAI_AGAIN [scratch org domain]

    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

 

If someone can share his experience with setting up a similar configuration or have ideas on how to resolve those issues it will be much helpful.

4 comentarios
  1. 7 feb 2021, 21:29
    Feels the same, error messages are not at all helpful. In one project, the team forgot to install a third party package on the a higher environment, and got annerror, we debugged for 2 days trying to understand unknown error. Support was not helpful either asking to switch back.
0/9000