# Error decoding json from lambda

**URL:** <https://community.viktor.ai/t/error-decoding-json-from-lambda/1273>\
**Category:** Need help? Ask here!\
**Created:** [27 September 2023 06:17 UTC](https://community.viktor.ai/t/error-decoding-json-from-lambda/1273 "2023-09-27T06:17:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rutger](https://community.viktor.ai/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@Rutger](https://community.viktor.ai/u/Rutger)\
**Post date:** [27 September 2023 06:17 UTC](https://community.viktor.ai/t/error-decoding-json-from-lambda/1273/1 "2023-09-27T06:17:24Z")

</div>

I am trying to upload and classify a .gef file using process function with the @ParamsFromFile decorator. After uploading 50+ .gef files only one failed to upload with the error message “Error decoding json from lambda”.

 ![image](https://community.viktor.ai/uploads/default/original/1X/890df83ada19fa3ab701c48a4ee20dcf830bacbe.png)

When investigating this error I found that it was raised when I tried to classify my GEFData object. To give some insight on how my code looks I’ve added relevant snippets below.

The error is raised in this code block.

 ![image](https://community.viktor.ai/uploads/default/original/1X/a5da521816a35c76731903fef8dfc25dd12192db.png)

where the cpt\_data variable is obtained earlier by calling the following method.

 ![image](https://community.viktor.ai/uploads/default/original/1X/94d86dff709392818cd945ee0615dd03d23149d3.png)

The ground\_water\_level variable is set to 1 m below ground\_level and in this case is -0.44.

I have added the qualification table that we use to this support ticket as well as the gef in question on which the error is raised.

I hope that with this information you can help me figure out why the error is raised and what the solution is to fixing it. If you need more information I can provide it.

[qualification\_table.txt](https://community.viktor.ai/uploads/short-url/QpIxdg0ioaBSxref6MrKB1kIGt.txt) (5.4 KB)  
[CPT000000203980\_IMBRO\_A.gef](https://community.viktor.ai/uploads/short-url/hmemwdQBWdQ2G3zPfRzBU5OlD1i.gef) (179.2 KB)

---

<div class="post-metadata">

**Author:** ![mweehuizen](https://community.viktor.ai/user_avatar/community.viktor.ai/mweehuizen/32/17_2.png) [@mweehuizen](https://community.viktor.ai/u/mweehuizen)\
**Post date:** [27 September 2023 13:08 UTC](https://community.viktor.ai/t/error-decoding-json-from-lambda/1273/2 "2023-09-27T13:08:19Z")

</div>

Hi Rutger,

Thanks for reporting this issue, we were able to recreate the problem. We are looking into this.  
We let you know when there is a solution.

greetings,

Maarten

---

<div class="post-metadata">

**Author:** ![mweehuizen](https://community.viktor.ai/user_avatar/community.viktor.ai/mweehuizen/32/17_2.png) [@mweehuizen](https://community.viktor.ai/u/mweehuizen)\
**Post date:** [29 September 2023 12:53 UTC](https://community.viktor.ai/t/error-decoding-json-from-lambda/1273/3 "2023-09-29T12:53:43Z")

</div>

Hoi Rutger,

The issue had been resolved. The GEF classification function was giving a lot of NaNs with this particular GEF.
