Loading

CloudHub cannot find files inside application but Studio can

Date de publication: Aug 1, 2025
Résolution

SYMPTOM

While deploying a CloudHub application, you notice it is unable to find certain files inside your project. Errors may include "Couldn't find resource" messages and "ResourceNotFoundException" or "InitialisationException" exceptions.

However, the application works fine when tested on Anypoint Studio, and all files can be successfully loaded.

CAUSE

This is related with CloudHub not being able to resolve and find your specified files. The cause could be one of the following:

1. Your file path was specified with backslashes (\) instead of slashes (/), for instance, because you are testing your application on Windows.

2. You have some component which requires absolute file paths to find the proper files.

SOLUTION

Please apply the correct solution according to the problems described above:

1. Change all backslashes (\) for slashes (/) inside your file paths.

2. Specify an absolute file path for your file following the next article: Cloudhub path for connectors / processors that require absolute path.

Numéro d’article de la base de connaissances

001123099

 
Chargement
Salesforce Help | Article