Saturday, February 28, 2015

Content type not allowed for Test.loadData(): application/CSV

MIME Type (application/csv) in Static Resources:

If you create data of custom settings using a CSV file of Static Resource in test classes (@isTest) then the MIME Type column of that Static Resource should be ‘text/csv’ otherwise you will get an error in

Error : System.TypeException: Content type not allowed for Test.loadData(): application/csv