English

Error: Bad value encountered in Data File at line # - Terminating line creation.

Error Message

The following GENERATE sequence produces an error:

Arc: generate testcov
Generate: input test.gen
Generate: lines
Creating Lines with coordinates loaded from test.gen
Bad value encountered in Data File at line 1549 - Terminating line creation.

Cause

The input file may have the COVER-ID and END lines incorrectly sequenced, or it may have miss-typed entries.

Solution or Workaround

  • Check the COVER-IDs and END statements in the input file. Delete any extra statements, or insert any missing ones. An input GENERATE file for two lines each having three vertices looks like this:

       100
    0 0
    0 10
    0 20
    END
    200
    0 10
    10 10
    20 10
    END
    END

    Note the last END statement, it indicates no more input lines.

    Check the GENERATE command documentation for the input format for other feature types.
  • Examine the input line specified in the error message. Correct any obvious errors. Check for 'O' instead of '0', 'l' instead of '1', etc.

    If the error is not obvious, remove the feature specification that includes the error line and save the file as a copy. Run GENERATE with the copy file.

    If GENERATE fails, re-enter the line carefully; the problem may be an unprintable character such as a tab.

    If GENERATE runs, then offending line may be further down. GENERATE does sometimes confuse the error message line numbers. To locate a problem in the remaining portion of the input file, separate the remaining portion into two input files. Run GENERATE against both halves. Repeat this process until you identify the problem.