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

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

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

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

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


+ [Reports and Dashboards for Lightning Experience](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000079R9pN)

確認したプレイグランドが違っていたようです

+ [A lense called 'worldwide_sales_with_flags' doesn't exist.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PisL2)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c3cf1957-fa12-19e7-804f-de0b7ecaf4cd.png)

:::note
Had the same Issue, and was now able to resolve the issue.

In the Querry mode, Check that the 3rd line is as follows :

q = foreach q generate q.'Country' as 'Country', sum(q.'Value') as 'sum_Value' , first('flag_img_url') as 'flag_img_url';

As default the part which is bold, is 'A'. It wouldnt work for me like that. 

PS: Make sure the CSV is correct, and the links were changed
:::

# Error: Salesforce.com can't validate the domain. The CNAME record may still be processing (which can take up to 24 hours), or the domain may not belong to you.

+ [Custom Domain configuration](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000077Btk6)

:::note
This error means that your DNS entry in your domain server is not pointing to the correct url or it has not been setup yet. Usually if you have added the CNAME record recently, it might take some time ..upto 24 hours to propagate.

Recently I had this error for quite some time and 1 quick change on the DNS server resolved it quickly.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/f5469d2e-a81e-d8d4-080b-5e52a67c19ef.png)

https://getthekt.com/error-salesforce-com-cant-validate-the-domain/
:::

# dependent class is invalid and needs recompilation

+ [External Service created by Flow Builder gives error "dependent class is invalid and needs recompilation"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007A3Xdk)

:::note
In short, this is a bug. The HTTP success code 2xx is not translated as Code2xx in Apex causing an invalid identifier. A workaround meanwhile is to spell out the 2xx codes as 200/201/... and the Apex code should show as Code200, Code201.
:::



# Couldn't find the Partner Account Layout.

+ [Hola! Tengo un problema con el reto de crear Formatos de Paginas: https://trailhead.salesforce.com/es-MX/content/learn/projects/customize-a-salesforce-object/create-account-page-layouts Corresponde al ejercicio 2 de la semana 4, es el anteultimo](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007BIBVh)

:::note
I continued to the next unit where you create a Record Type "Partner Account".

After assigning that record type to only these three profiles "Partner App Subscription User, Partner Community Login User and Partner Community User" and applying the Partner Account Layout to all profiles in the record type as instructed I checked again the previous unit and passed.

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

# error parsing or finding aura config: window.Aura not found

+ [Hi people, I'm facing an issue in my LWC component while running it in a scratch org-local development server . (windows.aura not found)](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PfDgU)

:::note
I find a resolution for it: ["Unable to read the Aura token from the response." Error · Issue #155 · forcedotcom/lwc-dev-server-feedback · GitHub](https://github.com/forcedotcom/lwc-dev-server-feedback/issues/155) 
:::

# The element has an invalid reference to FIELD_NAME

+ [Error when installing an unmanaged package](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000077mFCd)

:::note
The workaround is update the flow in its metadata.xml format and push to the org. 

https://ideas.salesforce.com/s/idea/a0B8W00000GdcNSUAZ/clone-this-process-despite-the-element-has-an-invalid-reference-to
:::

# Error: invalid_grant, Description: authentication failure while trying to generate accesstoken

+ [Error: invalid_grant, Description: authentication failure while trying to generate accesstoken](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000077mCoa)

:::note
I don't think it works in the trial version. Try using the developer edition.

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

https://salesforce.stackexchange.com/questions/328604/api-enabling-in-trial-version
:::


# "Sorry To Interrupt" This page has an error. You might just need to refresh it. First, would you give us some details? (We're reporting this as Error ID: 1738815868)

+ [Error message when closing tabs](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007BGi7J)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/d2552fd8-b287-e625-dde7-bd421f4274bd.png)


:::note
The issue you are facing has been logged as a bug with Salesforce Product Team, and they have also created a known issue for it.

The fix for this issue is scheduled to be deployed within the first week of August. Once the fix is in place, you will no longer experience the problem.

https://issues.salesforce.com/issue/a028c00000uZKRMAA4/users-are-seeing-an-error-while-closing-a-tab-or-working-with-tabs
:::

# The report isn't grouped by the 'Status' field. 

+ [The report isn't grouped by the 'Status' field.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007CGaVu)

:::note
 I had to delete the report and start all over, then it worked out!
:::

# We can’t find a start date for Ryan at Headquarters.

+ [Can't resolve this challenge service resources](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PmRQN)

:::note
Assign Service Resources to Branch Locations

After setting up Ryan as a service resource, Matt must assign him to the service territories (branch locations) where Ryan’s expected to work. Fola informs Matt that Ryan primarily works from the headquarters but will video-meet his clients for the next 1 week from the Pittsburgh Branch. So, Matt sets up Headquarters as Ryan’s primary service territory and the Pittsburgh Branch as the secondary service territory.

1. Click to open the App Launcher, and then select Service Resources.
2. Click Ryan to open Ryan’s service resource record page.
3. Open the Related tab, and then click Assign Service Territories.
4. Select Headquarters and Pittsburgh Branch (click + next to each name), and then click Next.
5. In the Territory Type column, select Primary for Headquarters and Secondary for Pittsburgh Branch.
6. Start Date: Select the current date as the start date for both the branches.
7. End Date: For the Pittsburgh Branch, select a date that’s a week after the current date.
8. Click Save.
:::

# We can't activate your Salesforce matching rule (Trailhead Challenge)

+ [We can't activate your Salesforce matching rule (Trailhead Challenge)](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007CIzjr)

:::note
I added some additional criteria and I was able to complete the challenge.  

Although, I think that someone who manages the Trailhead Challenges should update the challenge specifications to accommodate the new matching rules. 
:::

# First sale Date

+ [I can't complete the challenge in Customize Sales Cloud for Your Business](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DgGXu)

設定したオブジェクトが間違っていた。

# In the Insurance Payment V2 expression set version, we can’t find the calculation element for the third branch path

+ [Advanced Rules with Business Rules Engines >> Add a Branch and Test Expression Set](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DsTBx)

:::note
There is clearly an issue, but I not sure it is with the badge validation logic, it may be with the Expression Set Builder.

I registered a second DevEd Org and only tried that challenge steps, but it failed.

Here is how I made it work, on my 1st and 2nd DevEd Org, so it should work for you:

- in setup, company information, check if your currency is USD. My org was set to EUR. FinalPremium is a currency variable.

- deleted the Path 3 (see ... action menu), and Default Path Calculation element, saved the Expression Set

- added Path 3, added condition element under Path 3, saved the Expression Set

- checked Challenge, got error message

- added Calculation element under Path 3, saved the Expression Set

- checked Challenge, got error message

- added Calculation element under Default Path, saved the Expression Set

- checked Challenge, passed 

 

If you look in the resource manager, you have Local Variables linked to the output of the condition elements. As I deleted and created multiple condition elements, I ended up having many variable like condition_output__6. But when I deleted the Path, it reset the counter, and when adding the condition element, the variable has been named as condition_output__3.
:::

# skill based : An error occurred. Try again, or contact Salesforce Customer Support and provide this error ID: 821114710-43018 (1118115656)

+ [Error when routing using omni flow - skill based : An error occurred. Try again, or contact Salesforce Customer Support and provide this error ID: 821114710-43018 (1118115656)
](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000OrwxV)

:::note
it's been a little moment since you posted but the solution to this is to add your skillrequirements collection to the aggregated skills requirement section.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/30266c9f-3584-1f01-e384-2bd59292f760.png)

https://salesforce.stackexchange.com/questions/378904/omni-flow-not-storing-skill-requirements-collection-variable
:::

# sfdo__grants.ReviewTrigger: execution of BeforeUpdate caused by: System.NoAccessException: No access to entity (System Code).

+ [Grant Reviewer profile can't submit a review record--No access to entity error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007A2dt9)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/3573a7c5-fb11-16ac-d2da-dc395ba57af8.png)

:::note
I had removed the permission set for workspaces from the user since I was not using that feature. However, there is an Apex class in that PermSet that is still needed for the user to submit the review. To solve, I added the Apex classes from the workspace PermSet to an existing PermSet that was assigned to the user. 
:::

# We can't find a report named 'Case Status'. Make sure the report was created according to the requirements.

+ [What am I doing wrong with the Format Reports project under Reports & Dashboards for Lightning Experience??](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007EbIK3SAN)

:::note
Your Report Should look like this
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/4e9046cb-f0b3-b63a-d37a-2ab71e6fe4bd.png)

Filters
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/d30d86ef-c11e-2917-0dc1-5790357bd895.png)
:::


# We can't find the picklist value 'Product' in the type field on Case.

+ [Create Support Processes-Why am I getting this error?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DvpHA)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/58226f70-ced9-65d3-5ca6-e151f6460009.png)

# In the 'Send Survey Invitations to Sales Reps' action, we can’t find the survey selected as 'customer_saisfaction'.

+ [Error on Automate Your Survey Invitations](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007EYmrx)

:::note
Please check this article.

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

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

# We submitted an opportunity that we expected to represent 8% of the individual quarterly target, but it didn't. Check your formula in the Contribution Percentage field.

+ [Trailhead Module Challenge Advanced Formulas>Level Up Advanced Formulas](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007F4SLK)

:::note
Formula should be  ExpectedRevenue  / 100000 

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

# Unexpected token 'List'

+ [Unexpected token 'List'のエラーについて](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Ebu43)

:::note
メソッドだけで、クラスが宣言されていないように思います。
以下のように変更してみてください。

```
public class MyContactListController {

   @AuraEnabled(cacheable=true)
   public static List<Account> queryAccountsByEmployeeNumber(Integer numberOfEmployees) {
      return [
        SELECT Name
        FROM Account
        WHERE NumberOfEmployees >= :numberOfEmployees
      ];

   }
}
```

:::

# Could not find an entry for 'GenWatt Diesel 1000kW' with a price of 87,500 in the 'Northwest Diesel Generator Sales' Pricebook.

+ [Has anyone run into this message Challenge not yet complete in Trailblazer Journey Could not find an entry for 'GenWatt Diesel 1000kW' with a price of 87,500 in the 'Northwest Diesel Generator Sales' Pricebook.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007FW18G)

:::note
1. is that you are checking the verification on a different instance, log out and launch from the bottom of the module then check all steps are done there
:::

# We could not find an account named 'Blackbeards Coconut Milk Emporium' created using Postman with the Description 'The finest coconut milk in the seven seas.'

+ [Create a New Account Record with REST API Create a new record in your accounts using REST API: Name: Blackbeards Coconut Milk Emporium Description: The finest coconut milk in the seven seas.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V000079ScXa)

:::note
To solve the error, it is necessary to add the point, at the end of the sentence: "The finest coconut milk in the seven seas."

Without the trailing dot character (which is just another character like any other), the test will never complete. But adding the point at the end, (as it is in the proof), you earn the 500 points.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/d6feaa5c-b843-50f1-154a-cfaad38da637.png)

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

# 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/91a6582e-edb1-a5a6-1229-15572e0337e6.png)

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

# The help text on the Prospect Rating field is either missing or incorrect. Check that you copied it correctly.

+ [Error on My Trailhead Playground](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007GHOEX)

:::note
Try changing the playground language setting to English.

(If it doesn't work with just the playground language setting, additionally set your browser language to English and turn off automatic translation.)

 

Try the below steps to change your language:

 

Launch your playground and Click the profile image and then click the first option(settings).
It goes to the personal information page
Click on Language and time zone
Change the Language and Locale to English
So that the playground language will be changed to English
If you have not already tried, you may switch the language on the challenge to English and verify again. If this doesn't work, set up a new playground.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/2670db5a-42e4-c6c9-e173-f105605a9bcc.png)
https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgIDcSAN
:::