Error - Code 68 - Script Extract Data contains broken project data source: gdbWarning - Code 24032 - Data source used by Script Extract Data is not registered with the server and will be copied to the server: gdb
Hi Steffen,Sorry for the delay in returning to this thread. I was pulled to another project that took my attention away.The issue lies in the strict scanning of python scripts when publishing as a geoprocessing service. According to Authoring Geoprocessing Tasks with Python Scripts, "when your script is scanned, every quoted string (either single- or double-quotes) used in a Python variable or as an argument to a function is tested to see if it is a path to data that exists."Line 135 in ExtractData.py is the culprit. I changed "gdb" to "file geodatabase" so it wouldn't look like part of a path when passed to getTempLocationPath, and it published. I'll be curious to see how the script has changed in SP1.Hope this helps,GG
No, we dont do "beta" service packs, only the final release of them.If you absolutely require a custom version of the extract data task, do you still need feature parameter input? This is the problem, if you can either hardcode or change that parameter, you can probably get around the analyzer problem.The tool does a name match, so its possible (i havent tried this though) to play with the name inside the parameter and then change the code in the tool. Of course if you dont need the feature type parameter, the best solution would be to hardcode it in the script and not expose that parameter. Again, I think this will work, but no guarantees.
NIM081276 - Sharing some script tools that use Network Analyst tools as a geoprocessing service incorrectly raises analyzer error "Results contains broken project data source".
Hi again,you mean the Value List in the Feature Format parameter causes the problem? Because it uses the string ".gdb"? That's why it's looking for a data source named "gdb"? Well, thanks for the hint! I can hardcode-limit this to .shp only until SP1 is available. I'll give it a try and post my results.Steffen.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.