trailheadapps/ebikes-lwc

Security Property 'enableSetPasswordInApi' not valid in version 52.0

b94901099 opened this issue ยท 4 comments

hi team, I followed the instruction and got an issue at the step creating scratch orgs
sfdx force:org:create -s -f config/project-scratch-def.json -a ebikes
Error shape/settings/Security.settings Security Property 'enableSetPasswordInApi' not valid in version 52.0
In my sfdx-project.json, I have this property "sourceApiVersion": "46.0"
Wonder how I can resolve this.
Thanks in advance.

Welcome! ๐Ÿ‘‹

Thank you for posting this issue. ๐Ÿ™‡๐Ÿผโ€โ™‚๏ธ We will come back to you latest within the next 48h (working days). Stay tuned!

I can successfully create the scratch org now but getting another issue deploying the Product__c object.
Hope to get a solution here.
Thanks

$ sfdx force:org:create -s -f config/project-scratch-def.json -a ebikes
Successfully created scratch org: 00DR0000000MAVkMAO, username: test-nx8bo3thlimz@example.com
$ sfdx force:source:push
*** Deploying with SOAP ***
Job ID | 0AfR0000003xSMEKA2
SOURCE PROGRESS | โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ | 91/92 Components
Error  force-app/main/default/objects/Case/fields/Product__c.field-meta.xml  Cannot update a field to a Lookup, MasterDetail, or Hierarchy from something else (44:13)
ERROR running force:source:push:  Push failed.

Hello @b94901099 - you must delete the product field from the org. You can check out the steps here

Remove the Product custom field from the Case object with the following steps:

In Setup, click the Object Manager tab.
Click on the Case object.
Click Fields & Relationships.
Locate the Product picklist field and click Delete from the row menu.
Confirm deletion by clicking Delete.

thank you. I am not sure why product__c exist in the scratch org. it's a fresh org I just created before pushing the source.