15
Views
9
Comments
Solved
Why is my JSON file returning a 404 error while CSS and JS files load correctly in Ou

I have added the following resources to my OutSystems application and set them all as:


Public = Yes

Deploy Action = Deploy to Target Directory


Registered resources:

Resources/css/cssfile.css  

Resources/script/js1.js  

Resources/script/js2.js  

Resources/template/tempfile.json  


Issue:

The CSS and JS files load correctly in the browser without any errors.

However, when I try to access tempfile.json, I receive a 404 Not Found error.


Where in Service Center can I verify whether tempfile.json has been deployed successfully?



Could OutSystems treat .json files differently from .css and .js files?


What could be the reason why only the JSON file is failing to load?

How can I check in Service Center whether this resource has been deployed correctly?

Are there additional settings required to ensure JSON files are accessible like CSS and JS files?

---

All of them used 'Runtime Path'.

And I also tested it directly with the url in the browser, but it was the same.

Only the json file is 404 error.

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

Hi @Traveler Autumn,

                  I downloaded the sample .ssjson file from the CDN and added it to the resource folder. As you mentioned, I am also getting a 404 File Not Found error on the screen.

I believe the file's content is not being displayed on the OutSystems screen for some reason.

As a workaround, I imported the same .ssjson file from my computer into the resource folder and renamed it sample.json instead of sample.ssjson.

By doing this, I was able to see the content in the browser.

  You just rename the file name in service studio not in the actual file which present in your computer.

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

Hi @Traveler Autumn,

          Please try to re-add the json file once again under resource folder and check it.

I have tried the same with my environment and I dont find any issue.

  

UserImage.jpg
TravelerAutumn

Thank you.

I have confirmed the problem I am having now.


See the image.

test.json is verified without any problem

However, spreadJS's form file, spreadjsTest.ssjson, causes a 404 error with the message below.


What is the difference?

I want this form file to be loaded.


[Error message]

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Traveler Autumn , make sure your Deploy Action is set to Deploy to Target Directory.


UserImage.jpg
TravelerAutumn
2026-01-28 16-57-48
Mihai Melencu
Champion

There appears to be a warning related to the spreadJS_Test.ssjson file. Could you please show us the details of the warning?

UserImage.jpg
TravelerAutumn


It's simple.

When I use the path /SpreadJS_TestApp/spreadjsTest.ssjson in my JavaScript code, I get a 404 error. 


Thank you for your attention. 


2026-01-28 16-57-48
Mihai Melencu
Champion

I just tested the .ssjson format, and that’s what’s causing the issue. In OutSystems, you can simply change the file extension from .ssjson to .json. The new filename should be spreadjsTest.json

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

Hi @Traveler Autumn,

                  I downloaded the sample .ssjson file from the CDN and added it to the resource folder. As you mentioned, I am also getting a 404 File Not Found error on the screen.

I believe the file's content is not being displayed on the OutSystems screen for some reason.

As a workaround, I imported the same .ssjson file from my computer into the resource folder and renamed it sample.json instead of sample.ssjson.

By doing this, I was able to see the content in the browser.

  You just rename the file name in service studio not in the actual file which present in your computer.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.