Always a good idea to have a look in the generated XML itself.
For the “ItemGroupDef”, does it have the attribute HasNoData=Yes?
At the end of the ItemGroupDef, is the def:leaf indeed missing? Or is the def:ArchiveLocationID attribute not provided?
You can use a simple tool like NotePad++ to look into the XML of the define.xml.
That will surely help to narrow the problem down.