Hi everybody,
When the users try to create a SEPA vendor payment file in the vendor payment journal form, they get a "XSD schema contains errors. Type 'schemas.microsoft.com/.../sharedtypes:AxdExtType_EmplAccount_RU' is not declared." error message and the file is not created.
I investigated this and found the root cause is that the SharedTypes schema in the AifSchemaStore table does not contain this EDT declaration. I also found the SharedTypes.xsd file in the C:\Program Files\Microsoft Dynamics AX\60\Server\<NAME>\bin\XppIL\AppShare\ServiceGeneration\AifContract folder, does contain the EDT declaration.
So, the golden question is: How can I force AX to update or recreate the SharedTypes schema in the AifSchemaStore table?
I have tried the following without any success, does anybody know the answer to this?
- Full compile with AxBuild.exe, no errors found. All AOSes were stopped during compile.
- Deleted contents from XPPIL folder before full compile.
- Database synchronization.
- Full CIL compile, no errors.
- Restarted the AOS services.
- Refreshed all services to rebuild xsd schemas using AOT\Forms\AifService form.
- Deployed AIFServices group manually from the AOT.
- Restored the deleted C:\Program Files\Microsoft Dynamics AX\60\Server\<NAME>\bin\XppIL\AppShare folder from the backup, restarted AOSes full compile / CIL compile
- Manually configured schema fields, removed the emplaccount_ru field, refreshed schemas etc.
- Registered VendPaymentsService
- Executed the system checklist AIF initialisation manually and in a job (AifSetup::initialize(); and updating the flag to trigger the code)