My Preview App won't start

Updated for 2024.06, what should I do if the Preview App doesn’t start?

If you cannot start any workspace:

  • The Preview App creates a Database so you need to ensure that your installation folder has the correct Permissions.

  • As the Preview App also builds an index for the database (amongst other tasks) you need to ensure that your system meets the recommended System Requirements

Please note that you need to have enough available RAM and processing power so closing other applications may help.

If you cannot start a workspace that worked previously:

In my case I broke my Preview App by changing a Field Path when data was already present. As a result, I could see the following in the log.

[main                ][ERROR][g.springframework.boot.SpringApplication][u:] - Application run failed
com.mgmtp.a12.dataservices.utils.internal.DataServicesDocumentProblemReporterException: The validation of document of document model 'Person_DM' failed. For the entity instance '/People[1]/DateOfBirth[1]', the corresponding entity was not found in the corresponding document model.

Deleting the database resolved the issue.

It’s also possible to see an invalid model in the logs. For example,

 [main                ][WARN ][model.bulkload.BulkImportProblemReporter][u:] - Error while importing models
java.lang.IllegalArgumentException: Following errors were found while serializing the given document model: Rule with id 'rule_51311': The error condition is empty.

was logged when I ran an invalid workspace.