0
0

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

Last updated at Posted at 2023-05-11

UIの問題

image.png

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

image.png

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

検証スクリプトは、フィールド「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

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

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

image.png

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

image.png

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

image.png

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 (スクリーンショットを撮り忘れたと思います) が返されていました。

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

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

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 インポートを使用して再作成することをお勧めします。

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

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.

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

image.png

image.png

yntaxError Unexpected Token

image.png

I found the issue. The file metadataType.json contained color escape sequences.
image.png
Changing my environment variable FORCE_COLOR from "true" to "false" seems to have fixed the problem.

環境が違った

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

image.png

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

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のタブが表示されない

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

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

image.png

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.

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());
        }
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0