Skip to main content
Question

Errors when translating TAB files to shape files?

  • May 24, 2016
  • 2 replies
  • 48 views

Hi there

When I try to translate some TAB files to shape files in FME, I keep getting the errors:

  • ERROR 3: InitBlockFromData(): Invalid Block Type: got 0 expected 2
  • ERROR 5: GetNextFeatureId() failed: unable to set read pointer to feature id 1
  • GetNextFeatureId() failed: unable to set read pointer to feature id 1
  • Closing native MapInfo reader
  • Failed reading feature from MapInfo file

Could anyone please tell me what this means?

    This post is closed to further activity.
    It may be an old question, an answered question, an implemented idea, or a notification-only post.
    Please check post dates before relying on any information in a question or answer.
    For follow-up or related questions, please post a new question or idea.
    If there is a genuine update to be made, please contact us and request that the post is reopened.

    2 replies

    erik_jan
    Contributor
    Forum|alt.badge.img+26
    • Contributor
    • May 24, 2016

    Could it be you use the wrong Reader? FME has 2 different readers for TAB files: One for older versions (MAPINFO), one for newer (>3) versions (MITAB).


    Forum|alt.badge.img

    Hi @timlangner

    I agree with @erik_jan - it is a good idea to try another MapInfo Reader. I have seen GetNextFeatureId() failed: unable to set read pointer to feature id 1 error message before and in that case the data was not perfect (it looked like there were some 'lost' geometries in the map-file) - MapInfo itself was able to read the table, so was the MAPINFO Reader, but MITAB Reader was failing.