Hello @abhishek_choudhary ,
As mentioned by @TanuHoque, it is a requirement for feature service to have enterprise Database, for details please refer the below link :
https://enterprise.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-feature-ser...
Cause of the Problem:
As far as, I could understand from the description, you created a Map Service first with Data copy and then enabled Feature access. This workflow will not allow the editing/update features on the service as when we initially publish a "Map Service (with data copy to Server)" it creates a "File Geodatabase" in "arcgisinput" (as you have already noticed) folder by design. After that if you enable "Feature access", the data still resides in "File Geodatabase" causing the requirement of capability to not fulfilled. Hence, the resulting error.
Additionally, when @TanuHoque "Enterprise Database", that would not be solved by creating "a folder named arcgis datastore" as it's still a file geodatabase which causes the same problem as mentioned earlier.
Probable Solution:
A probable solution could be to think about which type of Enterprise Database is possible for you to utilize, there are multiple options available with ArcGIS, possible options mentioned below :
- User managed data and referenced data
- ArcGIS managed data and hosted data
You would have to choose which you want to progress further with, for more details the following document should help :
I would suggest go through these documentation and take an informed decision and based on that republish the service.
Hope it helps!