# I got You are trying to read records "38665" of "Sesión de asistente" that don't exist anymore with Wizard().execute()

**URL:** https://discuss.tryton.org/t/i-got-you-are-trying-to-read-records-38665-of-sesion-de-asistente-that-dont-exist-anymore-with-wizard-execute/5997
**Category:** Developer
**Created:** [March 5, 2023, 7:29pm UTC](https://discuss.tryton.org/t/i-got-you-are-trying-to-read-records-38665-of-sesion-de-asistente-that-dont-exist-anymore-with-wizard-execute/5997 "2023-03-05T19:29:56Z")
**Posts on this page:** 2
**Page:** 1

<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 5, 2023, 7:29pm UTC](https://discuss.tryton.org/t/i-got-you-are-trying-to-read-records-38665-of-sesion-de-asistente-that-dont-exist-anymore-with-wizard-execute/5997/1 "2023-03-05T19:29:56Z")

</div>

Hi, I’m trying to run a wizard that forces a shipment that comes from a purchase to be drafted, but when I try to run it I get the message:

```auto
  File "/home/yenezz_pcmaster/tryton/fix-proteus2.py", line 193, in <module>
    Wizard('stock.shipment.in.force_draft').execute('force_draft')
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/proteus/ __init__.py", line 1239, in execute
    result = self._proxy.execute(self.session_id, data, self.state,
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/proteus/config.py", line 203, in __call__
    result = rpc.result(meth(*args, **kwargs))
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/wizard/wizard.py", line 306, in execute
    wizard = cls(session_id)
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/wizard/wizard.py", line 355, in __init__
    data = json.loads(session.data, object_hook=JSONDecoder())
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/model/fields/field.py", line 344, in __get__
    return inst. __getattr__ (self.name)
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/model/modelstorage.py", line 1647, in __getattr__
    read_data = self.read(list(index.keys()), list(ffields.keys()))
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/model/modelsql.py", line 792, in read
    cls.__check_domain_rule(
  File "/home/yenezz_pcmaster/tryton/lib/python3.10/site-packages/trytond/model/modelsql.py", line 1270, in __check_domain_rule
    raise AccessError(msg)
trytond.model.modelstorage.AccessError: Está intentando leer los registros "38665" del modelo "Sesión de asistente" que ya no existen. - 

```

I am working with a proteus file, this is the code i am trying to execute.

```auto
compra2 = Compra(5847)#numero; 3872
print(compra2.number)
shipment, = Stock.find([('reference', '=',compra2.number)])
Wizard('stock.shipment.in.force_draft').execute('force_draft')

```

---

<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: [March 6, 2023, 9:58am UTC](https://discuss.tryton.org/t/i-got-you-are-trying-to-read-records-38665-of-sesion-de-asistente-that-dont-exist-anymore-with-wizard-execute/5997/2 "2023-03-06T09:58:08Z")

</div>

I guess the wizard must be run with the shipment as `records`.
