I am using arcgis pro 2.7 and am trying to append data from one feature layer into another. When I do it manually inside the program using the Append tool in Geoprocessing it works fine. But when I try to do it with python using arcpy.geoanalytics.AppendData(layer1,layer2) I get the error message that layer1 is not a hosted layer. Why? I don't see how this procedure has anything to do with hosting. Although it probably makes no difference I am using Microsoft Visual Studio Professional 2019 for writing the python code.