FAQ
Connection and configuration
The connection test fails, what should I do?
Check the following points:
- The NextCloud server URL is correct and accessible over HTTPS
- The username is not "dolibarr" (reserved word)
- The API key was generated correctly
- 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?
- Clear the API connection key field in the configuration
- Save the form
- The Generate an API key button becomes active again
- 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:
- Archiving is enabled for the relevant document type (Archives tab)
- The destination path is filled in
- 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?
- Go to Home > Setup > Scheduled tasks
- Find SyncNextCloudToDolibarr
- Enable the task
The synchronization runs by default every 15 minutes.
The NextCloud to Dolibarr synchronization does not work
Check that:
- The cron task is enabled
- The option to copy files from NextCloud to the Dolibarr DMS is enabled (Linked files tab)
- The NextCloud server is accessible from the Dolibarr server
File sharing
How to protect a share link?
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.