Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
YacineCh
Contributor III
Contributor III

tFileOutputExcel_1 java.io.IOException: Permission denied

Hi Team,

We have an issue on Talend in generation xlsx files. Before it working fine but this month the job didn't work and we didn't change anythink in the job, bellow the message error :

tFileOutputExcel_1 java.io.IOException: Permission denied
java.lang.RuntimeException: java.io.IOException: Permission denied
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:688) ~[poi-ooxml-4.1.2-20200903124306_modified_talend.jar:4.1.2-20200903124306_modified_talend]

Labels (5)
1 Solution

Accepted Solutions
YacineCh
Contributor III
Contributor III
Author

I found the issue, it was the temporary repository that the POI use to create the temporary excel file in the server. So i change the permission to 777 and it's work. Name of the repository is : tmp/poifiles

View solution in original post

5 Replies
BhuvanaRam
Partner - Contributor II
Partner - Contributor II

Try checking if any File/Folder permission changed during OS patching or any recent system policy updates. 

YacineCh
Contributor III
Contributor III
Author

Hello team,

Thank's for your reply,

When i want to create a csv file it's work without any problem. The issue is just we the excel files. The permission in the folder are 777.

YacineCh
Contributor III
Contributor III
Author

Any one can help please !!

Dave_Simo
Creator
Creator

Hello @YacineCh 

ChatGPT est mon ami, voici ce qu'il en dit :

L'erreur que tu as signifie que le composant tFileOutputExcel_1 de Talend (ou ton application Java) essaie d’écrire dans un fichier, mais le système d’exploitation refuse l'accès pour une raison liée aux droits d’écriture.

Étapes pour résoudre cette erreur :
1. Vérifie le chemin du fichier de sortie
Est-ce que tu écris dans un dossier où tu n’as pas les permissions ?

Par exemple : C:\Program Files\, /root/, ou un dossier réseau restreint.

✔️Solution : essaie d’écrire dans un dossier comme :

Sous Windows : C:\Users\ton_nom\Documents\output.xlsx

Sous Linux/Mac : /home/ton_nom/output.xlsx ou /tmp/output.xlsx

2. Vérifie les permissions du dossier/fichier
Si le fichier ou le dossier cible existe déjà :

Sous Windows :

Clique droit → Propriétés → Sécurité

Vérifie si l’utilisateur qui exécute Talend a les droits d’écriture.

Sous Linux/macOS :

bash
Copier
Modifier
ls -l /chemin/vers/le/fichier.xlsx
Puis :

bash
Copier
Modifier
chmod u+w /chemin/vers/le/fichier.xlsx
3. Fichier déjà ouvert dans Excel
Si tu essaies d’écrire dans un fichier qui est déjà ouvert dans Excel, Windows bloque l'accès en écriture.

✔️Ferme Excel ou tout programme susceptible de bloquer ce fichier.

4. Antivirus / protection système
Certains logiciels de sécurité peuvent bloquer l’écriture dans certains dossiers.

✔️Teste l’écriture dans un autre répertoire pour isoler le problème.

5. Talend exécuté avec des droits insuffisants
Si tu exécutes Talend Studio sans les droits administrateur, il peut être bloqué pour certains chemins.

✔️Essaie de lancer Talend Studio en tant qu’administrateur (clic droit → "Exécuter en tant qu’administrateur").

🛠Exemple de solution dans Talend
Dans ton composant tFileOutputExcel :

Va dans les propriétés.

Modifie le champ "File Name" vers un chemin sûr, comme :

text
Copier
Modifier
"C:/Users/ton_nom/Documents/mon_fichier.xlsx"
Assure-toi que l'option "Create directory if not exists" est cochée.

YacineCh
Contributor III
Contributor III
Author

I found the issue, it was the temporary repository that the POI use to create the temporary excel file in the server. So i change the permission to 777 and it's work. Name of the repository is : tmp/poifiles