I have created a geodatabase enterprise (mssql) feature class, enable archiving (not versioned) with globalid and publishing it with sync options.
After that copy the Portal Feature Layer URL and past to Arcgis Online New Item.
Opening the Survey connected to ArcGis Online I can see the feature layer referenced. But when I click in Create Survey I got the message Feature Service error Invalid Token Code 498.
The idea is to populate the data into the portal without using the VPN connection using a referenced arcgis online feature layer point to arcgis portal.
Survey 123 --- > Arcgis Online ---> Enterprise Geodatabase (ArcGis Portal).
in attachment more details about the process.
Thanks.