Solve Load and Import Errors
Introduction
This document describes how to solve problems that can occur when opening an app in Studio Pro.
One possible cause of errors that prevent loading is using the Mendix Model SDK to create or edit the app. The Mendix Model SDK can edit your app so its format becomes invalid, which prevents Studio Pro from opening it. When this happens, the following message appears:
This document explains how to determine the origin of these errors and possible ways to solve them.
Determining the Actual Problems
Click Details to show the actual errors that occurred while loading your app:
These detailed messages tell you the following:
- The module and document where the error occurred (for example, the domain model of the module Transportation)
- The model element that caused the error (for example, the entity Vehicle)
- What the actual problem is (for example, an index that does not contain any attributes, which is not permitted)
Determining the Origin of Your App
Before trying to solve the problems, discover the origin of the app because someone else may have introduced the errors. Go through the following possibilities:
Is This a Team Server App?
If your app is a Team Server app and you just did a download or update from the server, the problem may have been added in a revision that was recently committed to the Team Server. You can check who made the most recent commit on the Team Server page of your app in Apps.
If the latest change on your branch line was committed by someone other than yourself, please inform the person about the problem.
Did You Obtain the Model from Someone Else?
If you received the model from someone else (for example, as an app package (.mpk) file), they may have created the model with the Mendix Model SDK. Inform them about the problem and ask them for a solution.
Did You Create the App Yourself?
If you created or edited the app yourself, read the next section to find out how to solve the problem.
Solving the Problems
The problems described in this document cannot be solved by editing the app in Studio Pro, because the app file format is invalid in a way that prevents Studio Pro from reading it. This also means the problems were probably not caused by working on the app with Studio Pro.
The most likely cause for these kinds of errors is a faulty script that was run on the Mendix Model SDK. If this is the case, you need to use the SDK to fix the problems. If you created or edited the model yourself using the Mendix Model SDK, carefully read the messages in the error dialog and locate the relevant part of your SDK code. Then change your SDK script to make the app valid again. For information about constructing or altering models with SDK scripts, see the Mendix Model SDK documentation.
Read More
- Clearing Warning Messages in Mendix
- Debugging Java Actions
- Debugging Java actions remotely
- Debugging Microflows and Nanoflows
- Debugging Microflows Remotely
- Finding the Root Cause of Runtime Errors
- Log Levels
- Monitoring Mendix using JMX