2024年11月の質問の中から整理します

[まとめページに戻る](https://qiita.com/Keiji_otsubo/items/60afc2a8d211b6f7d89f)
[Trailhead関係　年月で整理に戻る](https://qiita.com/Keiji_otsubo/items/84deb9c88d800102261a)

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

なるべく、回答の中身も転記しておきます。結構な割合で質問者さんが黒歴史を消したいのか質問自体を削除しますので... 最良の答えとしてもらっても即消されることは大変多いです。

10月は過去最低レベルの質問の少なさでした。また回答しても何にも返答もない。だんだんマナーも崩壊している感じがします。ベストアンサーも全く増えませんでしたね。

[2024年11月未解決の質問](https://qiita.com/Keiji_otsubo/items/b65a086b0d6f865f91c3)

------------------------

# We can’t find the 'Add Step to Collection' element immediately after the 'Set Project Step Details' element" when I try to validate the pratical challenge of "Avoid Flow limits"

+ [I cannot figure why I obtain this error message " We can’t find the 'Add Step to Collection' element immediately after the 'Set Project Step Details' element" when I try to validate the pratical challenge of "Avoid Flow limits",](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000mB5P0AU)

:::note
position for Add Step to Collection is not correct it should be after Set Project Step Details
Also make sure you saved the flow and current version of flow is activated and try to delete older version of flow  

1. From Setup, enter Flows in the Quick Find box, then select Flows.
2. Click the name of the flow. 
3. To delete an individual version, click the Del link for that version.
:::

# Error: Unexpected token :id

+ [Get Hands-on with Bind Variables Using SOQL Query](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000mK5c)

:::note
Please try with the belwo code.

```Java
public class QueryContact {
  public static Id getContactID(String lastName, String title) {
    try {
      Contact myContact = Database.query(
        'SELECT ID FROM Contact WHERE lastName = :lastName AND title = :title LIMIT 1'
      );
      return myContact.Id;
    } catch (Exception ex) {
      return null;
    }
  }
  public static Id getContactIDWithBinds(Map<String, Object> bindVars) {
    String query = 'SELECT ID FROM Contact WHERE LastName = :lastName AND Title = :title LIMIT 1';
    List<Contact> contacts = Database.queryWithBinds(query, bindVars, AccessLevel.USER_MODE);
    if (contacts != null && !contacts.isEmpty()) {
      return contacts[0].Id;
    } else {
      return null;
    }
  }
}
```

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

# We couldn't confirm Communities is enabled. Make sure Communities is enabled in Setup.

+ [Got an error while completing Create a Portfolio Site](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000OPAM)

:::note
 I Launched a new Playground and everything works perfectly
:::

# We couldn’t run the ruleset job. Try again later. If the error continues, contact Salesforce Customer Support.

+ [I am getting an error: We couldn’t run the ruleset job. Try again later. If the error continues, contact Salesforce Customer Support.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000OVm4)

:::note
I tried just ploughing ahead with the instructions despite the errors and what do you know, it made no difference and I was able to complete the unit! If I were using Data Cloud for real I guess it would have been a real issue, so I think you Salesforce folk should follow up anyway. Yes, I clicked the 'Run Ruleset' button when I didn't see the data. Please take it from here. 

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

# We can't show this data because of an error. Ask your Admissions Connect administrator for help.

+ [Application Checklists -- error message](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Dxj6q)

:::note
Found the solution -- this is a bug in Admissions connect that was fixed by applying the the 1.16 version of Admissions connect.
:::

# We can't find the Business Rules Engine org with our sample data. Make sure you select the special Developer Edition org with Business Rules Engine from the Hands-on Challenge picklist

+ [Hi Team, I am receiving the error message below when trying to submit a challenge in Trailhead. Could someone please help me resolve this issue?](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000OTnd0AG)

:::note
For this Challenge you should use Special Dev Org with Prerequired Data, which you can create following this [LINK](https://trailhead.salesforce.com/promo/orgs/business-rules-engine)

After creating Org you should Connect this ORG to your Trailhead Profile:

https://trailhead.salesforce.com/users/profiles/orgs:

1. Open Hands-On Orgs: https://trailhead.salesforce.com/users/profiles/orgs

2. Click "Connect Org"

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/43caa069-7a04-1ff9-515f-18e87e5a9465.png)

このチャレンジでは、このリンクに従って作成できる、事前必須データを備えた特別な開発組織を使用する必要があります。

Org を作成したら、この ORG を Trailhead プロファイルに接続する必要があります。

https://trailhead.salesforce.com/users/profiles/orgs :

1. オープンハンズオン組織: https://trailhead.salesforce.com/users/profiles/orgs

2. 「組織を接続」をクリックします
:::


# Error element Update (FlowScreen).

+ [Read only repeater fields](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007erzpK)


:::note alert
The flow failed to access the value for InventoryItems.selectedRows[$EachItem].00NPv000001reZp.00NPv000001rcUn because the field is not available to the running user.
:::

:::note
Hey I was getting the same field not available error just now.    In my case, it didnt like that I fed the Repeater's input source collection parameter with a Transform collection.

I assigned the Transform collection to a standard Record Collection Variable,  then pointed the Repeater source to that and no longer got the error.

Not sure if that might help you but thought id share
:::

# We couldn't confirm Communities is enabled. Make sure Communities is enabled in Setup.

+ [Got an error while completing Create a Portfolio Site](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000OPAM)

:::note
Could you please make sure that you are checking challenge against correct Playground.
:::

# test apex triggers public class RestrictContactByName {

+ [test apex triggers](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000mbe1)

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

# {"message":"An unexpected error occurred. Please include this ErrorId if you contact support: 1483921004-509561 (733720480)","errorCode":"UNKNOWN_EXCEPTION"}

+ [Need Help: An unexpected error occurred. Please include this ErrorId if you contact support: 642480039-664660 (733720480)](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000OvUf)

:::note
So the problem was because of the query parameters i reduced the query parameters and the issue was resolved. There was issue with one of the query parameter i didnt dig deeper on to which parameter was causing this issue. But if this issue occurs with you try reducing the parameters
:::

# "message":"sObject type 'SecurityHealthCheckRisks' is not supported.","errorCode":"INVALID_TYPE"

+ ["message":"sObject type 'SecurityHealthCheckRisks' is not supported.","errorCode":"INVALID_TYPE"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PfAYs)

:::note
Represents your org’s security setting values, risks, and Salesforce-recommended setting values. Only users with the "View Setup and Configuration" user permission can retrieve data from this object. Available in Tooling API version 37.0 and later.

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_securityhealthcheckrisks.htm
:::

# In the 'Look for Matching Account' element, we can’t find a filter for 'Name Equals $Record > Company'.

+ [stuck with the Combine Variables and Data Elements challenge](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000J5keo)

:::note
Not sure I can off much help - but what I did learn today is that you CANNOT copy and paste values into the "value" windows. The trailhead may say the text is $Record > Account > ID - but this cannot be pasted into the box. You have to start typing and then click through - only then does the syntax work.

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

# We can’t find an OAuth Token from your OAuth 2.0 Web Server flow. Check your external client app configuration, and try authenticating again.

+ [Cannot Verify "Implement the OAuth 2.0 Web Server Flow"](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000nJFX)

:::note
I had the same issue but was able to resolve it by creating a new playground and completing the challenges again.

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

# We can’t find the 'Variables' flow. Make sure you saved the flow with 'Variables' as the API name.

+ [Challenge not yet complete in... We can’t find the 'Variables' flow. Make sure you saved the flow with 'Variables' as the API name.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000J5iRh)

:::note
 I was able to resolve it. I reviewed it again; while saving the flow, I ensured that the correct name was used, and it went through.
:::

# We can’t find an OAuth Token from your OAuth 2.0 Web Server flow. Check your external client app configuration, and try authenticating again.

+ [Cannot Verify "Implement the OAuth 2.0 Web Server Flow"](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000nJFX)

:::note
I had the same issue but was able to resolve it by creating a new playground and completing the challenges again.

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