2023年9月の質問の中から整理します

[まとめページに戻る](https://qiita.com/Keiji_otsubo/items/60afc2a8d211b6f7d89f)

先月は回答しても無反応が多かったなぁ。ここのところ質問自体が少ないってことは、今までみたいに新規のユーザが増えてないんだろうなぁ。そろそろ頭打ちかもしれん。

**参照して頂くのは結構ですが、そのまま内容を丸ごとコピーするような行為は控えて欲しいです。一応時間を掛けて作っているので、その点はご考慮願いたいです。**

[2023年09月未解決の質問](https://qiita.com/Keiji_otsubo/items/adefbd5a3538016b5e2e)
[2023年09月何故かベストアンサーをつけてくれない質問](https://qiita.com/Keiji_otsubo/items/9f590ce8c64dadd9d1ff)

# Rating field on the Account object: no access

+ [Rating field on the Account object: no access](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000BspBN)

:::note
 I’m not sure of this challenge specifically, but in case you’re not sure how to dig into field-level security, you can get there via:

Setup>Profiles>Sales profile (as Karan said)…

 

**Then, once you’re there—at the Profile Detail—scroll down to the section called Field-Level Security.

**Next click View next to Account.

(You will see all your FLS for all fields on the Account object)

**Click Edit and then uncheck access as outlined in the challenge next to the Rating field.

**Save your changes.

**Resubmit the challenge.

**Wait for all the confetti to fall before moving on to the next challenge :) 
:::

# The `Half Dome` record was not found!

+ [Step not yet complete in my trailhead playground1 The `Half Dome` record was not found!](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007GGkqu)

:::note
I also got same issue and with debugging found that Object name was wrong as we keep on working with the previous challenge.

Setup >> Create >> Objects >> Click "Trailhead" >> Edit button >> Change the object name from "Trailblazer" to Waypoint  

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/cbcf3601-ff2a-ca9f-f5ac-507615ae341d.png)

https://developer.salesforce.com/forums/?id=906F0000000g3IlIAI
:::

# Connected Assets "Error This feature is not currently enabled for this user."

+ [Connected Assets "Error This feature is not currently enabled for this user."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007HLXVt)

:::note
Data Sync is enabled by default if you turned on CRM Analytics after the Winter ’20 release. However, It's worth checking if "Enable Data sync and Connections" checkbox is enabled in Analytics setting in setup. 

<<https://help.salesforce.com/s/articleView?id=sf.bi_integrate_enable_replication.htm&type=5>>
:::

# UTAM setup

+ [UTAM setup](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000079RjkL)

:::note alert
ERROR webdriver: Request failed with status 500 due to session not created: 
session not created: This version of ChromeDriver only supports Chrome version 109
Unable to create a session.
:::

:::note
I think that the error is caused by the version of the Chrome browser and the Chrome driver not matching.

Do below steps :

1. Check the version of chrome browser.
2. download chromedriver of same version from https://sites.google.com/chromium.org/driver/home
3. Give correct path in the pycharm and run the code.

https://stackoverflow.com/questions/60296873/sessionnotcreatedexception-message-session-not-created-this-version-of-chrome
:::



# We can’t find the ‘handleAugmentorChange(event)’ function fixed in display.js. Make sure you use the same code that you tested in the Console. 

+ [Monitor JavaScript Execution](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Gfepo)

:::note
Trailhead can be tricky if you are working with multiple orgs because one can get easily confused about which is which. Please make sure that you are connected to the right org.  The second point is to check your javascript syntax. Make sure that the syntax is 100% correct as JS can be quite sensitive. You can use one of many JS validators available online to check and validate your code. 

複数の組織で作業している場合、どれがどれなのか混乱しやすいため、Trailhead は扱いにくい場合があります。正しい組織に接続していることを確認してください。 2 番目のポイントは、JavaScript の構文を確認することです。 JS は非常に機密性が高いため、構文が 100% 正しいことを確認してください。オンラインで入手できる多くの JS バリデーターの 1 つを使用して、コードをチェックおよび検証できます。
:::

+ [Monitor Javascript Execution](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000ITCME)

:::note
In  my case I was missing the ';' at the end of the line:

```
this.augmentor = parseInt(event.target.value);
```

In the dev console it works fine without and the trailhead doesnt mention the ';' at the end of the line but, despite the app correctly working the trailhead module wouldnt complete and I kept getting the error message. Once I added the ';' to the end of the line I was able to complete the SF trailhead module successfully then.

私の場合、「;」が欠落していました。行の最後に:

```
this.augmentor = parseInt(event.target.value);
```

開発コンソールでは、これなしでも正常に動作し、Trailhead では「;」について言及していません。しかし、アプリが正しく動作しているにもかかわらず、Trailhead モジュールが完了せず、エラー メッセージが表示され続けました。「;」を追加したら 行の最後まで、私は SF トレイルヘッド モジュールを無事に完了することができました。
:::

# Community Site "An unexpected connection error occurred." "This error originated from Salesforce CDN partner."

+ [Community Site "An unexpected connection error occurred." "This error originated from Salesforce CDN partner."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007I56F2)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/7f83caf8-1371-3704-f81d-b2b65c0211ab.png)


:::note
For what it's worth, I resolved this and it was not a CDN issue.

The "An unexpected connection error occurred" error didn't appear in debug logs - which made sorting it out more difficult.

The underlying problem was that VisualForce page with the problems was attempting to display links that would allow a user to follow someone else in Chatter, only all the users they were suggested to follow were not Active.
:::

# We couldn't find 'Support_Home_Page'. Ensure that you have entered the correct data to create the home page.

+ [Customize the Home page error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007IeOaH)

:::note
The directions in this trail only said change the Label name. I didn't realize the API name needed to be changed from  Lightning_App to Support_Home_Page
:::

# 解決したらしいけど、内容は不明

+ [Platform Developer I Certification Maintenance Module Issue (Winter '23)](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Ieszz)

:::note
I manage to solve it as follows :-

a. In the Name credential = I follow the instruction select the "Bank"

b. In the Service Schema Relative URL = just type in /accounts/schema and it works. Anyway, tks for your help. 

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

# Receiving an error 'Unable to Access Page The value of a parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. 

+ [Receiving an error 'Unable to Access Page The value of a parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the err'](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007IeW7l)

:::note
restarting the browser did the trick 

https://developer.salesforce.com/forums/?id=9060G0000005WG7QAM
:::


# RandomContactFactory 

+ [Not a question but learning !! Apex Test Data Factory](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Jjxax)


# Could not find a properly routed case

+ [I have everything set up the right way, I completed the earlier units and I'm still getting an error message, "Could not find a properly routed case](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007HM5jg)

:::note
Could you please check if you've skill-based routing enabled in your omni-channel settings? If yes, please disable it and then verify your challenge.

Your omni-channel settings should look something like this, 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/60704faa-e0fe-9de2-dfab-d8f3e6c25f41.png)

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

 
# The @TestSetup method of 'MyDataGenerationTests' class does not load the CSV data correctly.

+ [I don't understand fail #](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007JAKpI)

# Callout failed for invocable action GetProspectLinkedinSearchTest.GetProspect Linkedin Search Test. We couldn't access the credential(s). You might not have the required permissions, or the external credential "GetProspect_Linkedin_Search_Test" might not exist.

 + [Callout failed for invocable action](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KH8gp)

:::note
権限セットはフローを実行しているユーザーに割り当てられましたか?
:::

# Sales Channel field

+ [I don´t found the Sales Channel field to set Define Eligibility](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KGIWa)

:::note
The Sales Channel field in the Transaction Journal object is an aggregate field, which means that it calculates a value based on the values of other fields in the object. In this case, the Sales Channel field calculates the sales channel for a transaction based on the Account Type and Account Territory fields. To add the Sales Channel field to the Define Eligibility criteria for a rebate type, you need to use the Aggregate Field condition. This condition allows you to filter transactions based on the values of aggregate fields.
:::

# anypoint account with the trailhead 

+ [Error 500](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007JA9GxSAL)

:::note
It appears this is related to an open bug with this project when attempting to complete it in another language other than English. 

SOLUTION: In the footer of the page on the right side you'll see a language picklist. If you select English, you should be able to successfully connect to your Anypoint Platform instance.

これは、このプロジェクトを英語以外の言語で完了しようとしたときの未解決のバグに関連しているようです。 

解決策:ページの右側のフッターに言語選択リストが表示されます。英語を選択すると、Anypoint Platform インスタンスに正常に接続できるはずです。
:::