File access, credentials, and native operations

File-access failures occur during database connection or schema operations. Prompt your coding agent to report structured error codes alongside FileMaker database error numbers.

File unreachable

Verify that target connection paths in adk.json match database locations:

  • Closed local files: Use valid absolute paths or project-relative paths (tilde ~ paths are not expanded).

  • Open local files: Must have FileMaker network sharing enabled before independent processes can connect.

  • Hosted files: Require a valid fmnet://<host>/<FileName> network address. Files on FileMaker Server also require version 26.1.1 or later with Allow ADK Connections turned on.

Host does not allow ADK connections (error 1640)

FileMaker error 1640 (CLI error adk_connections_disabled) indicates that the file is hosted on FileMaker Server 26.1.1 or later, but Allow ADK Connections is turned off. A server administrator must turn on Allow ADK Connections on the server. The change takes effect immediately without restarting the Database Server. See Work with hosted files.

Host version unsupported (error 20604)

CLI error host_version_unsupported (FileMaker error 20604) indicates that the target file is hosted on a version of FileMaker Server earlier than 26.1.1. Upgrade the server to FileMaker Server 26.1.1 or later, and turn on Allow ADK Connections.

Authentication failed (error 212)

FileMaker error 212 indicates invalid credentials. Confirm account credentials and assigned privilege sets. Allow ADK to open the native credential dialog rather than passing passwords via command-line arguments or chat prompts.

If the file is hosted on FileMaker Cloud, sign-in fails even with a valid Full Access password. FileMaker Cloud requires Claris ID, which ADK does not support. Host the file on FileMaker Server 26.1.1 or later.

Repeated failed login attempts can trigger temporary FileMaker account lockouts.

Permission denied (error 207)

FileMaker error 207 indicates the authenticated account lacks schema modification privileges. Native schema, script, and layout operations require an account assigned to the [Full Access] privilege set (including dry-run checks).

Schema locked (error 303)

FileMaker error 303 indicates another session holds a schema lock. Close Manage Database, the relationships graph, or open script editing windows in FileMaker Pro, then retry the operation. If a lock is encountered during batch execution, the batch transaction rolls back automatically.

Unsupported operations

An unsupported-operation response indicates the requested feature is not currently exposed via the filemaker CLI. Review documented capabilities and boundaries in Capabilities and limitations.