Hello,
We recently noticed when we add the tool "Select Fields" our Feature Layer output turns into an AGOL Hosted table instead:
Based on my understanding of the documentation, it doesn't appear this should be the expected behavior: https://doc.arcgis.com/en/data-pipelines/latest/process/select-fields.htm
Please correct me if I'm wrong!
I tested this a few times and it resulted in the same output:
When removing the tool and testing the output, the output is a Feature Layer as expected:
Please let me know if I'm missing something.
Thanks,
Amanda Huber
Solved! Go to Solution.
Hi @Amanda__Huber,
Thank you for reaching out!
In the Select fields tool, make sure you are also selecting the geometry field. In Data Pipelines, datasets do not have a set geometry field like feature layers do. This means if you don't actively include the geometry field in the selection, the dataset no longer has any concept of a geometry.
Additionally, you'll notice in the output feature layer tool that there is a parameter named "Geometry"; this accepts a field of type geometry as input and is what determines whether a feature layer or table will be created. When the Geometry parameter is empty, a table will be created.
Could you please confirm that you've selected the geometry field in Select fields, and that it is specified in the output Feature layer tool?
Thanks again!
Bethany
Hi @Amanda__Huber,
Thank you for reaching out!
In the Select fields tool, make sure you are also selecting the geometry field. In Data Pipelines, datasets do not have a set geometry field like feature layers do. This means if you don't actively include the geometry field in the selection, the dataset no longer has any concept of a geometry.
Additionally, you'll notice in the output feature layer tool that there is a parameter named "Geometry"; this accepts a field of type geometry as input and is what determines whether a feature layer or table will be created. When the Geometry parameter is empty, a table will be created.
Could you please confirm that you've selected the geometry field in Select fields, and that it is specified in the output Feature layer tool?
Thanks again!
Bethany
Hi @BethanyScott,
Thanks for your quick response!
I just tested again following your suggestion and ahh this was the piece of the puzzle I was missing! That's good to know moving forward. Thank you for clarifying this.
Are there other tools that also require "shape" to be selected to move forward into the output? I'm still learning Data Pipelines and these little things are easy to get caught on.
Thanks so much,
Amanda Huber
Glad to hear that resolved the issue!
To answer your question of "Are there other tools that also require "shape" to be selected to move forward into the output?":
Generally speaking, you'll want to keep the geometry field throughout the entire workflow if the goal is to create a feature layer and not a table. Once a field of any type is removed, it will not appear again in downstream results.
Most Data Pipelines tools will maintain the geometry field if it was present in the input dataset. The exceptions to that are:
Please let me know if that answers your question, or if you have any additional questions. 🙂
Thanks again!
Bethany