Create Validation Rulesの質問
取引先と商談の2つに作る
An unexpected error occurred while inserting Account records and we couldn't check your work. Make sure Account records can be inserted in this org, and click "Check Challenge" again.
I ended up creating a new playground and going through the steps again. I found that the Customize Record Pages step was different from when I went through it the first time a few weeks ago. This time it had me using Dynamic Forms and the Lightning App Builder. I was able to successfully validate the last lesson and complete the project.
結局、新しいプレイグラウンドを作成して、もう一度手順を繰り返すことになりました。「レコード ページのカスタマイズ」ステップが、数週間前に初めて実行したときとは異なっていることがわかりました。今回は、Dynamic Forms と Lightning App Builder を使用しました。最後のレッスンを正常に検証し、プロジェクトを完了することができました。
Please check if it is set in the Opportunity object.
実際にやってみた結果
何もしないで、検証ボタンをクリックしてみた
We couldn't find an active validation rule named 'Support_Plan_Expiration_Date_Required' on the Account object.
設定を済ませると...
An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.
あちゃぁ、よく見るエラーだ。
そうだ、この環境は色々と仕込まれていたな。
まずは、今回作ったもの以外のValidation Rulesを非アクティブにする。
これ以外もあるかな?
変なApexがあるな。
ああああ、アンインストールできん。
- 別のプレイグランドで同じように入力規則を作ってみましたが... 何だろうねぇ。
An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.
Discount Percentが必須になっている。これをオフにしてみます。ビンゴでした。