I'm getting error code 403 when trying to publish a hosted feature layer: "User does not have permissions to access 'hosted/hfl_name.mapserver'., Access to this resource is forbidden, regardless of authorization."
The service definition is publishing, but not the feature layer. The account I'm using is one of the main publishing accounts for my organisation (Creator user type and Publisher role).
ArcGIS Pro 3.2.1 to ArcGIS Portal
Does this account have any credit allocation? If not can you give the account a credit limit and try again?
Do you get the same issue with an admin role?
Are you publishing into ArcGIS Online directly or from ArcGIS Pro?
Are you publishing to ArcGIS Online or to an ArcGIS Server/ArcGIS Enterprise? For ArcGIS Server in production environments there is a configuration setting to 'not copy data'. In those environments the feature service is published but the data is coming from your ArcSDE data server. The intent is to prevent the 'copy' of data out of the organization onto AGOL or an ArcGIS Enteprises server (i.e., the FC is just connecting to your enterprise data set, not to a copy).