Skip to main content
Question

Streamlit app error File out of specification: Repetition level must be defined for a primitive type


A Streamlit app that happily runs locally fails when deployed to CDF.

The line `st.dataframe([{‘key’: ‘value’, ...}])` produces this error. Not every time, but once the error happens, it does not recover and keeps showing this error even though the app reruns to show updated data.

Error: External format error: File out of specification: Repetition level must be defined for a primitive type

Do you have a workaround?

It is a simple data set really just string key-value pairs. When it works, it looks like this:
 

Contact me and I will share the URL of the deployed streamlit app.

3 replies

Lars Moastuen
Seasoned Practitioner
  • Seasoned Practitioner
  • 71 replies
  • April 9, 2025

Thank you for reaching out, ​@Jan Dolejsi.

Are you able to share a minimal example of this behaviour?  Note that apps can be exported from the app overview:

 


  • Author
  • Active
  • 3 replies
  • April 9, 2025

Lars, I will build the repro. Was hoping that other people have seen this kind of an error (or the error message could be simply looked up in the source code of  cognite-stlite). No free lunch, I guess.


  • Author
  • Active
  • 3 replies
  • April 13, 2025

No time to build the repro so far. 
But noticed that if I switch the st.dataframe to st.editor (i.e. with all columns disabled), the issue happens far less frequently. It still does though.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings