-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect querying of object ids in ArcGIS connector #9013
Conversation
Enhance also error reporting: detect invalid layer types Fixes #8958
else | ||
ids_field = {where: "OBJECTID >=#{ids.first} AND OBJECTID <=#{ids.last}"} | ||
if oid_field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert if
nested inside else
to elsif
.
Previous behaviour:
New behaviour:
So, now for a case like #8958 or an URL with vector and non-vector layers, the import is successful and only vector layers are imported. Also imports of non supported version 10.01 could fail with "Missing data: supportedQueryFormats". Now it fails with an "Unsupported ARCGIS version error" |
Otherwise methods such as present? or blank? are not available
We require a valid type now in the layer metadata
Please @ethervoid review this |
Hey guys, I´m the user who was trying to upload the dataset from ArcGIS which generated this issue. I´ve been following all the thread, thanks for all the effort in solving it and clarifying the error! Now that you have the bug fixed, I´ve tried to upload the same datasets from ArcGIS again and, as I understood from your explanations, the vector layer from the dataset (layer 0 from the REST link) is now successfully uploaded: But layer 1 ("Periodo") from the same REST link is a Raster Layer and, now I understang, cannot be successfully uploaded. Anyway - just so you have a feedback - CARTO still shows me a generic error message, where it should show the new behavior you listed above, right? Error retrieving data from datasource (1011) |
Hi @julianamori: You're right, that error message is misleading and should be changed; I've open a new ticked for that issue: #9108 Thanks for reporting! |
Enhance also error reporting: detect invalid layer types
Fixes #8958