I'm getting a Staging Error 001707: Data cannot be opened: InMemoryDB(Instance_ID=GPProMemoryWorkspace) when I try to publish a geoprocessing service from a script tool (ArcGIS Pro v3.3.1)The strange part is, all references to the map layer that it's having trouble with have been completely removed from the execution script. There are no other bread crumb references to the map layer anywhere within the tool. I've tried changing the original storage type from "memory" to a FGDB f-class. I've tried changing the name of the input parameter both in the script and in the tool configuration. I have tried clearing out all history of the tool being run. I've tried adding the tool to a new ArcGIS Pro project. I've tried rebooting, etc. etc. For some reason it keeps hanging on this one map layer that doesn't exist anymore. I've narrowed it down to an issue within ArcGIS Pro, and not ArcGIS for Server because I tried to generate an offline SD file, and it still throws the same error. I'm not sure what else to try. Any help would be much appreciated.
Solved. I'm posting the resolution in case someone else runs across this. I'll admit I made a rooky mistake and didn't check one of the layer files that the tool uses to build symbology. It was still pointing to an old feature class that didn't exist any more. I didn't think to look there because the tool ran fine in ArcGIS Pro before staging the SD file. The symbology was pulled over just fine, and no errors occurred. However, when trying to publish as a geoprocessing service or staging as an SD file, it threw the 001707 error. Oh well, live and learn....