Uncaught Server Exception : adjust_qty_for_expired_items

How could i fix this!

Uncaught Server Exception
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 39, in render
data = render_page_by_language(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in render_page_by_language
return render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 156, in build
return build_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 169, in build_page
context = get_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 28, in get_context
context = build_context(context)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 89, in build_context
ret = context.doc.get_context(context)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 69, in get_context
limit=context.page_length + 1, search=frappe.form_dict.get(“search”)),
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 109, in get_product_list_for_group
data = adjust_qty_for_expired_items(data)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 121, in adjust_qty_for_expired_items
qty = stock_qty_dict.stock_qty[0][0]
IndexError: tuple index out of range

did u modify the script?

i just change the port number thats it…

how can this be reproduced

This what i did… first install a server then change the port number then i explore more inside erpnext then put some sample items then i tried to update it last day you can see my post Bench update error: Bench.utils.CommandFailedError: git pull then after i found the way to update it. this pop up on my sample website button when i click products…

Please report this on github so that resolution process can start. Don’t forget to add enought information. Animated gifs and screen shots are always good

Sir im very new at this reporting on erpnext can you tell me how to report this issues?

Just create a new issue at https://github.com/frappe/erpnext
…and welcome :slight_smile:

Thank you sir

update your bench and let’s know if it now works properly

I already updated it but still same error… what should i do…?

I figure it out …This is causing me that error above. . Uncheck the boxes in “Has Batches” then save it
Thank you!