Skip to content

Commit 4c85053

Browse files
committed
known issues with import_dtable_folder
1 parent 16c6284 commit 4c85053

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

docs/maintenance/base-export.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,33 @@ This command creates:
9494

9595
<!-- md:version 6.0 -->
9696

97-
To import an exported base folder into another group/workspace, use the following command.
97+
To import an exported base folder into another group/workspace, use the following command. The import takes typically much longer than the export.
9898

9999
```bash
100100
seatable.sh python-env /opt/seatable/seatable-server-latest/dtable-web/manage.py import_dtable_folder --workspace-id="<workspace id>" --path="<path to folder>"
101101
```
102102

103-
Replace `<workspace id>` with the ID of the target workspace/group and provide the path to the folder containing the export.
103+
Replace `<workspace id>` with the ID of the target workspace/group and provide the path to the folder containing the export.
104104

105-
After running the command, check that the output indicates a successful import.
105+
!!! success "How to get the workspace id?"
106+
107+
Open any base in the target workspace (group or "My Bases") via the web interface.
108+
Extract the numeric ID from the URL. For example, in `https://cloud.seatable.io/workspace/156522/dtable/Customers/`, the workspace ID is `156522`.
109+
110+
**Important**: The workspace ID is not the group id.
111+
112+
After running the command, check that the output indicates a successful import.
113+
114+
### Known Issues in Version 6.0
115+
116+
!!! danger "Base name missing in database"
117+
118+
In SeaTable version 6.0, the import function has a known bug that prevents bases from being created correctly in the database, leaving the `name` field empty.
119+
This disrupts the web interface for all users with access to the affected workspace.
120+
121+
**Fix**: Manually set a name in the `dtable_db.dtables` table. This resolves the issue immediately.
122+
123+
!!! warning "Avoid spaces and special characters in folder path"
124+
125+
SeaTable exports bases with spaces/special chars (e.g., "CRM and Sales" → `/share/CRM and Sales`), which `import_dtable_folder` rejects.
126+
Rename folders to use only letters, numbers, underscores, or hyphens (e.g., `CRM_and_Sales` or `CRM-Sales`) before importing.

0 commit comments

Comments
 (0)