# Negative.lua:223: attempt to index local 'i' (a nil value)

**URL:** <https://forums.negativelabpro.com/t/negative-lua-attempt-to-index-local-i-a-nil-value/540>\
**Category:** Troubleshooting and Bugs\
**Created:** [August 24, 2019, 9:28pm UTC](https://forums.negativelabpro.com/t/negative-lua-attempt-to-index-local-i-a-nil-value/540 "2019-08-24T21:28:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nate](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.negativelabpro.com/nate/32/4_2.png) [@nate](https://forums.negativelabpro.com/u/nate)\
**Post date:** [August 26, 2019, 1:27pm UTC](https://forums.negativelabpro.com/t/negative-lua-attempt-to-index-local-i-a-nil-value/540/4 "2019-08-26T13:27:26Z")

</div>

Hi @JerryB and @StephenK,

Try the instructions in this link and let me know if that helps:

> [@SOLVED: "Negative.lua:708: attempt to perform arithmetic on field '?' (a nil value)](https://forums.negativelabpro.com/t/solved-negative-lua-attempt-to-perform-arithmetic-on-field-a-nil-value/108):
>
> If you are trying to convert a film negative scan in Negative Lab Pro, and you get this message, then read on for the solution! Negative Lab Pro depends on two key things to work: 1) the ability to analyze your negative image and 2) the ability to add metadata to your image about that analysis. If either of these things isn’t working properly with your system or Lightroom, you may see an error like this one when you try to convert an image: [negative%20lua%20708%20internal%20error] Depending…

Also, check the filename of the image you are trying to convert and ensure that are no symbols in the filename (in other words, the filename should be comprised of just numbers and letters). This specific filename issue should be resolved with v2.1, but in the meantime, if you encounter this, you can test by renaming the file and trying to convert again.

-Nate

---

_[View the full topic](https://forums.negativelabpro.com/t/negative-lua-attempt-to-index-local-i-a-nil-value/540)._
