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

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

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

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


# We couldn’t find 'Sales Engineer' in a team role.

+ [I'm having issues with the Set Account Teams Unit. They say "We couldn’t find 'Sales Engineer' in a team role."](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000JgGF2)

:::note
 i have already solved it. It was another issue with the API name. Thank you for the help.
:::

#  PMD Command Failed! Enable "Show StdErr" setting for more info.

+ [Static Analysis Failed. Error Details: PMD Command Failed! Enable "Show StdErr" setting for more info.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgHfI)

:::note
This happened to me as well (Mac). I basically went and installed the latest version of Java here at https://www.java.com/en/. 

Download it-> hit save on your AccountController.cls once again -> issue went away for me. If this doesn't work, quit your VSCode and open once more and try the repeat the steps for the AccountController.cls after Java is downloaded. 

The latest Java version will help with several of the Apps you installed with the Salesforce Extension Pack as well. 

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



# The 'updateOlderAccounts' method did not update account records as expected

+ [Quick start to apex](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Jg7to)

:::note

```
public class OlderAccountsUtility {
	public static void updateOlderAccounts() {
		// Get the 5 oldest accounts
		Account[] oldAccounts = [SELECT Id, Description FROM Account ORDER BY CreatedDate ASC LIMIT 5];
		// loop through them and update the Description field
		for (Account acct : oldAccounts) {
			acct.Description = 'Heritage Account';
	   }
	   // save the change you made
	   update oldAccounts;
	}
}
```

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

# Make sure the 'bearLocation' and 'bearSupervisor' Lightning web components have been added to the Bear record page

+ [Impossible to finish "Build a Bear-Tracking App with LWC/Work with a Single Record" step](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgKAy)

:::note
It was the name, as I didn't have the org in english it didn't has de name you said. So I changed to 'Bear_Record_Page' as you suggested and it worked.

Pd.: the other error it was because of the Currency Locale parameter in Custom Stteings->Company Information had 'null', so changing to english also solved it.

私は英語の組織を持っていなかったので、あなたが言った名前はありませんでした。それで、あなたが提案したように「Bear_Record_Page」に変更しましたが、うまくいきました。

Pd .: Custom Steings->Company Information の Currency Locale パラメータが原因で発生した他のエラーは「null」だったので、英語に変更すると解決しました。
:::



# Error: Compile Error: Found punctuation symbol or operator '`' that isn't valid in Apex. at line 42 column 1

+ [Unable to create VisionController Apex class. Got an error as shown below](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgJDN)

:::note
Please check

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


# Your user profile isn't authorized. To enable optimization, login as the optimization user.

+ [I am trying to create and login as a FSL optimization user. I am getting "Your user profile isn't authorized. To enable optimization, login as the optimization user."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgIKcSAN)

:::note
How you reset the password for the Optimiziation User as per the steps here;

Click Edit next to Field Service Optimization user.
Select Active.
Scroll down to select Generate new password and notify user immediately.
Verify that the email is yours and click Save.
:::

# Can't find "Clone or download" on Github

+ [Quick Start: Einstein Image Classification](https://developer.salesforce.com/forums/?id=9060G000000MUcYQAW)
+ [Can't find "Clone or download" on Github](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgKQsSAN)

:::note
Here are the steps to find the "Clone or download" button on a GitHub repository:

1. Go to the repository page on GitHub (in this case, https://github.com/salesforceidentity/jwt).
2. Look for a green button that says "Code" on the right-hand side of the page, just above the list of files and directories in the repository.
3. Click the "Code" button to reveal a dropdown menu.
4. In the dropdown menu, you should see a "Download ZIP" option and an "Open with GitHub Desktop" option.
5. To clone the repository to your local machine, click the "Download ZIP" option to download a zip file containing all of the repository's files.
6. To clone the repository using Git, click the "Open with GitHub Desktop" option to open the repository in the GitHub Desktop app.

Note that you will need to have Git installed on your local machine in order to clone the repository using Git. You can download Git from the official Git website at https://git-scm.com/downloads.
:::

# I cannot find the Schedule Reports system permission - it is not there in my org! 

+ [Platform App Builder winter maintenance '23 - I cannot complete the challenge - Schedule Reports permission not in my org](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000Jg5Kk)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/5c4d75b0-9c08-4390-64a7-f353af2a9bf8.png)


:::note
When you are creating the Report Permissions permission set , make sure you choose "Salesforce" license. "Schedule Reports" permission will appear only when you use this license not with "Salesforce Platform" license.
:::

# unable to add the user story and bug

+ [Creating an Epic and Adding a List View In this challenge, you'll create an epic and a new list view. You'll be building on your work from the Unit 1 challenge. Create an Epic called "The Neverending Journey" for the team named "Sample." Add the previousl](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000O8mcc)

1 challenge.

+ Create an Epic called "The Neverending Journey" for the team named "Sample." Add the previously created User Story "Learning GUS" and Bug "Add Profile Picture to Org62 and GUS" to the epic.
+ Create a List View named "My New Work" in the Work tab that displays all work with the Product Tag "Sample Product Tag" assigned to you with the Status of "New".

:::note
Please check this article.

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

# 2GP error "Could not infer a metadata type Version create"

+ [2GP error "Could not infer a metadata type Version create"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgDHG)

:::note
In my case, I have -meta.xml and app file. 
I have to delete .app file. 
only have to remain -meta.xml.

私の場合、 -meta.xml と app ファイルがあります。 
.app ファイルを削除する必要があります。 
-meta.xml のままでよいだけです。
:::

# Make sure the 'bearLocation' and 'bearSupervisor' Lightning web components have been added to the Bear record page

+ [Impossible to finish "Build a Bear-Tracking App with LWC/Work with a Single Record" step](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgKAy)

:::note
You need to activate the updated page as App Default using Click Assign to Apps and assign it to Ursus Park.

If the problem still persists then you might have created a duplicate lightning record page definition. 

Go to Setup -> Object Manager -> Bear -> Lightning Record Page -> you will probably see two "Bear Record Page" -> Edit and make sure that both of them have the Lightning Web Components added.

Alternatively, when you go to Bear Record -> Setup -> Edit Page, you will see the page label and developer name. The validation process is looking for the developer name of "Bear_Record_Page". Make sure the component is added to this page.

https://developer.salesforce.com/forums/?id=9062I000000IFpXQAW
:::

# org.apache.commons.httpclient.RedirectException: Maximum redirects (100) exceeded

+ [Error msg " org.apache.commons.httpclient.RedirectException: Maximum redirects (100) exceeded"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgAJ6)

:::note
Here is the solution I found after lots of investigation. The issue (org.apache.commons.httpclient.RedirectException: Maximum redirects (100) exceeded) was only happening when I was trying to generate a pdf out of a Visualforce page NOT in our managed package. The way we were building the URL used to instantiate the PageReference was apparently wrong.

https://salesforce.stackexchange.com/questions/175386/asynchronous-getcontent-hit-org-apache-commons-httpclient-redirectexception-max
:::

# Energy Audit object is GONE?? When recreating it, I can't find the Burlington Textiles Corp of America account

+ [Energy Audit object is GONE?? When recreating it, I can't find the Burlington Textiles Corp of America account](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgSSgSAN)

接続しているプレイグランドが違っていたようです。

# Error element goToCase (FlowActionCall). Failed to initialize a component [No owner specified for component markup://c:RedirectTo {63420:0} {c:RedirectTo}]

+ [Flow error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgS7ASAV)

:::note
It looks like a known issue,see if this link helps.

Flow Navigation via Aura Component throws Gack: No owner specified for component markup
https://issues.salesforce.com/issue/a028c00000sc7iaAAA/flow-navigation-via-aura-component-throws-gack-no-owner-specified-for-component-markup
:::

 


# "In the email body, at-mention the matching account's owner using the Look_for_Matching_Account record variable.

+ ["In the email body, at-mention the matching account's owner using the Look_for_Matching_Account record variable.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000O9JzY)

:::note
I had the same issue. This page helped me solve it:
https://salesforce.stackexchange.com/questions/396558/mention-username-in-chatter-message
:::



#  The API name you entered is already in use. Enter a unique API name.The label you entered is in use. Enter a unique label.

+ [Permissions set group](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000LIajv)

:::note
in my case I needed to create a new playground.
:::



# We couldn't find the 'Flow Action' (API: 'Flow_Action') action in the Account Layout.

+ [Completing Challenge - Screen Flow Distribution](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000O9dTySAJ)

:::note
Managed to pass only after starting a new playground and restarting the module from step 1. 

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

https://trailhead.salesforce.com/trailblazer-community/users/0054S000001IkIRQA0/feed?tab=feed
:::

# Could not find the required Chatter post when inserting a Communications record with Number__c set to 3.

+ [プロジェクト：火星との通信アップリンクの構築のプロセスの自動化について](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000O9Mz0SAF)

:::note
日本語の表記には最初の"T"が記載されていないみたいでした。

英語版：
https://trailhead.salesforce.com/content/learn/projects/trailhead_on_mars/trailhead_on_mars_step_3?locale=en
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/897709e0-fd75-da9a-abd0-414b3fde00a7.png)

日本語版
https://trailhead.salesforce.com/content/learn/projects/trailhead_on_mars/trailhead_on_mars_step_3?locale=ja
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c7b0a731-99f8-0932-d8bc-483c17a78205.png)
:::

#  filtering for Price/Quote or Negotiate/Review がない

+ [Filtering a list challenge](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgEp0)

:::note
Please check this article.

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


# Autolaunched and Scheduled Flows 

+ [Challenge to Autolaunched and Scheduled Flows](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgUuT)

We can't launch this flow because of a variable error. Send this error message to your admin. The value 2010. 2. 26. is being provided for variable campStartDate but isn't compatible with the variable's data type (Date). Check the places where you implemented the flow ‒ such as through a Lightning page or a custom button ‒ and make sure that all provided values are compatible with the variables' data types.

:::note
A Salesforce Flow is designed to accept a Date in the following format;

```
YYYY-MM-DD
```

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

In your case and mine as the system is trying to pass a value that is not in this format the process is failing to pass the parameter into the flow.

I created this formula that forces the format in the prescribed way;

```
TEXT (YEAR(StartDate)) & "-" & TEXT (MONTH(StartDate)) & "-" & TEXT(DAY(StartDate))
```

However this formula will not work if the date or month value is one digit. The formula could be adjusted to support this but I'm afraid I've run out of time for now.

If you then adjust your custom button with the new formula field instead of the StartDate then this should work as expected.

As I see this as a 'Technical Issue' with a Trailhead Challenge I've raised this as a issue to the Trailhead Help Team via a case and invite you to do the same if you wish.

Hopefully this will be fixed or adjusted in the near future. 

Despite this issue it is possible to pass the Trailhead Validation with a solution that doesn't actually work as expected.
:::

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

+ [I’m still getting this error: We couldn't find the multi-select picklist on the Opportunity object.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgV8z)

:::note
 I just found out that was my browser. I was using the safari and kept going to the salesforce classic, once i move to Chrome i could stay at the Lightning experience
:::

# No sharing rules are found that share High Priority Projects with Training Coordinator.

+ [Define Sharing Rules: No sharing rules are found that share High Priority Projects with Training Coordinator.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgVv0)

:::note
Could you please make sure that you are completing both the "Data Modeling" module and "Data Security" module in the same playground? We request you to redo both the modules in the brand new Trailhead playground and then check the challenge. 
:::

# Message: "Payment required. No active subscription found."Context: ADDR

+ [Help with this error, anyone know what this is?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000OqIdF)

:::note
Basically, you have the Smarty Streets app (from AppExchange) configured on your system but you haven't paid them for a license.  You'll need to look into Smarty's pricing and configuration requirements
https://www.smarty.com/pricing
:::

# We can’t find a custom field labeled 'Possible Matching Account'. Make sure you save the field with 'Possible_Matching_Account' as the Field Name.

+ [Data and Actions in Flows Badge Challenge issue](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgXDVSA3)

:::note
カスタムオブジェクトを作っていたらしい

Please check this video.

https://m.youtube.com/watch?v=G-idLQPcrFk
:::

+ [Flow: Combinar variables y datos](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KIYAC)


:::note
Efectivamente tenia el error en el trabajo previo de creación del campo personalizado en Lead.

リードの個人情報を作成する前にエラーを確認する効果があります。
:::

I had the same error message when I did nothing and pressed the button.
Could you please make sure that you are checking challenge against correct Playground.

The error message changed when I created only the field Possible Matching Account and pressed the confirm button.
 We can’t find the 'Check New Lead for Matching Account' flow. Make sure you saved the flow with 'Check_New_Lead_for_Matching_Account' as the API Name. 

# The folder named Adoption Reports couldn't be created.

+ [Adoption Reports folder cannot be created in Create reports and dashboards for sales and marketing managers](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Oqj9iSAB)

:::note
 I've created a new playground which seems to have worked.
:::



# Set Up Salesforce Flow for Service - Stuck

+ [Set Up Salesforce Flow for Service - Stuck](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000O6d8i)

パッケージがインストールされていない

# ChatGPT

+ [Is it possible to use it in Japan and with CRM Developer Edition?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgUsS)

:::note
It worked. The problem was the API key issuing system. It seems that some API keys issued are usable and some are not. I hope this will be helpful to someone.
:::

+ [Use cases for Salesforce & ChatGPT Integration](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Jgcug)

# We can’t find the flow ‘Enrollment Bonus for New LevelUp Members’ with all the elements.

+ [We can’t find the flow ‘Enrollment Bonus for New LevelUp Members’ with all the elements.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgZyrSAF)
+ [【未解決】Got the "We can’t find the flow ‘Enrollment Bonus for New LevelUp Members’ with all the elements" error even though my flow runs perfectly fine](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000H0W71SAF)

:::note
So, it won't be necessary, i have followed your tip, changed the name and it worked well!
:::

# We couldn't find all of the navigation items. Make sure you've created a navigation item and page for the following: About Me, Experience, Education.

+ [Desafio finalizado mas não valida](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgdkN)

:::note
Please check this article. 

https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000A8hvBSAR
https://www.youtube.com/watch?v=daUUnyd4oWc 
:::

# Be sure to enable multiple currencies.

+ [Step not yet complete in My Trailhead Playground 1 Be sure to enable multiple currencies.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JgcjJ)

トライアル版を使っていたみたい。プレイグランドを作成したらOK


# We couldn't find a report named Users Not Logged in Last 7 days in the Adoption Folder.

+ [I keep getting an error message that states " We couldn't find a report named Users Not Logged in Last 7 days in the Adoption Folder."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Jgdhi)

:::note
I ran into the same exact issue and was going to post it here in the Trailblazer Community. I followed the project instructions verbatim and still kept getting the same error. I even opened up a new Trailhead Playground to see if that would help; it did not. The only way I could run the report without the error was to have two Last Login Filters. The first Last Login filter I set to 'All Time' which the system automatically changed to 'On.' The second filter for Last Login, I used the relative date of LAST 7 DAYS. That was the only way the system would acknowledge the report as being "correct."

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

はまったく同じ問題に遭遇し、Trailblazer Community に投稿しようとしていました。私はプロジェクトの指示に逐語的に従いましたが、それでも同じエラーが発生し続けました。新しい Trailhead Playground を開いて、それが役立つかどうかを確認しました。それはしませんでした。エラーなしでレポートを実行できる唯一の方法は、2 つの最終ログイン フィルターを使用することでした。システムが自動的に「オン」に変更した「常時」に設定した最初の最終ログイン フィルタ。 Last Login の 2 番目のフィルターでは、LAST 7 DAYS の相対日付を使用しました。それが、システムがレポートを「正しい」と認識する唯一の方法でした。
:::

# complete in Mindful Unicorn Playground Can't find a new Product Support case for Pyramid Construction.

+ [Create an escalation rule. I am receiving this message Step not yet complete in Mindful Unicorn Playground Can't find a new Product Support case for Pyramid Construction.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Jgfoo)

:::note
In my case "Type" field doesn't have a value "problem" I  have added it from case "record types" and it worked.
Try to fill all value provided in the module it will work. 
The "Type" field was not on my page layout. I put it in and selected "Problem" and it finally worked. 

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


+ [Hi All , I have tried to compelete this challange "Run an Autolaunched Flow from a Custom Button" and I have got this message.would you please help](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Pemb7)


# When I add change the owner of Edge Communications to 'Maya' I get an error saying that the user does not have 'read' access. 

+ [Set Up Account Roles and the Role Hierarchy - Trailhead](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Os33X)

:::note
You will need to deactivate a Salesforce license and then update the Maya Pasqua user to have a Salesforce License type. To do this go to Setup --> Users and identify the user that isn't the one you are using that has a salesforce license associated and is marked Active then click edit and uncheck active.

Ensure that the role of Maya Pasqua is Channel Sales team.

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