# Error while running MEGAN3.1 test case

**URL:** <https://forum.cmascenter.org/t/error-while-running-megan3-1-test-case/1322>\
**Category:** I/O API\
**Created:** [February 24, 2020, 8:03pm UTC](https://forum.cmascenter.org/t/error-while-running-megan3-1-test-case/1322 "2020-02-24T20:03:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsanzine](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@nsanzine](https://forum.cmascenter.org/u/nsanzine)\
**Post date:** [February 24, 2020, 8:03pm UTC](https://forum.cmascenter.org/t/error-while-running-megan3-1-test-case/1322/1 "2020-02-24T20:03:18Z")

</div>

I am trying to run the test case for MEGAN and I get the following error when I run a program that converts text files into an ioapi format:

This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS Models-3  
I/O Applications Programming Interface, [I/O API] which is  
built on top of the netCDF I/O library (Copyright 1993, 1996  
University Corporation for Atmospheric Research/Unidata  
Program) and the PVM parallel-programming library (from  
Oak Ridge National Laboratory).  
Copyright © 1992-2002 MCNC,  
© 1992-2018 Carlie J. Coats, Jr.,  
© 2003-2012 Baron Advanced Meteorological Systems, LLC, and  
© 2014-2019 UNC Institute for the Environment.  
Released under the GNU LGPL License, version 2.1. See URL

```
     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html

 for conditions of use.

 ioapi-3.2: $Id: init3.F90 136 2019-10-16 13:57:49Z coats $
 Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
 netCDF version 4.1.3 of Feb 6 2020 20:19:45 $

 Missing environment variable EXECUTION_ID
 Value for GDNAM3D: 'tceq_12km'
 Value for GDNAM3D: 'tceq_12km'
 Value for RUN_EFS: F returning FALSE
 Value for RUN_CANTYP: F returning FALSE
 Value for RUN_LAI: F returning FALSE
 Value for RUN_W126: F returning FALSE
 Value for RUN_LDF: F returning FALSE
 Value for RUN_FERT: T returning TRUE

 File "GRIDDESC" opened for input on unit: 99
 /CAMData/MEGAN/MEGAN31_Calc_Code_191022/work/GRIDDESC

 Value for PROMPTFLAG: N returning FALSE

 File "FERTTXTF" opened for input on unit: 99
 /CAMData/MEGAN/MEGAN31_Calc_Code_191022/Input/MAP/grid_FERT.tceq_12km.csv

 ERROR: Overflow prevented while parsing line PARSLINE
 First 200 characters of line contents are:
 CELL_ID,X,Y,LAT,LONG,,FERT001,FERT002,FERT003,FERT004,FERT005,FERT006,FERT007,FERT008,FERT009,FERT010,FERT011,FERT012,FERT013,FERT014,FERT015,FERT016,FERT017,FERT018,FERT019,FERT020,FERT021,FERT022,FE

 *** ERROR ABORT in subroutine PARSLINE
 Formatting problem.

```

I am not sure what’s wrong since I did not change anything in the input file. Thanks for your help !

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [February 24, 2020, 8:09pm UTC](https://forum.cmascenter.org/t/error-while-running-megan3-1-test-case/1322/2 "2020-02-24T20:09:29Z")

</div>

There are more fields (comma (etc.) delimited) in the input line than there are output fields into which to put them. Probably an input-data error…

---

<div class="post-metadata">

**Author:** ![nsanzine](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@nsanzine](https://forum.cmascenter.org/u/nsanzine)\
**Post date:** [February 24, 2020, 8:36pm UTC](https://forum.cmascenter.org/t/error-while-running-megan3-1-test-case/1322/3 "2020-02-24T20:36:00Z")

</div>

@cjcoats Thanks for your response. The input data did have an extra field between LONG and FERT001 variables (LONG,FERT001). After deleting the extra field, the program run to completion.
