AIF - Wrong field ID in the key data container in entity key

“Wrong field ID in the key data container in entity key”-This error message from the AIF in Ax 2012

I got this error while generating the XML for data exposing to third party tool, I did this using AIF wizard.I used the query where main datasource is prodtable and inventdim table for exposing production order detail through XML.

Any help is appriciable…