FAQ

Connection and configuration

The connection test fails, what should I do?

Check the following points:

  1. The NextCloud server URL is correct and accessible over HTTPS
  2. The username is not "dolibarr" (reserved word)
  3. The API key was generated correctly
  4. The BASE folder exists on the NextCloud server

If the test indicates that the remote base directory does not exist, create it manually in NextCloud before running the test again.

How to regenerate the API key?

  1. Clear the API connection key field in the configuration
  2. Save the form
  3. The Generate an API key button becomes active again
  4. Click it and follow the authorization procedure in NextCloud

The message "dolibarr is a reserved word" appears

The identifier "dolibarr" cannot be used as a NextCloud username. Create another dedicated user account on your NextCloud server (for example "dolibarr-sync" or your company name).

Tree and folders

Folders are not created automatically

Automatic creation is triggered:

  • By clicking Create the tree from the DoliDrive tab of a third party or a project
  • By clicking Create all folders for all customers from the configuration page

Check that the tree is correctly defined in the configuration and that the NextCloud user has write rights.

Which substitution variables can I use?

Variable Replacement
__THIRDPARTY_NAME__ Third party (customer) name
__SUPPLIER_NAME__ Supplier name
__BANK_NAME__ Bank account name (if enabled on the account)

These variables work in the tree fields of the main configuration and in the archiving paths.

How to avoid special characters in folder names?

Avoid emojis, double spaces and trailing spaces in folder names. These characters can cause errors when creating the tree on NextCloud.

Archiving

Documents are not archived automatically

Check that:

  1. Archiving is enabled for the relevant document type (Archives tab)
  2. The destination path is filled in
  3. The destination folder exists on NextCloud (or the user has the rights to create it)

A file is too large to be sent by email

The maximum file size is configured in the Configuration tab, Security section (default: 50 MB). Increase this value if necessary, taking into account the limits of your mail server.

Synchronization

How to enable scheduled synchronization?

  1. Go to Home > Setup > Scheduled tasks
  2. Find SyncNextCloudToDolibarr
  3. Enable the task

The synchronization runs by default every 15 minutes.

The NextCloud to Dolibarr synchronization does not work

Check that:

  1. The cron task is enabled
  2. The option to copy files from NextCloud to the Dolibarr DMS is enabled (Linked files tab)
  3. The NextCloud server is accessible from the Dolibarr server

File sharing

When creating the share link, enter a password in the Password protection field. The recipient will have to enter this password to access the file.

How to limit the duration of a share?

When creating or editing the share, set an Expiration date. The link will stop working after that date.