Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

Posted on by 56

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)

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

    I had exactly the same problem as you and as it turned out, the error was the result of some customization which was probably done for testing purposes. Please check if there are any changes to LedgerJournalTrans.VendBankAccount field and if it's "Visible" property is set to "Yes".

    The result is that the VendBankAccount is included into the schema while registering the service and it should not be, because it does not get through the validation.  

    After restoring it to the default value which is "No", refreshing the query field list, everything works fine again.

  • FO user Profile Picture
    FO user 56 on at
    RE: XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

    Hello Anup,

    I actually merged the SharedTypes schema data in the AifSchemaStore table in the production environment from a working environment. That only temporarily fixed the problem because after the last update of the production environment and restarting the 4 AOSes, AX reverted the SharedTypes schema and problem was back again. I had to repeat the steps to merge the data in the SharedTypes schema again from a working environment.

    That's why I want to know how to force AX to update the SharedType types schema so that the issue is solved properly.

    Thanks.

  • Suggested answer
    RE: XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

    It's like that a recent change in one of the document schema that shares the same fields or different namespace is triggering this. Do you have any environment which is working? You can use dat/def to copy the AIFDocumentSchemaTable and AIFSchemaStore table from working environment and apply to failing as follows:

    (a) First export the tables AIFDocumentSchemaTable,AIFSchemaStore and AIFServices AIF.

    (b) Export two tables AIFDocumentSchemaTable and AIFSchemaStore from a working environment with the same models you have.

    (c) Import the tables into failing environment by NOT deleting existing two tables, but updating them from the backup.

    (d) If this fixes the issue you can compare the 3 tables in working and failing env. Make changes to the service namespaces in the AOT if required. 

  • FO user Profile Picture
    FO user 56 on at
    RE: XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

    Hello Michal,

    Not all, just the production environment. The version is 6.3.3000.111 (application and kernel).

    Thanks.

  • RE: XSD schema contains errors. Type 'http://schemas.microsoft.com/dynamics/2008/01/sharedtypes:AxdExtType_EmplAccount_RU' is not declared.

    Hello Fo,

    Do you face this issue on all environments ? Or is it specific to one ? What is the version of your system ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans