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

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

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

# トレイルヘッドの説明文が何か違和感がある　Character Code: %{strValue.DNT.characterCode} (the default)
変数がうまくセットされてない感じですね。一種の障害かな

+ [Issues with Import Data trail](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000BtJIU)

# ファイルがアップロードできない

PCのアドビのソフトをアップデートしたら、解決したとのこと

+ [File uploading error: "You can't upload folders or 0-byte files"](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000Dc719)

:::note
Since it was happening to only one user, the probable cause was the computer. Updating Adobe solved the problem.


この問題が発生したのは 1 人のユーザーのみであるため、原因はコンピューターであると考えられます。 Adobe をアップデートすると問題が解決しました。
:::


# Error :- System.QueryException: List has no rows for assignment to SObject 
Stack race :- Class.sb_security.BeAwesome.createUser: line 133, column 1 Class.sb_security.BeAwesome.setup: line 124, column

+ [HELP!!](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DeDxnSAF)


# We can't find the 'New Lead' flow with the API Name New_Lead in the 'Process Automation Home' page. Make sure there is only one page with the label 'Process Automation Home'.

We see that you have added New Oppty flow to the Process_Automation_Home page, hence the error as we need to add "New Lead" flow. 

+ [Playground Challenge - Flow【消されている】](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000BtU2H)



# 【サポートの支援待ち】

+ [Build a Discount Calculator - unable to verify challenge](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DwkM8)

# We couldn't find a report chart of type 'Guage'.

+ [Unable to add Guage chart](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DxR9OSAV)

:::note
Please check this article.

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

# WarehouseCalloutService' class did not achieve 100% code coverage via your test methods. Make sure to 'Run All' tests in the Developer Console at least once before attempting to verify this challenge

+ [Challenge Not yet complete... here's what's wrong: The](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DxHIG)

:::note
課題は、キュー可能インターフェイスの使用を想定していることです。以下のコードを確認してください。役立つはずです。

The challenge is expecting to make use of queueable interface. Please check the below code and it should help.  

```
public with sharing class WarehouseCalloutService implements Queueable, Database.AllowsCallouts {  

   private static final String WAREHOUSE_URL = 'https://th-superbadge-apex.herokuapp.com/equipment';    

   public static void runWarehouseEquipmentSync(){

       Http http = new Http();

       HttpRequest request = new HttpRequest();

       request.setMethod('GET');

       request.setEndpoint(WAREHOUSE_URL);

       HttpResponse response = http.send(request);

       if(response.getStatusCode() == 200) {

           List<Object> jsonResponse = (List<Object>)JSON.deserializeUntyped(response.getBody());

           system.debug('~~ '+jsonResponse);

           List<Product2> productList = new List<Product2>();

           for(Object ob : jsonResponse) {

               Map<String,Object> mapJson = (Map<String,Object>)ob;

               Product2 pr = new Product2();

               pr.Replacement_Part__c = (Boolean)mapJson.get('replacement');

               pr.Name = (String)mapJson.get('name');

               pr.Maintenance_Cycle__c = (Integer)mapJson.get('maintenanceperiod');

               pr.Lifespan_Months__c = (Integer)mapJson.get('lifespan');

               pr.Cost__c = (Decimal) mapJson.get('lifespan');

               pr.Warehouse_SKU__c = (String)mapJson.get('sku');

               pr.Current_Inventory__c = (Double) mapJson.get('quantity');

               productList.add(pr);

           }            

           if(productList.size()>0)

               upsert productList;

       }        

   }    

   public static void execute(QueueableContext context){

       runWarehouseEquipmentSync();

   }

}
```

In Anonymous Window, use enqueueJob.

```
System.enqueueJob(New WarehouseCalloutService());
```
:::

# The 'Suggestions: Status of Open Suggestions' report wasn't found.

クッキーをクリアーしたら大丈夫だったようです。キャッシュも怪しい

+ [Help with Create Reports and Dashboards](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DxrxBSAR)

:::note
最終的には Cookie をクリアして最初からやり直すことで動作するようになりました。おそらく、トップの名前を変更する前にレポートの一意の名前を自動入力したためだと思いますが、それを識別する際に何らかのエラーが発生したためです。

I eventually got it to work by clearing cookies and starting over. Although I think it may have been due to it auto filling Report Unique Name before I renamed the top, there for causing some sort of error identifying it.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/84b6a253-b2d1-0ac2-1c53-715eb8a9174e.png)
:::

# We couldn't find the PricebookEntry with the correct values for Major Solar Panel Rental. Please double-check if the PricebookEntry was created and try again.

+ [Salesforce BillingSuperbadge-チャレンジ4](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DxdWl)

# 【未解決】Ensure that you have correct templete

+ [I am facing this issue where I have completed a challenge multiple times however I keep getting this error and it is preventing me from moving onto the next step " Step not yet complete in My Trailhead Playground 1 Ensure that you have correct templete](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E91In)

# Customize the Home Page
We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id:

+ [Hello, i was trying to verify a step and, when i verify they send this messege. What i can do?](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E987WSAR)

:::note
I created a new dashboard and solved the challenge again. Thanks! 
:::

# 【未解決】We couldn't find the AppExchange Package 'Salesforce Adoption Dashboards' installed in your Trailhead Playground. Make sure you installed the package in the correct playground and try again.

+ [Install AppExchange Packages](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000BtLrA)