I am trying to extract certain properties using ee.featurecollection.toDictionary method, Case 1 is returning 0 objects while case 2 is returning perfectly as mentioned in https://developers.google.com/earth-engine/apidocs/ee-featurecollection-todictionary
Case 1- my code
// FeatureCollection imported from PC named 'table' and few properties named NAME and AREA.
var fc = ee.FeatureCollection(table);
print('All non-system FeatureCollection properties as an ee.Dictionary',
fc.toDictionary());
print('Selected properties as an ee.Dictionary',
fc.toDictionary(['NAME', 'AREA']));
Case 2- example in GEE documentation.
// FeatureCollection of power plants.
var fc1 = ee.FeatureCollection('WRI/GPPD/power_plants');
print('All non-system FeatureCollection properties as an ee.Dictionary',
fc1.toDictionary());
print('Selected properties as an ee.Dictionary',
fc1.toDictionary(['description', 'provider']));