LiveCode for FM Guide Ben Lui

My Data Source is Missing

Updated Jul 05, 2021

LCFM Native can handle using additional FileMaker files as data sources, however it needs them to be added in a specific way and does not yet support the full variety of options offered by FileMaker.

Apps will still compile if there are missing data sources, however the parts of the app which require those data sources to be accessible will not function or will function incorrectly.

If you don't think the compiled app will actually need to use a given missing data source, then you can ignore the warning and continue.

Note: Apps will still compile with missing data sources, and if that particular source is not important to your built app, you can ignore the warning. If it is used by the app however, the app will not function correctly.

Data Source Support

In order to use an external datasource, the solution file for the datasource must be included in the list of solutions when configuring the project.

Additionally, the name of solution file must match the name of the datasource:

LCFM Native will look for a solution added to the project with name (1), and ignores the file path list (2). In this case, LCFM Native will map uses of the datasource named 'ExampleDatasource' to the included solution file with name ExampleDatasource.fmp12.

"Missing Data Source" error

If you get this error, it suggests you have not added the file you want to use as a datasource to the project. If LCFM Native identifies a data source as missing, then this means that it looks like the data source is potentially one which can be used, but it cannot find a solution file in the project matching the name of the data source.

This issue can be resolved by simply including the relevant solution file in the project on the first screen where you are setting up your project, taking care to ensure it is named correctly.

Hosted Data Source

If LCFM Native identifies a data source as missing, then this means it looks like the data source is always hosted on a server and accessed remotely.

LCFM Native does not support this kind of data source, so in order to resolve the problem, you have to fetch the solution file from the server and include it in the project, again ensuring that the solution file is named correctly.

Variable Data Source

If LCFM Native identifies a data source as variable, then this means it looks like the data source is always computed at runtime as the result of the contents of a variable.

LCFM Native does not support this kind of data source, so in order to resolve the problem you must identify what solution file the variable would refer to and include it in the project, again ensuring that the solution file is named correctly.

ODBC Data Source

If LCFM Native identifies a data source as odbc, then this means the data source requires ODBC connections to work.

ODBC data sources are not currently supported in LCFM Native and thus the solution will need to be changed to use an alternative approach.

Previous Article Can't Find my Deploy Certificate for iOS
Next Article License definitions