Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
KrishnaMoola
Regular Visitor

increase file size

Hi There, Within fabric I am using metadata driven framework and creating log files (.txt). This is a dynamic framework to populate multiple tables and writes into log file to indicate what each step is doing and also to indicate where failure as occured (if any). The log file currently works fine if the filesize is upto100kb but if the filesize is more than 100KB then nothing is written after the filesize reaches 100KB. How to increase the filesize ?

1 ACCEPTED SOLUTION
Olufemi7
Solution Sage
Solution Sage

Hello @KrishnaMoola

 

This is expected behavior. In Microsoft Fabric, dbutils.fs.put() has a hard limit of 100 KB per write and is intended only for small files such as configuration or metadata. When the file size exceeds this limit, no further content is written. The limit cannot be increased.

Microsoft documentation

Recommended approach
Use Spark DataFrame or RDD writes (or log to a Lakehouse table) to handle larger or growing log files, as these scale without file-size limitations

View solution in original post

5 REPLIES 5
v-aatheeque
Community Support
Community Support

Hi @KrishnaMoola 

We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know.

Hi @KrishnaMoola 

Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.

Olufemi7
Solution Sage
Solution Sage

Hello @KrishnaMoola

 

This is expected behavior. In Microsoft Fabric, dbutils.fs.put() has a hard limit of 100 KB per write and is intended only for small files such as configuration or metadata. When the file size exceeds this limit, no further content is written. The limit cannot be increased.

Microsoft documentation

Recommended approach
Use Spark DataFrame or RDD writes (or log to a Lakehouse table) to handle larger or growing log files, as these scale without file-size limitations

bariscihan
Resolver II
Resolver II

This behavior is not something that can be fixed by increasing a configurable file size limit. It is a limitation of how Microsoft Fabric handles file writes in OneLake, especially for append-style operations on text files.

In Fabric, continuously appending to a single .txt file is not a supported or reliable pattern. While small append operations may work initially, once the file grows beyond a certain size (around 100 KB in this case), further writes can silently fail without throwing an error. This is expected behavior due to the underlying storage and write semantics rather than a user-side configuration issue.

There is no setting in Fabric to increase this limit.

Recommended workarounds are:

  1. Avoid a single growing log file
    Instead of appending to one .txt file, generate multiple smaller log files (for example, per pipeline run, per batch, or per timestamp). This aligns with Fabric and OneLake design principles.

  2. Use overwrite instead of append
    If a single file is required, read the existing content, append new log entries in memory, and overwrite the file entirely. Overwrite operations are more stable than append operations in Fabric.

  3. Use a table-based logging approach (best practice)
    Store logs in a Lakehouse or Delta table with columns such as:

    • Timestamp

    • Pipeline / Process name

    • Step name

    • Log level

    • Message

    • Run ID

    This approach removes file size limitations, supports querying and monitoring, and is the recommended enterprise logging pattern in Fabric.

In summary, Fabric is not designed for application-style, continuously growing text log files. The most stable and scalable solution is to switch to partitioned log files or table-based logging rather than trying to increase the file size of a single .txt log.

I have already done all the development and now need to make lot of changes to convert into a table. It would have been good if we had the option to increase the filesize then it would have been good.

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.