0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

以前のチャレンジが残っていた場合のエラーメッセージ2

Last updated at Posted at 2023-12-18

以前のチャレンジが残っていた場合のエラーメッセージに戻る

I think the settings for the previous challenge remain.
Deactivate any settings that prevent you from creating opportunities

If you can't find the settings, try using New Playground

Winter24 適用後に今までとは違うエラーメッセージが出現しました。内容的には以前のチャレンジの設定が残っているために起きていると思われまます。ただ、これまでは以前のチャレンジで設定したエラーメッセージが返ってきたのですが、ここ最近は別のエラーメッセージを返しているようで、中身を特定できません。

商談が作成できない 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

First click setup then open object manager. Second click opportunity then open field dependencies. Third edit field dependencies and make sure every lost and won values are included then save it then check your challenge.

If this doesn't work, check this out: https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UrsrzSAB

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UrsrzSAB

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T68W1SAJ

image.png

I rechecked and found the issue for wider reach

The issue was that the validation on "Closed Reason" field, was further dependent on the controlling field "Stage" and there were no LOV included in the stage field. Hence, this error was coming at the time of verification.

Once I included the LOV in the stage field for " Closed Lost ", it worked seamlessly.

再確認したところ、より広い範囲に問題があることがわかりました

問題は、「クローズされた理由」の検証が完了していないことでした。フィールドはさらに、制御フィールド「Stage」に依存していました。また、ステージフィールドには LOV が含まれていませんでした。したがって、このエラーは検証時に発生していました。

ステージ フィールドに LOV を含めたことがあります。 クローズドロスト " はシームレスに機能しました。

deactivate this checkbox and try the step in Trailhead again

image.png

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UpAE7

Hello, I have resolved my error. #Validation Rule

here are the steps:-

  • First click setup then open object manager.
  • Second click opportunity then open field dependencies.
  • Third edit field dependencies and make sure every lost and won values are included then save it then check your challenge.

I have my answer and resolved everyone's error.

こんにちは。エラーは解決しました。 #検証ルール

手順は次のとおりです:-

  • まず [セットアップ] をクリックしてから、オブジェクト マネージャーを開きます。
  • 次に商談を 2 回クリックして、フィールドの依存関係を開きます。
  • 3 番目にフィールドの依存関係を編集し、負けた値と勝った値がすべて含まれていることを確認して保存し、チャレンジを確認します。

私には自分なりの答えがあり、みんなの間違いは解決されました。

a validation rule from a previous trailhead is causing this issue. The validation rule you have to deactivate is the one called (or at least that's how I see it in my org) "Account_Number_8_Characters"

PDFの添付

I created a completely new playground and re-did all the work from the module, including all previous steps. This finally worked.

First click setup then open object manager. Second click opportunity then open field dependencies. Third edit field dependencies and make sure every lost and won values are included then save it then check your challenge.

If this doesn't work, check this out: https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UrsrzSAB

言語設定が英語以外

I have reviewed the issue in your org and it seems you have created a custom field "Discount Percent" as a required field in Opportunity object as a require field which was a part of previous Trailhead challenge requirement.

取引先責任者が作成できない An unexpected error occurred while inserting contact records and we couldn't check your work. Make sure Contact records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.

I have found the solution. Although quite strange. The fix is to write the query String in a single line (instead of multiple lines like in the example) like this-

String queryString = 'SELECT ID FROM Contact WHERE lastName = :lastName AND title = :title LIMIT 1';

So my code goes like this

String queryString = 'SELECT ID FROM Contact WHERE lastName = :lastName AND title = :title LIMIT 1';

List<Contact> contacts = Database.queryWithBinds(
     queryString,     
     bindVars,     
     AccessLevel.USER_MODE 
);
return contacts?.get(0).Id;

worked for me, No need to insert a contact, Instead query it with last name and title .

I tried in two old and one new orgs, all get this error message. After changed the query string to:

String queryStr = 'SELECT ID FROM Contact WHERE lastName = :lastName AND title = :title LIMIT 1';

image.png

Try launching the developer console and clicking the Validate button.
I think the error is logged in the debug log.

取引先が作成できない 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. If this continues, contact the Trailhead Help team.

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 を使用しました。最後のレッスンを正常に検証し、プロジェクトを完了することができました。

I had to disable triggers created in previous exercises which were blocking the creation of new account record.

I did get similar error on Opportunity which I was able to fix based on steps outlined in following question:

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T68W1SAJ

上記で解決

別の原因

I found another validation rule I had created when going through the module.

Lesson for me is: don't save any steps taken when going through the module (that are not part of the Verify Step at the end)!

上記の複合回答

Please deactivate Account_Number_8_Characters Validation rules

SETUP > OBJECT MANAGER > Account > Validation rules Account_Number_8_Characters
-> deselect " Active"
-> Save

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?