The syntax is a 'you say tomato', I say tomaato' sort of thing. Hosted feature layers are geo-spatial datasets that are hosted somewhere on the internet either in AGOL or an enterprise Portal. Sounds like you are not using either, rather you are using a geodatabse feature class.
That should just about do it....