I'm trying to publish a GP service but I'm getting the error 00068 about a broken project data source. The thing is the script creates the project data source that Pro believes is missing. The script then does some stuff to populate the table using an insert cursor before copying the table to the location specified by the user:
route = arcpy.GetParameterAsText(0)
outTable = arcpy.GetParameterAsText(1)
## do some stuff to populate the table
Any ideas on how to get around this?