I am having issues with a Python geoprocessing tool I created. It works perfectly fine when running it within ArcGIS Pro. However, when I publish the geoprocessing service to server, it doesn't work when I run it in an app. I get the following error message:
ERROR 001272: Analyzer errors were encountered ([{"code":"00231","message":"Layer's data source must be registered with the server","object":"DB and table name here"}]). Failed to execute (StageService).
I'm not sure why I am getting this error message. The DB is registered with the server and I do not receive that error message when running the tool locally through ArcGIS Pro. There are no DB versions and only one account, so there shouldn't be any reason for me to have to register the DB again. It's using the same SDE connection and everything.
Anyone have any ideas why I'm getting this message?