It depends on your application but you should be able to pass the data source (full path to raster or raster object) to the GP tool as an alternative to the layer name. More of a workaround than a solution.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.