function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sevindusevindu 

Test.loadData not working

User-added image

User-added image
User-added image

I am getting the above error, How can I solve and what is the issue?
Best Answer chosen by sevindu
GovindarajGovindaraj
Hi,

It seems, you already have a class with name 'Test'. Could you delete that and try saving this 'LoadData' class ?

Thanks,
Govindaraj.S

All Answers

GovindarajGovindaraj
Hi,

It seems, you already have a class with name 'Test'. Could you delete that and try saving this 'LoadData' class ?

Thanks,
Govindaraj.S
This was selected as the best answer
Raj VakatiRaj Vakati
Looks like you have an apex class with the name  "Test" that is causing an issue so 
  1. Delete the apex class name "Test"
  2. and use this code
List<sObject> ls = System.Test.loadData(Account.sObjectType, 'TestLoadData');

 
sevindusevindu
Thanks