Resolution:
Restructure your data items so that the OCCURS DEPENDING ON item is the last item in the group.