trailheadapps / ebikes-lwc

Sample application for Lightning Web Components and Experience Cloud on Salesforce Platform. Retail use case. Get inspired and learn best practices.
https://developer.salesforce.com
Creative Commons Zero v1.0 Universal
780 stars 1.16k forks source link

Error Case.Product__c Cannot update a field to a Lookup, MasterDetail, or Hierarchy from something else #604

Closed LoryHFHForce closed 12 months ago

LoryHFHForce commented 12 months ago

Summary

I had an improvement from the issue I reported in https://github.com/trailheadapps/ebikes-lwc/issues/603

Now it is just this 1 Component Failure

Component Failures [1] =============================================================================================================================
| Type Name Problem Line:Column
| ───── ─────────────── ───────────────────────────────────────────────────────────────────────────────────────── ───────────
| Error Case.Product__c Cannot update a field to a Lookup, MasterDetail, or Hierarchy from something else (44:13) 44:13

Salesforce Org Type

Trailhead Playground

Steps To Reproduce

  1. In VS Code - git clone https://github.com/trailheadapps/ebikes-lwc
  2. cd ebikes-lwc
  3. $ sf org login web -s -a mydevorg
  4. In playground - Enabled Digital Experiences > Enable ExperienceBundle Metadata API.
  5. Deleted Product__c
  6. Back to VS Code - Edited metadata as per instructions #4 (for Trailhead Playground)
  7. sf project deploy start -d force-app

Expected Result: Successful deployment to the Playground.

Current Behavior

Deploying v59.0 metadata to lory.tibbetts@brave-panda-khtdy2.com using the v59.0 SOAP API. Deploy ID: 0Af8b00000NQ278CAD Status: Failed | ████████████████████████████████████████ | 103/103 Components (Errors:1) | 0/0 Tests (Errors:0)

Component Failures [1] =============================================================================================================================
| Type Name Problem Line:Column
| ───── ─────────────── ───────────────────────────────────────────────────────────────────────────────────────── ───────────
| Error Case.Product__c Cannot update a field to a Lookup, MasterDetail, or Hierarchy from something else (44:13) 44:13

Expected Behavior

Please note that when I tried to create a scratch org and deploy the project, I had no problems. The app appeared in my scratch org beautifully.

Playground is a different story that I seem to be fighting with repeatedly.

Thanks!

Relevant Log Output

No response

Code of Conduct

github-actions[bot] commented 12 months ago

Thank you for posting this issue. 🙇🏼‍♂️
We will come back to you shortly.