Hi I tried to use the new function FeatureSetByName in a Demo ArcGIS Online Map, and got below the errors, featuresetbyname is not available.

Then I tried it in Portal for ArcGIS and got below the error: Execution Error.

Does anybody have the same problem? any suggestions?
Thanks all