Question

Errors when translating TAB files to shape files?


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?


    2 replies

    Userlevel 2
    Badge +12

    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).

    Badge

    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.

    Reply