fix: Handle Notion linked database errors (#9429)

This commit is contained in:
Hemachandar authored and GitHub committed 2025-06-11 09:10:00 -04:00
1 parent 276ca1bbf2
commit c9f25546e8
1 file changed
+4 -1
@@ -137,7 +137,10 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic
// Skip this page/database if it's not found or not accessible
if (
error.code === APIErrorCode.ObjectNotFound ||
error.code === APIErrorCode.Unauthorized
error.code === APIErrorCode.Unauthorized ||
error.message.includes(
"Database with ID is a linked database. Database retrievals do not support linked databases"
)
) {
Logger.warn(
`Skipping Notion ${