When publishing a web tool from ArcGIS Pro where the script references an sde connection file from C:\Users\<username>\AppData\Roaming\ or C:\Users\<username>\AppData\Local, publishing fails with the error message, "ERROR 999999: Something unexpected caused the tool to fail" returned.