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?

Create Validation Rulesでの質問 Rule Name: Contact_must_be_in_Account_ZIP_Code

Last updated at Posted at 2021-07-20

Trailhead関係 個別の課題別

このトレイルヘッドの質問が多いんですよね。何でだろうなぁ。

Formulas and Validations > Create Validation Rules

Set it to the Contact object.

AND(
NOT(ISBLANK(AccountId)),
MailingPostalCode <> Account.ShippingPostalCode
)

最近エラーメッセージの出る条件が変わったかもしれません

このエラーでも単純に上記設定ができてないだけみたいです。以前は他の条件もあったのですがね。

We can't create a contact by itself (without an associated account). Make sure the validation rule applies ONLY when the contact has an associated account.

個人取引先がある?


Winter 24 から上記設定だけでは解決しない不思議な現象

I was able to get this to work by exiting the playground and closing out of Chrome. I came back in and relaunched the playground and tried again. I copy/pasted the code, saved, then reloaded/refreshed the page. I then hit "submit" to check the challenge and it worked!

It finally worked after creating a new playground and switching browsers.


このエラーコードも同じらしい
We can't create a contact by itself (without an associated account). Make sure the validation rule applies ONLY when the contact has an associated account.

上記コードの続報。やはり前のチャレンジの設定が邪魔してたみたい。

You were right, fields created in Contacts for other trailhead activities were holding me back. Deleted them all and I got my badge!
あなたは正しかった、他のトレイルヘッド活動のために連絡先に作成されたフィールドは私を妨げていた。それらをすべて削除して、バッジを取得しました。

I think the settings for the previous challenge remain. Please deactivate.
If you don't know the old settings, I recommend using the new playground.

上記回答をしたけど、よくわからないですね。

New playground helped and also I had to do Account.Id not AccountId. I was not selecting the account Id associated with the contact when inserting the field.

英語でないとエラーになる?

キャッシュの問題?

image.png

Since it has been changed so many times, the cache may be a problem.

Please try logging out and logging in again.
If the problem still persists, try the following

Try your browser's incognito mode.Or try it in a different browser.

コンタクトオブジェクトに設定していないことにも注意する必要あり

Make sure you set it on the Contact object.
I think you have it set on the account object.

Whoops, looks like there was a problem. Please try again

これが正解っぽい

I solved my problem. there s two same name valiation rules each account and contracts so I deleted one rule, and i got my badge

問題を解決しました。アカウントと契約ごとに 2 つの同じ名前の検証ルールがあるため、1 つのルールを削除してバッジを取得しました

The duplicate named rule I created in error on the wrong object was throwing it off

間違ったオブジェクトに対して誤って作成した重複した名前付きルールが原因で失敗していました

ルール名が違っていたようです。 MailingPostalCode does not match the associated Account ShippingPostalCode

Go to Object Manager > select CONTACT > Validation Rules > create New

Rule Name: Contact_must_be_in_Account_ZIP_Code

Create Validation Rules : Challenge not yet complete Error

何の課題だったか?

SFのお姉さんの回答。 う~ん、本当にこれかなぁ?

1. Login in to Trailhead 
2. Click on your profile image 
3. Click on "Hands-on Orgs" 
4. Remove the Trailhead playgrounds by clicking on the "Disconnect" button beside the playground name for which you are seeing this issue. 
5. Once you do step 4 please click on the "Connect a org" button 
6. Enter username and new password 
7. Click on "Allow" 
8. Click on "Yes! save it"   Here's an article that'll help you in finding your credentials: 

https://trailhead.salesforce.com/help?article=Find-the-username-and-password-for-your-Trailhead-Playground

Please try to verify the challenge, once you reconnect back the org to your Trailhead.

ISPICKVAL( StageName ,"Closed Lost") && ISBLANK(Close_Reason__c) という別のチャレンジ

基本的にはフィールドタイプを間違えている。
しかし、言語設定が英語でなかった例もある。

image.png

No puedo superar el reto CREAR REGLAS DE VALIDACION

I think the Close_Reason__c field is a multi-select picklist.
Check the field type.

image.png

Couldn't Load Plugin 何のことかはさっぱり分からん

image.png

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?