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) arcpy.CreateTable_management('in_memory', 'outTable') ## do some stuff to populate the table arcpy.CopyRows_management('in_memory/outTable', outTable)
Any ideas on how to get around this?
Did you get an answer to this problem?, Almost a year after you post this question I am having the same problem.
I believe the issue was that I was trying to publish from the latest version of Pro to an earlier version of Enterprise. I would check to see that both Pro and Enterprise are the same vintage first. Hope that helps!