In ArcGIS Pro, I am running the AddJoin tool. I have run this command from ModelBuilder and from the Data Management Geoprocessing tool. Obviously, after running the tool, it functions as it should by joining one featureclass to another. After running from Geoprocessing, I saved as a Python script. When I create a new script in Pro, then reference the file I just created, it does not create the join. It runs and completes successfully but no effect?
arcpy.management.AddJoin("INFEATURE1", "JOINFIELD1", "INFEATURE2", "JOINFIELD2", "KEEP_ALL")
Is there some backend event like a refresh or response that occurs from a Geoprocessing tool that would not necessarily be reflected in the Python script?