When trying to deploy a service group or activate an AIF service you may receive the error: ‘The schema was not found for the document ‘AifEntityKeyPage’ in port XXXXX‘
The problem should be fixable by re-initialising the AIF system. This can be done by creating a new job and running the following script.
select forupdate firstonly globalSettings;
globalSettings.AifInitialized = NoYes::no;
After you have run the script, try re-deploying the service group and activating the AIF service.