19
Views
12
Comments
redownloading excel file in table error
Question
Application Type
Reactive
Service Studio Version
11.55.14 (Build 64054)
Platform Version
11.33.1 (Build 44835)

i have a function where i can save an excel file cvs or xlx after i save it i can download it as csv or xlx but the problem shows when i restart the site or refresh it when i try downloading it it just download text. is there a way i can fix this? Thanks!

EXCELTYPEv2 (1).oml
2025-11-11 13-17-51
Rajan C

Hi @jesu verso,

              I have reviewed your OML file and could not find any issues in the implementation.

I think the file you uploaded is a plain text file instead of an Excel (.xlsx) or CSV file.

Could you please share a screenshot of the data currently stored in the table?


Note: Make sure the file extension is xlsx or .csv

UserImage.jpg
jesu verso

no sir try refreshing it. the problem when i download the csv or xlsx files it just goes to txt file


UserImage.jpg
jesu verso

here it is sr

2025-11-11 13-17-51
Rajan C

I have verified this by adding a valid CSV file with sample data, and I can download it as a CSV file. 

As @Philip Paolo De Castro suggested, please ensure that you have added a valid file.

I have also attached a sample CSV file so you can try uploading it to your application and check whether it downloads in CSV format.

sample_data.csv
UserImage.jpg
jesu verso

it is sir valid and csv and xlsx only, can you try on the end when you go save the csv file then try to refresh it. check if its still csv.

2025-11-11 13-17-51
Rajan C

Is it possible to share the CSV file which you have uploaded in your application. Because I can upload and check the same at my end.

UserImage.jpg
jesu verso
2025-11-11 13-17-51
Rajan C

Could you please check the file properties of the above files?

2022-07-12 09-55-09
Philip Paolo De Castro

Hi Jesu Verso.

This happens when you are trying to download null values no item to be download (Binary and filename). 

My Suggestion is that 

  • Debug the flow and make sure you have the values to be downloaded.
  • Try to add Loading popup that will be based on the OnAfterFetch of the GetSaveExcels
  • Have a Handler where it will check if the Binary and Filename is null 


UserImage.jpg
jesu verso

yes sir it is null is it possbile to download it base on the file name?

2025-05-31 09-56-11
TheSubuIyer
Champion

You are checking if the file content is Null so that is not an Issue.

This May be a File association issue on your OS or if it's an enterprise PC they may be restrictions on download that can also cause this issue

Please check from another machine.

Please find attached all sample files they all work there is no issue with your code


Sampleexcel (2).xlsx
sample_data (2).csv
sample (1).csv
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.