-
Notifications
You must be signed in to change notification settings - Fork 99
New error creating scratch orgs that have a defaultRecordType in project-scratch-def.json #942
Comments
@jonathankretzmer can you confirm whether this was working in February 22 of sfpowerscripts? |
This was previously working in the February 22 version, yes. |
@jonathankretzmer Are you able to replicate this when used with sfdx force:org:beta:create? Looks like the underlying core lib is not fully incorporated |
It looks as though your suspicion was correct, I get the same error when running sfdx force:org:beta:create |
Lets create an issue with core lib |
@jonathankretzmer Where you able to create an issue in forcedotcom/cli? |
@azlam-abdulsalam, I had the same issue. |
I dropped the ball and forgot to log the issue with forcedotcom/cli. I have checked again to verify if the issue is still present and it, unfortunately, appears to be. Planning to submit an issue today, will keep you updated. |
Logged the issue, bug confirmed and work item assigned. |
I tried to repeat the issue with and without defaultRecordType notation, and received errors in both cases:
|
Thanks @jonathankretzmer for reporting it to cli team |
@AndreyShestakovACN this issue also happens with object settings as well |
This is fixed in 18.1.3 as part of core v3 |
Describe the bug
Receiving an error when attempting to set defaultRecordType in objectSettings within "project-scratch-def.json". Specifically applying the default record type to PersonAccount when using the PersonAccounts feature.
To Reproduce
project-scratch-def.json:
pool-ci.json:
Run command:
sfdx sfpowerscripts:orchestrator:prepare -v "devhub" -f config/pool-ci.json --loglevel=trace
Error message received:
The CLI command works fine when creating the scratch orgs on the same file:
sfdx force:org:create --definitionfile config\project-scratch-def.json --setdefaultusername --durationdays 1 -w 30 -v devhub
Expected behavior
Scratch Org Pool creation should create orgs as expected.
To rectify I needed to remove the "objectSettings" section of the "project-scratch-def.json" file.
Platform Details (please complete the following information):
The text was updated successfully, but these errors were encountered: