Get Started with Salesforce Development >  Create a Data Model Using Clicks

+ [create object from spreadsheet でアップロードできない](https://qiita.com/Keiji_otsubo/items/97b018c63fc8a310d4c9)


----------------
+ [Get Started with Salesforce Development >  Create a Data Model Using Clicks](https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/create-a-data-model-using-clicks)

# UIの問題

+ [Problem with create data model with click](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PelDA)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/6ee6ac8d-4787-e288-317f-9b12cec17e0c.png)

:::note
Try your browser's incognito mode.Or try it in a different browser.
:::

+ [unable to submit complete hands on challenge](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007O3q3m)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/38c03542-8444-f5f6-2792-998ac579e532.png)

+ [i ma facing this issue when i create custom object using .csv file](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KhfqX)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/3775b539-3a92-6cd1-5579-0142fbe83841.png)

:::note
Try your browser's incognito mode.Or try it in a different browser. 


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

+ [I have error when I try to create new object by import house.csv](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000PZiJd0AL)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c497a120-8fd5-442c-9db2-685484843144.png)



# We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv.

+ [We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JdmOv)
+ [I keep getting "We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv." when I try to verify step to complete this module "Create a Data Model Using Clicks"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007bLOp4SAG)

:::note
検証スクリプトは、フィールド「House Name」ではなくフィールド「House」の名前をチェックしています。  ID から House Name まで House フィールドを編集できます。  検証は通るはずです！ 

 validation scripts are checking for Name in the field 'House' instead of field 'House Name'.  You can edit House field with Id to House Name.  Validation should pass!  Happy Trails!

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/7d552f76-e2b3-0bf0-f55d-53330800659a.png)
:::

+ [We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000O7k9CSAR)

:::note
Worked for me. I named all of them in the field 'house'
:::

+ [Trailhead: Get Started with Salesforce Development, Module: Create a data module using clicks](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PeoS5SAJ)


+ [We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JdmOv)

:::note
it seems that the verification check is looking for the 'Stunning Victorian' in 'Name' (House) field and not in 'House Name' (House_Name__c) field. I override  the 'Name' (House) values and the verification check passed

検証チェックは、「House Name」(House_Name__c) フィールドではなく、「Name」(House) フィールドで「Stunning Victorian」を探しているようです。 「名前」(家) の値を上書きし、検証チェックに合格しました

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/950be948-29db-d8a1-885b-4e79ed2650e9.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/a1ac0ffb-6a56-d543-97cf-c7c3bb915d2b.png)
:::

# モデルを作成するステップを見逃してしまいました

+ [I cannot validate my exercise: create a data model using clicks](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007PhfPI)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c19fd0c5-cb03-ac9d-f0ff-b1918fdd9d6b.png)



# House Nameフィールドを作ってなかった？

+ [The method getRecords did not return a house record with the name 'Modern City Living'](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LWNnfSAH)

+ [Error at the end of Write Business Logic in Apex](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PmNB4)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/3e5c76a7-35d9-6e6d-0e3c-a0e33fdc4680.png)

:::note
I got it sorted. I traced back through my steps and i didnt House Name as the Record Field Name. I could see in the output from the Anonymous Apex function that the name field wasn't being returned properly - it was return an ID (i think, i forgot to take a screenshot) instead of the house name

整理できました。自分の手順を遡ってみたところ、レコード フィールド名として House Name が設定されていませんでした。匿名 Apex 関数の出力を見ると、名前フィールドが適切に返されていないことがわかりました。家の名前ではなく ID (スクリーンショットを撮り忘れたと思います) が返されていました。
:::


+ [We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JdmOv)

:::note
「レコード名」フィールドを「ハウス名」にマッピングするステップを実行して、エラーを修正しました。これはトレイルヘッドモジュールに記載されていますが、最初のラウンドでは見逃していました。

I fixed the error by performing the step of mapping "Record Name" field to "House Name". This is mentioned on the trailhead module but missed during 1st round.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/d1a3d4ae-62c8-700f-20cd-f57f2e71b4ef.png)

Once you imported the Object/data. Better to delete the object and recreate it using excel import. 

I faced some additional issues while importing the same sheet. Better to use a browser session in incognito mode while retrying the steps.

ブジェクト/データをインポートしたら。オブジェクトを削除し、Excel インポートを使用して再作成することをお勧めします。 

同じシートをインポートするときに、さらにいくつかの問題に直面しました。手順を再試行するときは、シークレット モードでブラウザ セッションを使用することをお勧めします。
:::

+ [多分これも同じだけど、理解してくれません](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V0000794elD)
+ [Escrever lógica de negócios no Apex](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LWNnf)


# Create a custom object from a spreadsheet showing an error like It’s better in Lightning To create objects from spreadsheets, you must be a Lightning Experience user. Learn more about enabling Lightning Experience.

+ [未解決:Create a Data Model Using Clicks. getting error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Pj8G7)

# 【未解決】review the following errors see your server log for more information

+ [Creating a Data Model Using Clicks](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DgEpSSAV)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/10700d34-4c9f-ace3-654e-3a668136428f.png)

+ [Create A Data Model Using Clicks](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007cmPRF)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/50d5628e-9eb2-4aa6-2f6f-6e5e0bcade51.png)


# yntaxError Unexpected Token

+ [yntaxError Unexpected Token](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000R9L56)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/1b59fceb-9c26-aea8-855a-bbd2cc5a8eaf.png)

:::note
I found the issue. The file metadataType.json contained color escape sequences.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/3f5919a0-11aa-8168-94a3-7be248c1c05d.png)
Changing my environment variable FORCE_COLOR from "true" to "false" seems to have fixed the problem.
:::

# 環境が違った

+ [Creating a Data Model Using Clicks](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DgEpS)


# Error: Line: 1, Column: 27 Error: Method does not exist or incorrect signature: void getRecords() from the type HouseService

+ [I do not see the Code Lens when completing "Write Business Logic in Apex"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LUdpu)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/6cf89546-88ec-d4c6-d737-59038f9d5497.png)

:::note
Check if the deployment is successful in the source organization.

5.Right-click HouseService.cls and select SFDX: Deploy Source to Org. You see a confirmation message that the Apex class successfully deployed to the org. Deploying your code also compiles it on the server.

https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/write-business-logic-in-apex
:::


# CSV the menu defaults to select items from a google drive

+ [Submitting a Custom Object From CSV](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007PvUKx)

:::note
I'm doing the project using the Google Chrome browser, my project also gave this error. I resolved the problem by switching to Microsoft Edge and redoing the process, I hope to help someone with this information.

Google Chromeブラウザを使用してプロジェクトを実行していますが、私のプロジェクトでもこのエラーが発生しました。 Microsoft Edge に切り替えてプロセスをやり直すことで問題が解決しました。この情報が誰かのお役に立てれば幸いです。
:::

# house objectのタブが表示されない

+ [When I create a new lightning app the item House doesn't appear to me. I upload the house.csv and created the object.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Z82qQ)

オブジェクトを作成できてなかった...


# Error: Method does not exist or incorrect signature: void getRecords() from the type HouseService

+ [I do not see the Code Lens when completing "Write Business Logic in Apex"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007LUdpu)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/90d6ba31-ace7-6426-f46c-da9b679b8fe1.png)

:::note
Check if the deployment is successful in the source organization.

5.Right-click HouseService.cls and select SFDX: Deploy Source to Org. You see a confirmation message that the Apex class successfully deployed to the org. Deploying your code also compiles it on the server.

https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/write-business-logic-in-apex

ソース組織での展開が成功したかどうかを確認します。

5.HouseService.cls を右クリックし、「SFDX: ソースを組織にデプロイ」を選択します。 Apex クラスが組織に正常にデプロイされたことを示す確認メッセージが表示されます。コードをデプロイすると、サーバー上でコードもコンパイルされます。
:::

# This is for the "Platform Developer Beginner -> Get Started with Salesforce Development -> Write Business Logic in Apex" module.

+ [Syntax highlighting/compilation errors with apex code](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007X83Z7SAJ)

```Java
public with sharing class HouseService {
    @AuraEnabled(cacheable=true)
    public static List<House__c> getRecords() { 
        try {
            // Create a list of House records from a SOQL query
            List<House__c> lstHouses = [
                SELECT
                   Id,
                   Name,
                   Address__c,
                   State__c, 
                   City__c,
                   Zip__c
                   FROM House__c
                   WITH SECURITY_ENFORCED
                   ORDER BY CreatedDate
                   LIMIT 10
                ];
                return lstHouses;
        }
        // Code to handle exception
        catch (Exception e) {
           throw new AuraHandledException(e.getMessage());
        }
    }
}
```

# The method getRecords did not return a house record with the name 'Stunning Victorian'.

+ [【未解決】Verify step process not working.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000PXAXY)
+ [【未解決】I have received the error "We could not find a record with the name 'Stunning Victorian' in the House object specified in the House.csv." while trying verify the module, however I could see the record with that name in my org](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000MpgT0AS)