# CrewDoclingSource does not support text files

**URL:** <https://community.crewai.com/t/crewdoclingsource-does-not-support-text-files/3273>\
**Category:** General\
**Tags:** tools\_issues, crewai\
**Created:** [January 27, 2025, 6:15pm UTC](https://community.crewai.com/t/crewdoclingsource-does-not-support-text-files/3273 "2025-01-27T18:15:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darshan\_Ravichandira](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/darshan_ravichandira/32/2067_2.png) [@Darshan\_Ravichandira](https://community.crewai.com/u/Darshan_Ravichandira)\
**Post date:** [January 27, 2025, 6:15pm UTC](https://community.crewai.com/t/crewdoclingsource-does-not-support-text-files/3273/1 "2025-01-27T18:15:59Z")

</div>

The Documentation mentions that CrewDoclingSource supports text files. But I got an error when I tried with it.

This is what the documentation says.

> Default Source class for converting documents to markdown or json  
> This will auto support PDF, DOCX, and TXT, XLSX, Images, and HTML files without any additional dependencies and follows the docling package as the source of truth.

The error I got is

> Error loading content: File format not allowed: knowledge/API Responses - {API} newbies.txt. Supported formats: [\<InputFormat.MD: ‘md’\>, \<InputFormat.ASCIIDOC: ‘asciidoc’\>, \<InputFormat.PDF: ‘pdf’\>, \<InputFormat.DOCX: ‘docx’\>, \<InputFormat.HTML: ‘html’\>, \<InputFormat.IMAGE: ‘image’\>, \<InputFormat.XLSX: ‘xlsx’\>, \<InputFormat.PPTX: ‘pptx’\>]

So I looked into the source code and found no support for text files. So we just have to store it as markdown and use it instead!

```
default_factory=lambda: DocumentConverter(
    allowed_formats=[
        InputFormat.MD,
        InputFormat.ASCIIDOC,
        InputFormat.PDF,
        InputFormat.DOCX,
        InputFormat.HTML,
        InputFormat.IMAGE,
        InputFormat.XLSX,
        InputFormat.PPTX,
    ]
)

```
