base Duplicate error after update
Thank you so much for this calendar update, but there were two issues.
The first one is that even if I activate the Person field, it doesn't show on the calendar, and if I refresh the currently open window, the css breaks. But if I click table again, it comes out well.
The second one is not base duplication. Below is log record.It worked fine before the update.
user docker image: ghcr.io/teableio/teable-ee:latest
2025/04/26 07:25AM 30 pid=158 hostname=b059853ffa7c name=teable req={"id":"e890baf770549c0da0e54a70b4460cc9", "method" : "POST", "url":"/api/base/duplicate", "que ry": {}, "params"': {"®": "api/base/duplicate"}, "remoteAddress":":: ffff:172.25.0.1" ,"remotePort":55993} trace_id=e890baf770549c0da0e54a70b4460cc9 span_id=0d787c8f 9e2ba5bd trace_flags=01 res={"statusCode": 500} err={"type": "Error", "message": "failed with status code 500", "stack":"Error: failed with status code 500\n t onResFinished (/app/node_modules/-pnpm/[email protected]/node_modules/pino-http/logger.js:114:39) \n at ServerResponse. onResponseComplete (/app/node_module s/ .pnpm/[email protected]/node_modules/pino-http/logger.js:177:14)\n at /app/node_modules/-pnpm/@[email protected]_@opentelemetry+api @1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55\n at AsyncLocalStorage. run (node:async_hooks: 33 at AsyncLocalStorageContextManager.with (/app/node_modules/-pnpm/@[email protected]_@[email protected]/node_modules/@ opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js: 33:40) \n at ServerResponse.contextWrapper (/app/node_modules/-pnpm/@opentel [email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:3 at ServerResponse.emit (node: events: 526:35)\n at ServerResponse. emit (node: domain: 488:12) \n at onFinish (node:_http_outgoing: 1005:10) \n allback (node: internal/streams/writable: 608:21)\n at afterWrite (node: internal/streams/writable:553:5)\n at afterWriteTick (node: internal/streams/writa ble: 541:10) \n at process.processTicksAndRejections (node: internal/process/task_queues:81:21)"} responseTime=4038 spanId=0d787c8f9e2ba5bd traceId=e890baf77 0549c0da0e54a70b4460cc9 msg=request errored
@hanalife Hi, thanks for your feedback!
Regarding the user field not being displayed, this is expected behavior — it is shown when you expand the record. We do plan to improve the experience around this in the future. As for the issue where refreshing the page causes the calendar view CSS to break, I couldn't reproduce it on my side. Could you please provide a screen recording or the dataset you were using?
This is screen recording.
https://gofile.io/d/nagMg9
and how about base duplicate? It worked fine before the update.
This is screen recording.
https://gofile.io/d/nagMg9
and how about base duplicate? It worked fine before the update.
Could you please tell me more specific about duplicate' s error. Does it throw error when duplicate without records? If only relative with records. you can export a base then transform .tea to .zip then send me the structure.json. OtherWise, you could sent me the whole .tea file that i could find the problem quickly.
what' more, you can build the same base in teable.io then duplicate to check the problem is causing by localhost relative config. You could export the base and import to teable.io.
The first comment error log I wrote is the log that occurred when I duplicated the base.
I've failed attempts to duplicate without a record, and failed to export and import the base to a tea file. All display the same internal server error.
But I create a new base and if I duplicate it, it succeeds.
However, if I export it as a tea.file from the existing base and import it from the new base, it will fail.
and this is duplicate base -> save as new base error log
an_id=1830f923901670c1 trace_flags=01 context=Timing spanId=1830f923901670c1 traceld=e84394cdc56f637cbefe2327c3a27b70 msg=FieldOpenApiService - createField Execution Time: 227 ms; Heap Usage: 282.83 MB 2025/04/28 09:56AM 50 Cannot destructure property 'name' of 'field[passiveIndex]' as it is undefined. | pid=158 hostname=b059853ffa7c name=teable req={"id":"e84394cdc56f637cbefe2327c3a27b70", "method": "POST", "url":"/api/base/duplicate", "query": (}, "params": {"0": "api/base/duplicate"}, "remoteAddres s":":: ffff:172.25.0.1", "remotePort":49673} trace_id=e84394cdc56f637cbefe2327c3a27b70 span_id=1dfb7260935ee58c trace_flags=01 context=GlobalExceptionFilter url=/api/base/duplicate spanId=1dfb7260935ee58c traceId=e84394cdc56f637cbefe2327c3a27b70 msg=TypeError: Cannot destructure property 'name' of 'fi eld [passiveIndex]' as it is undefined. at FieldDuplicateService.createCommonLinkFields (/app/enterprise/backend-ee/dist/index.js:104384:21) at async FieldDuplicateService.createLinkFields (/app/enterprise/backend-ee/dist/index.js: 104233:9) at async BaseImportService.createFields (/app/enterprise/backend-ee/dist/index.js:143640:9) at async BaseImportService.createTables (/app/enterprise/backend-ee/dist/index.js:143610:49) at async BaseImportService.createBaseStructure (/app/enterprise/backend-ee/dist/index.js:143587:62) at async BaseImportService.createBaseStructure (/app/enterprise/backend-ee/dist/index.js:201839:24) at async BaseDuplicateService.duplicateStructure (/app/enterprise/backend-ee/dist/index.js:107604:71) at async BaseDuplicateService.duplicateBase (/app/enterprise/backend-ee/dist/index.js:107516:61) at async prismaService.stx.timeout (/app/enterprise/backend-ee/dist/index.js: 155503:20) at async /app/community/packages/db-main-prisma/dist/prisma.service.js:89:28 at async Proxy-_transactionWithCallback (/app/node_modules/-pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:130:7984) at async /app/community/packages/db-main-prisma/dist/prisma.service.js:82:22 at async Proxy.$tx (/app/community/packages/db-main-prisma/dist/prisma.service.js:81:9) at async BaseService.duplicateBase (/app/enterprise/backend-ee/dist/index.js: 155502:16) at async BaseController.duplicateBase (/app/enterprise/backend-ee/dist/index.js:204658:16) 2025/04/28 09:56AM 30 pid=158 hostname=b059853ffa7c name=teable req=f"id":"€84394cdc56f637cbefe2327c3a27b70", "method": "POST", "url":"/api/base/duplicate", "query": (), "params": {"®": "api/base/duplicate"}, "remoteAddress":":: ffff:172.25.0.1", "remotePort": 49673} trace_id=e84394cdc56f637cbefe2327c3a27b70 sp an_id=1dfb7260935ee58c trace_flags=01 res={"statusCode":500} err={"type":"Error", "message":"failed with status code 500", "stack":"Error: failed with status code 500\n at onResFinished (/app/node_modules/.pnpm/[email protected]/node_modules/pino-http/logger.js:114:39)\n at ServerResponse.onRespon seComplete (/app/node_modules/.pnpm/[email protected]/node_modules/pino-http/logger.js:177:14)\n at /app/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55\n at AsyncLocalStorage. run (node:async_hooks:335:14) \n at AsyncLocalStorageContextManager.with (/app/node_modules/-pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)\n at ServerR esponse.contextWrapper (/app/node_modules/•pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)\n at ServerResponse.emit (node:events:526:35)\n at ServerResponse.emit (node:d omain: 488:12)\n at onFinish (node:_http_outgoing: 1005:10) \n at callback (node: internal/streams/writable:608:21)\n at afterWrite (node: internal/streams/writable:553:5)\n at afterWriteTick (node: internal/streams/writable:541:10)\n at process.processTicksAndRejections (node: internal/proc ess/task_queues:81:21)"} responseTime=3935 spanId=1dfb7260935ee58c traceId=e84394cdc56f637cbefe2327c3a27b70 msg=request errored
so I think Verification of input data: logic modified to handle case where passiveIndex is missing from req.body of /api/base/duplicate request. Example: if (!field.passiveIndex) { /* Default setting or skip */ }
Database Check: Verify that the passiveIndex is set correctly in the field table of the table to be duplicated. Example: SELECT * FROM Field WHERE passiveIndex IS NULL;
The first comment error log I wrote is the log that occurred when I duplicated the base.
I've failed attempts to duplicate without a record, and failed to export and import the base to a tea file. All display the same internal server error.
But I create a new base and if I duplicate it, it succeeds.
However, if I export it as a tea.file from the existing base and import it from the new base, it will fail.
and this is duplicate base -> save as new base error log
an_id=1830f923901670c1 trace_flags=01 context=Timing spanId=1830f923901670c1 traceld=e84394cdc56f637cbefe2327c3a27b70 msg=FieldOpenApiService - createField Execution Time: 227 ms; Heap Usage: 282.83 MB 2025/04/28 09:56AM 50 Cannot destructure property 'name' of 'field[passiveIndex]' as it is undefined. | pid=158 hostname=b059853ffa7c name=teable req={"id":"e84394cdc56f637cbefe2327c3a27b70", "method": "POST", "url":"/api/base/duplicate", "query": (}, "params": {"0": "api/base/duplicate"}, "remoteAddres s":":: ffff:172.25.0.1", "remotePort":49673} trace_id=e84394cdc56f637cbefe2327c3a27b70 span_id=1dfb7260935ee58c trace_flags=01 context=GlobalExceptionFilter url=/api/base/duplicate spanId=1dfb7260935ee58c traceId=e84394cdc56f637cbefe2327c3a27b70 msg=TypeError: Cannot destructure property 'name' of 'fi eld [passiveIndex]' as it is undefined. at FieldDuplicateService.createCommonLinkFields (/app/enterprise/backend-ee/dist/index.js:104384:21) at async FieldDuplicateService.createLinkFields (/app/enterprise/backend-ee/dist/index.js: 104233:9) at async BaseImportService.createFields (/app/enterprise/backend-ee/dist/index.js:143640:9) at async BaseImportService.createTables (/app/enterprise/backend-ee/dist/index.js:143610:49) at async BaseImportService.createBaseStructure (/app/enterprise/backend-ee/dist/index.js:143587:62) at async BaseImportService.createBaseStructure (/app/enterprise/backend-ee/dist/index.js:201839:24) at async BaseDuplicateService.duplicateStructure (/app/enterprise/backend-ee/dist/index.js:107604:71) at async BaseDuplicateService.duplicateBase (/app/enterprise/backend-ee/dist/index.js:107516:61) at async prismaService.stx.timeout (/app/enterprise/backend-ee/dist/index.js: 155503:20) at async /app/community/packages/db-main-prisma/dist/prisma.service.js:89:28 at async Proxy-_transactionWithCallback (/app/node_modules/-pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:130:7984) at async /app/community/packages/db-main-prisma/dist/prisma.service.js:82:22 at async Proxy.$tx (/app/community/packages/db-main-prisma/dist/prisma.service.js:81:9) at async BaseService.duplicateBase (/app/enterprise/backend-ee/dist/index.js: 155502:16) at async BaseController.duplicateBase (/app/enterprise/backend-ee/dist/index.js:204658:16) 2025/04/28 09:56AM 30 pid=158 hostname=b059853ffa7c name=teable req=f"id":"€84394cdc56f637cbefe2327c3a27b70", "method": "POST", "url":"/api/base/duplicate", "query": (), "params": {"®": "api/base/duplicate"}, "remoteAddress":":: ffff:172.25.0.1", "remotePort": 49673} trace_id=e84394cdc56f637cbefe2327c3a27b70 sp an_id=1dfb7260935ee58c trace_flags=01 res={"statusCode":500} err={"type":"Error", "message":"failed with status code 500", "stack":"Error: failed with status code 500\n at onResFinished (/app/node_modules/.pnpm/[email protected]/node_modules/pino-http/logger.js:114:39)\n at ServerResponse.onRespon seComplete (/app/node_modules/.pnpm/[email protected]/node_modules/pino-http/logger.js:177:14)\n at /app/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55\n at AsyncLocalStorage. run (node:async_hooks:335:14) \n at AsyncLocalStorageContextManager.with (/app/node_modules/-pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)\n at ServerR esponse.contextWrapper (/app/node_modules/•pnpm/@[email protected]_@[email protected]/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)\n at ServerResponse.emit (node:events:526:35)\n at ServerResponse.emit (node:d omain: 488:12)\n at onFinish (node:_http_outgoing: 1005:10) \n at callback (node: internal/streams/writable:608:21)\n at afterWrite (node: internal/streams/writable:553:5)\n at afterWriteTick (node: internal/streams/writable:541:10)\n at process.processTicksAndRejections (node: internal/proc ess/task_queues:81:21)"} responseTime=3935 spanId=1dfb7260935ee58c traceId=e84394cdc56f637cbefe2327c3a27b70 msg=request erroredso I think Verification of input data: logic modified to handle case where passiveIndex is missing from req.body of /api/base/duplicate request. Example: if (!field.passiveIndex) { /* Default setting or skip */ }
Database Check: Verify that the passiveIndex is set correctly in the field table of the table to be duplicated. Example: SELECT * FROM Field WHERE passiveIndex IS NULL;
I got it, it probably causing by two-way link field, but i am very curious about your field config. Could you share your old base export structure without others (if you would like, you could tranform .tea to .zip then send me the structure.json).