# Produced apkg has missing did field in JSON

**URL:** <https://forums.ankiweb.net/t/produced-apkg-has-missing-did-field-in-json/14184>\
**Category:** Development\
**Created:** [October 16, 2021, 2:12pm UTC](https://forums.ankiweb.net/t/produced-apkg-has-missing-did-field-in-json/14184 "2021-10-16T14:12:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aftix](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aftix](https://forums.ankiweb.net/u/aftix)\
**Post date:** [October 16, 2021, 2:12pm UTC](https://forums.ankiweb.net/t/produced-apkg-has-missing-did-field-in-json/14184/1 "2021-10-16T14:12:04Z")

</div>

Hello, I am needing to load/save apkg files for my Rust project. Loading is fine, but using the information on [Database Structure · ankidroid/Anki-Android Wiki · GitHub](https://github.com/ankidroid/Anki-Android/wiki/Database-Structure) , anki won’t load my saved apkg. It complains about a missing “did” field in one of the JSON objects in the col table. However, I’ve printed out the JSON and all the objects seem to have a “did” field, as I manually inserted null in cases where it was missing from the input deck. The code is at [GitHub - aftix/acp: Anki Card Parser](https://github.com/aftix/acp)

---

<div class="post-metadata">

**Author:** ![aftix](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@aftix](https://forums.ankiweb.net/u/aftix)\
**Post date:** [October 16, 2021, 2:17pm UTC](https://forums.ankiweb.net/t/produced-apkg-has-missing-did-field-in-json/14184/2 "2021-10-16T14:17:17Z")

</div>

Update: I have fixed this particular problem, but when loading models I now get an error " {info: “1 field required”}"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 3:17am UTC](https://forums.ankiweb.net/t/produced-apkg-has-missing-did-field-in-json/14184/3 "2023-05-01T03:17:07Z")

</div>

Closed on May 1, 2023, 3:17am UTC


