Overview
When trying to install an application or license into a vault, the following error may be seen:
DlgClientApplications.cpp, 539, The structure of the application is invalid. (0x800408E2) Item_DocumentVault.cpp, 1743, The structure of the application is invalid. (0x800408E2) RPCMethodCallWithRetry.h, 153, The structure of the application is invalid. (0x800408E2) RPCMethodCallWithRetry.h, 153, The structure of the application is invalid. (0x800408E2) RPCClientScript.cpp, 926, The structure of the application is invalid. (0x800408E2) RPCClientScript.cpp, 381, The structure of the application is invalid. (0x800408E2) RPCClientScriptHelper.cpp, 639, The structure of the application is invalid. (0x800408E2) RPCClientScriptHelper.cpp, 914, The structure of the application is invalid. (0x800408E2) RPCClientScriptHelper.cpp, 914, The structure of the application is invalid. (Missing application definition file or too new schema version.) (0x800408E2) AppDefParser.cpp, 81, The structure of the application is invalid. (Missing application definition file or too new schema version.) (0x800408E2) (M-Files <version> <datetime stamp>)
Solution
There may be one of several solutions to this issue so please make sure there is a comprehensive understanding of applications and licenses before performing any actions. Make sure any actions taken are carefully documented to know which path to follow.
Installing an application
If this error is seen when installing an application, it means the application either:
Doesn't have the required structure to be installed in this vault. If this is the case, please reach out to the creator of this vault application as it may not meet the requirements to be used as an M-Files vault application. This applies mostly to self-created or third-party applications.
OR
It means the system is being pointed to a file that is not a valid vault application.
For instance, the Compliance Kit was downloaded from the M-Files catalog
https://catalog.m-files.com/shop/compliance-kit/
It comes as a zip file that contains the vault application and two PDFs. The vault application has an extension of .MFAPPX. The file must be unzipped, and the installation must be pointed at the MFAPPX file. If the install is pointed at the top-level ZIP file, the above error will be shown.
There are instances where the installer can be pointed directly at a ZIP file as the MFAPPX file extension is really just a ZIP extension rename, but it's best to make sure a MFAPPX file exists and point at that.
Installing a license
If a license is trying to be installed, it would be a different process. Using the Install button is not the correct route and would produce the error seen above.
For the license (.LIC) files, the zip file needs to be unzipped first. Then take each license and apply it to the correct application in the vault. The applications can be viewed by right-clicking the vault name from the M-Files Admin --> Applications.
Then select one of the applications and click License. Then click the Install License button and point it to the correct license (.LIC) file associated with that application.
