OtterMind/Chat2DB · error · BusinessException

file.type.unsupported

file.type.unsupported

Error message

file.type.unsupported

What it means

Error "file.type.unsupported" thrown in OtterMind/Chat2DB.

Source

Thrown at chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/file/ConfigFileTypeEnum.java:17

package ai.chat2db.community.domain.api.enums.file;

import ai.chat2db.community.tools.exception.BusinessException;
import org.apache.commons.lang3.StringUtils;

public enum ConfigFileTypeEnum {
    NCX,
    DBP,
    JSON;

    public static ConfigFileTypeEnum fromExtension(String extension) {
        for (ConfigFileTypeEnum type : values()) {
            if (StringUtils.equalsIgnoreCase(type.name(), extension)) {
                return type;
            }
        }
        throw new BusinessException("file.type.unsupported");
    }
}

View on GitHub (pinned to 5ee1e990e7)

Solutions

  1. Use a file whose extension maps to a supported ConfigFileTypeEnum value.
  2. Rename or convert the file to a supported config format before uploading.

When it happens

Trigger: A config file was uploaded or referenced whose type does not match any supported enum entry.

Common situations: See trigger scenarios.


AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14). Data as JSON: /api/errors/02ae92ee1066f924. Report an issue: GitHub.