0

I'm trying to split a vector layer into new layers based on one field. The field is string type but when I run the tool, a message saying 'Creation of field fid failed (OGR error: Wrong field type for fid)' comes up. Before running I created a folder to store the output layers.

Any idea about what I have to change or what the right type field is, please?

The output should be many layers as unique values the field have.

asked Nov 17, 2020 at 18:13
3
  • Well, what is your field type for your FID field?, please check the properties of your layer in QGIS. As far as I am aware it should be an Integer64 Commented Nov 17, 2020 at 19:30
  • FID field was string and I changed to Integer64 and finally it works. It would be useful to add a note on the tool, to specify the type of field that you need. Great, many thanks for your help! @MarcM Commented Nov 18, 2020 at 9:14
  • Glad it worked. I have adapted my comment in an answer for future reference. Commented Nov 18, 2020 at 9:19

1 Answer 1

1

Answer for future reference: Change your field type of FID to Integer64 instead of String.

answered Nov 18, 2020 at 9:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.