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

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

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

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

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


# We can't find a try-catch assertion in the method “CalculatorTests” from the “AccountWrapperTests” class.

+ [Write Negative Tests](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007JAtHB)

:::note
You should use the system.assertEquals assertion then you will complete the challenge.

I was having the same issue while using Assert.isEqual to compare the messages or the nameType of the exception, you have to use Assert.isTrue and then compare the values, then it's detected as correct. 
:::

+ [Write Negative Tests](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007JAtHB)

# We couldn't find the multi-select picklist on the Opportunity object ...?

+ [y entro a Oportunidades y veo la piclist..no se que me estaría faltando...](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007EaeYF)

:::note
Please check this article.

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

# Graph Engine reached the path expansion upper limit (809). The analysis preemptively stopped running on this path to prevent an OutOfMemory error. Rerun Graph Engine and target this entry method with a larger heap space.

+ [getting (Graph Engine reached the path expansion upper limit) this type of violations through code analyzer](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KXiwV)

# Ensure that you have selected the correct template 

+ [Step not yet complete in Cunning Unicorn Playground Ensure that you have selected the correct template.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KI0wQSAT)

:::note
I created new Playground and it worked
:::

# 'EUR 19.99' is not valid for the type xsd:double

+ [Error on currency field when trying to upload](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007FUE0d)

:::note
you can check pricebook object in your salesforce org.you may have assigned any other pricebook there and you are mentioning another pricebook id in your code.

https://www.forcetalks.com/salesforce-topic/getting-error-of-field_integrity_exception-while-executing-batch-class-in-salesforce/
:::

# We can't find the Care Program object. Make sure you select the right org from the Hands-on Challenge picklist.

+ [Health Cloud Care Program: "We can't find the Care Program object"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007MYIIF)

:::note
I was checking the challenge against the right org, thanks!
:::


# We could not find Apex class named 'AccountController'.

+ [Use Visual Studio Code for Salesforce Development](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Lqr6L)

:::note
 I did verify my correct playground where my scratch org connected to it, I did pass my last step successfully.
:::

# On the More Detaols,we can't find a component named 'Description'.

+ [Error Message in the "Convert a Lightning Page to Dynamic Forms" Trailhead Module. 'Description'."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007MXiri)

:::note
 I have reviewed the issue in your org and see that there are multiple record pages on the Opportunity object with the label "Opportunity Record Page" and with the different API names.


![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/fbf286bb-88df-de75-92b4-630a7487e4cb.png)

And the record page you have assigned as org default has API name as "Opportunity_Record_Page2" because of this the error thrown while checking the challenge.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/0b880d02-63bd-a116-2076-4b95f3d0873d.png)

I request you to please create a new playground org and complete this challenge requirement in a new playground org again. Hopefully it works in a new playground org.


組織の問題を確認したところ、Opportunity オブジェクトに「Opportunity Record Page」というラベルと異なる API 名を持つ複数のレコード ページがあることがわかりました。

また、組織のデフォルトとして割り当てたレコード ページの API 名は「Opportunity_Record_Page2」です。これは、チャレンジのチェック中にエラーがスローされたためです。

新しい Playground 組織を作成し、新しい Playground 組織でこのチャレンジ要件を再度完了してください。新しい Playground 組織で機能することを願っています。
:::


# PersonMailingPostalCode, PersonMailingState

+ [Hi, are PersonMailingPostalCode, PersonMailingState and PersonMailingCountry valid fields for PersonAccount? These fields are not mentioned in the documentation](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8ue0)

:::note
Happy to confirm that although these fields are still not referenced in the documentation, they do exist and I was able to import into them (for the benefit of anyone finding this thread in future). 
:::

# We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error. Ask your administrator for help

+ [Getting an error when I'm creating case form the chat transcript detail page.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007MaAhTSAV)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/cebf8a7a-a750-7f3f-e9c3-343e5e5bdd55.png)


# We tried to create an opportunity with tomorrow as the CloseDate, but we couldn’t. Make sure the validation rule fires only when the CloseDate is in the past.

+ [Error from Trailhead challenge: Use Basic Logic in Checkbox Formulas](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007IcXOu)

:::note
Figured it out. Error was resolved by deleting the discount field.
Credit : https://trailblazers.salesforce.com/profileView?u=0054S000001UDnCQAW

I ended up creating a brand new Trailhead environment, copied the Validation rule and it cleared.
:::


# To add this user to the team, first ask the account's owner to share the account with the user.

+ [Error when user Data Loads Account Teams](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KZdet)

:::note
Turns out it was that their Role had this setting: Users in this role cannot access cases that they do not own that are associated with accounts that they do own

The user was trying to Data Load Account Teams with CaseAccessLevel = Read

The solution was to change CaseAccessLevel = None and they were able to successfully data load 
:::

# [NoErrorObjectAvailable] Script error.

+ [[NoErrorObjectAvailable] Script error.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007NANVN)

:::note
As of my experience, the most common reason why [NoErrorObjectAvailable] Script error appears is when because a custom event is handled by a ghost method, meaning a method that does not exist on the JS controller. 

https://salesforce.stackexchange.com/questions/343576/noerrorobjectavailable-script-error
:::


# DataflowInstance 03C2G0000021PSzUAM cancelled. Something went wrong while executing the Sync_Account node: Fields [PersonFirstEmailDateTime, PersonFirstCallDateTime] are not available. Verify that the fields exists and that the Analytics Cloud Integration User profile has Read level access on the fields.

+ [Can't deselect two fields on the Account object connection](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LpffW)

:::note
1. Remove these fields from loading in to any recipe and dataflow
2. In the Account object, uncheck all fields. When I did this, the Save button was no longer grayed out
3. I rechecked the fields I needed, excluding those 2
:::


# Executing the generateStringArray method failed. Either the method does not exist, is not static, or does not hum the proper number of strings.

+ [
I'm facing a problem in get started with Apex module challenge 1](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LW9yD)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/7b3ea0f2-c99d-c9e5-3a0a-258a8d262f26.png)

:::note
I ended up getting passed this by just hitting the complete quiz button over and over again until the test passed, eventually you will get an execution where the expection (10 items) matches the integer passed into the method (always 10). 
:::



# We couldn't find the contact records from the CSV file. Make sure you import the CSV file correctly. Looks like 20 records failed to load for some reason.

+ [We couldn't find the contact records from the CSV file. Make sure you import the CSV file correctly.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007O37GR)

:::note alert
FIELD_CUSTOM_VALIDATION_EXCEPTION:You can't create an account or contact using an Individual record type because your org has enabled Person accounts. Create the account or contact using a different record type instead.:-
:::

:::note
Please check this article. 

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

# Admin Beginner > Salesforce Platform Basics > Get Started with the Salesforce Platform

+ [パッケージは使わない](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007NCdMb)


# We can’t find the Record Page target in the parent component’s metadata file. Please complete the prework.

+ [JavaScript Developer I Certification Maintenance (Summer '23) Get Hands-on with Conditional Directives and Refs](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007FWdgn)

:::note
Have you checked this?

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

+ [Unable to complete Conditional Directives and Refs hands-on](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54V00007eqLiQSAU)

:::note
Refer to this:

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

# We couldn’t find the State/Province field in the report.

+ [Issues with the Reports & Dashboards for Lightning Experience ?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007OWYxr)
+ [I am doing hands on hallange on "create a report to show leads" . I was getting an issue on sate/province field. While i was executing my task it was showing like We couldn’t find the State/Province field in the report. Then what do?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007QcqGa)

:::note
Please make sure you Add the State/Province and Lead Source Fields

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/5cd033b1-0830-3903-fdc1-76edac3ca0e0.png)

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

Make sure you saved the report
It may have changed so many times that an old state remains in the cache.

Please try logging out and logging in again to verify.
:::