By default, Salesforce does not populate data in a new Developer instance. If you attempt to enter transactions in GoldFinch without seeding the data, you may encounter errors like:
List has no rows for assignment to SObject
To resolve this, follow the steps below to run the Post Installation Script and populate GoldFinch demo data:
Steps to Run the Script:
-
Open Developer Console
-
In your Salesforce Developer instance, click the Setup gear icon in the top right corner.
-
Select Developer Console from the dropdown.
-
Execute the Script
-
In Developer Console, go to Debug > Open Execute Anonymous Window.
-
Copy and paste the following line into the Enter Apex Code window to execute:
GFERP.CompanySetupController.populateSetupTable2();
-
Note
Once the script runs successfully, you will not be able to run it again in the same instance.
After running the script, your Developer instance will be seeded with the necessary GoldFinch demo data and ready for testing or development.
Comments
0 comments
Please sign in to leave a comment.