# Mrggrid Error when running NEI merge program using smoke

**URL:** <https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586>\
**Category:** Emissions Inventory\
**Created:** [September 21, 2022, 3:50pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586 "2022-09-21T15:50:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kruthika](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kruthika](https://forum.cmascenter.org/u/kruthika)\
**Post date:** [September 21, 2022, 3:50pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586/1 "2022-09-21T15:50:20Z")

</div>

Using NEI Platform 2015 and smoke 4.5(precompiled with platform)

I ran merge for all and an error is shown in the output:

> ERROR: At least one message’s priority is less than or equal to the exit priority: 1  
> ERROR: Level 1 errors or Level 0 warnings found. Check log files, fix inputs, and rerun.

Please find the script run screen output (mergeOut.txt) attached.  
[mergeOut.txt](https://forum.cmascenter.org/uploads/short-url/n4o2tiZGYj8Lqz97lKRRfxfis73.txt) (6.6 KB)

The **log** file shows:

> \*\*\* ERROR ABORT in subroutine MRGGRID  
> Could not open file “OUTFILE”.

I have attached the run script file (Sector\_merge\_12US2\_2015fd\_cb6\_15j.csh), the sector file (sectorlist\_2015fd\_15feb2018\_v0\_withOnroad.txt) and the log file below(mrggrid\_merge\_log.txt).

[Sector\_merge\_12US2\_2015fd\_cb6\_15j.csh](https://forum.cmascenter.org/uploads/short-url/zxTMETd7QV0Etkb4HxETiLSAZD7.csh) (5.4 KB)  
[sectorlist\_2015fd\_15feb2018\_v0\_withOnroad.txt](https://forum.cmascenter.org/uploads/short-url/jFwik1p7cjqTCAwHV5671DrIMD8.txt) (1.9 KB)  
[mrggrid\_merge\_log.txt](https://forum.cmascenter.org/uploads/short-url/azTvnQg0KdoHLo6yNZN0uuexX4s.txt) (18.1 KB)

The onroad merge program ran successfully.  
I tried to merge without onroad with the same script as above (Sector\_merge\_12US2\_2015fd\_cb6\_15j.csh) with the modification of one line in the sector file provided below (sectorlist\_2015fd\_15feb2018\_v0\_woutOnroad.txt) and it ran successfully. The log file (mrggrid\_merge\_woutOnroad\_log.txt) and screen output (mergeWoutOnroadOutput.txt) are provided below.

[sectorlist\_2015fd\_15feb2018\_v0\_woutOnroad.txt](https://forum.cmascenter.org/uploads/short-url/icdZ9bkS04n7PaxNLwuhrRE3Hv9.txt) (1.9 KB)  
[mrggrid\_merge\_woutOnroad\_log.txt](https://forum.cmascenter.org/uploads/short-url/2PYECMrtJCm4PZwhQFI9jJguZia.txt) (80.2 KB)  
[mergeWoutOnroadOutput.txt](https://forum.cmascenter.org/uploads/short-url/yfHYKJiXNS0odQ43nPqDuZaaVuG.txt) (238.3 KB)

Does anyone have any tips or advice on how I can go about addressing this issue?

Thanks,  
Kruthika

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [September 22, 2022, 2:40pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586/2 "2022-09-22T14:40:01Z")

</div>

Have you confirmed that you have write permission in the location that it is supposed to be writing the output file and there is not a typo in the path?

Can you create a file in the same area manually?

---

<div class="post-metadata">

**Author:** ![kruthika](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kruthika](https://forum.cmascenter.org/u/kruthika)\
**Post date:** [September 26, 2022, 5:35pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586/3 "2022-09-26T17:35:48Z")

</div>

Yes, I have confirmed that I have write permission in the location of the output file and I can create a file in the same area manually.

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [September 27, 2022, 12:18pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586/4 "2022-09-27T12:18:19Z")

</div>

We think that Mrggrid may be struggling to overwrite the output file from a previous run. Can you delete the older merged outputs and try again?

---

<div class="post-metadata">

**Author:** ![kruthika](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kruthika](https://forum.cmascenter.org/u/kruthika)\
**Post date:** [October 6, 2022, 10:09pm UTC](https://forum.cmascenter.org/t/mrggrid-error-when-running-nei-merge-program-using-smoke/3586/5 "2022-10-06T22:09:16Z")

</div>

Thank you! That fixed my problem.
