# IndexError when lauching a printing report from a wizard

**URL:** <https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776>\
**Category:** Developer\
**Created:** [December 23, 2022, 9:19pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776 "2022-12-23T21:19:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lancheros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/l/c2a13f/32.png) [@lancheros](https://discuss.tryton.org/u/lancheros)\
**Post date:** [December 23, 2022, 9:19pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/1 "2022-12-23T21:19:35Z")

</div>

Agradezco si me pueden ayudar a identificar el origen del siguiente error:

```auto
Traceback (most recent call last):
  File "/usr/local/lib/python37/dist-packages/trytond/wsgipy", line 117, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 47, in rpc
    request, database_name, *requestrpc_params)
  File "/usr/local/lib/python37/dist-packages/trytond/wsgipy", line 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/wrapperspy", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 180, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/usr/local/lib/python37/dist-packages/trytond/wizard/wizardpy", line 313, in execute
    return wizard_execute(state_name)
  File "/usr/local/lib/python37/dist-packages/trytond/wizard/wizardpy", line 336, in _execute
    action = stateget_action()
  File "/usr/local/lib/python37/dist-packages/trytond/wizard/wizardpy", line 182, in get_action
    action_report = action_reports[0]
IndexError: list index out of range

```

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [December 23, 2022, 11:46pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/2 "2022-12-23T23:46:03Z")

</div>

The report name define on the wizard `StateReport` is not registered in the `ir.action.report` model.

---

<div class="post-metadata">

**Author:** ![lancheros](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/l/c2a13f/32.png) [@lancheros](https://discuss.tryton.org/u/lancheros)\
**Post date:** [January 3, 2023, 4:51pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/3 "2023-01-03T16:51:03Z")

</div>

Reviso el módulo que define el reporte que está en el `StateReport` y es el mismo del asistente, reviso el `init` y allí también está incluido. ¿Qué debería hacer? ¿Reinstalar el módulo?

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [January 3, 2023, 4:53pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/4 "2023-01-03T16:53:00Z")

</div>

You should check the logs of the database update, there should be some warnings.

---

<div class="post-metadata">

**Author:** ![A.yenez](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@A.yenez](https://discuss.tryton.org/u/A.yenez)\
**Post date:** [March 3, 2023, 7:36pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/5 "2023-03-03T19:36:40Z")

</div>

A mi me paso algo similar, y se me soluciono activando el informe que intentas generar desde la ruta administración/interfaz de usuario/acciones/informes y lo activas.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [April 2, 2023, 7:37pm UTC](https://discuss.tryton.org/t/indexerror-when-lauching-a-printing-report-from-a-wizard/5776/6 "2023-04-02T19:37:14Z")

</div>

Closed on April 2, 2023, 7:37pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
