Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
KNH
Contributor II
Contributor II

Download Share Point file from Talend "tFileFetch" component

Hi,

I am using "tFileFetch" component to download Share Point files from Talend. I received below error message. 

"Starting job tfilefetch_sharepoint at 14:52 11/02/2025.
[statistics] connecting to socket on port 3661
[statistics] connected
Exception in component tFileFetch_1 (tfilefetch_sharepoint)
java.lang.Exception: Method failed: HTTP/1.1 403 FORBIDDEN
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.tFileFetch_1Process(tfilefetch_sharepoint.java:523)
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.runJobInTOS(tfilefetch_sharepoint.java:1224)
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.main(tfilefetch_sharepoint.java:922)
[FATAL] 14:52:49 dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint- tFileFetch_1 Method failed: HTTP/1.1 403 FORBIDDEN
java.lang.Exception: Method failed: HTTP/1.1 403 FORBIDDEN
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.tFileFetch_1Process(tfilefetch_sharepoint.java:523) [classes/:?]
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.runJobInTOS(tfilefetch_sharepoint.java:1224) [classes/:?]
at dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint.main(tfilefetch_sharepoint.java:922) [classes/:?]
[statistics] disconnected"

 

Here is my configuration setting.

 

khwanyo_0-1739257231195.png

 

 

khwanyo_2-1739257268524.png

 

Can you please advise how to solve this issues?

Thanks you so much in advance.

Labels (1)
1 Solution

Accepted Solutions
KNH
Contributor II
Contributor II
Author

Hi @Dave_Simo ,

Thanks you so much for all the solutions you provided. 

Below are the some points that I figured it out after I tried few difference way. 

1. tFetchFile component is not applicable for SharePoint Online (Office 355) and it is required to used tHttpRequest or tRest component. I am using SharePoint Online and it requires OAuth 2.0, App Permissions, or Modern Authentication, while tFetchFile may not be able to handle this level of authentication.

2. The tFetchFile component is primarily used in Talend for fetching files from various sources, such as FTP, HTTP, or local file systems. However, it is not specifically designed for SharePoint Online (Office 365).

3. SharePoint Online (Office 355) needs token-based authentication. 

5. To connect SharePoint API, We can use either "SharePoint REST API" or "Microsoft Graph API".

6. If you are only working with SharePoint Online, then using the SharePoint REST API with tHttpRequest is the simplest and most efficient way. However, if your Talend project needs to expand beyond SharePoint (e.g., integrating OneDrive or Teams), then Microsoft Graph API is the better long-term choice.

 

 

 

View solution in original post

8 Replies
Dave_Simo
Creator II
Creator II

KNH
Contributor II
Contributor II
Author

Hi @Dave_Simo ,

 

Thanks you so much for your reply. It doesn't provide solution in that link. It only say that we can download file using tFileFetch and tHttpRequest component. 

 

KNH_0-1739264175310.png

 

Dave_Simo
Creator II
Creator II

KNH
Contributor II
Contributor II
Author

Hi @Dave_Simo ,

 

Thanks you so much for your reply. I tried same method like the below link which you provided me.

https://community.qlik.com/t5/Official-Support-Articles/Talend-Studio-How-to-download-a-file-from-Sh...

 

To get URL link from share point folder. I used 2 methods. 

Method 1. 

KNH_1-1739325840937.png

 

 

Method 2

KNH_2-1739325903741.png

 

KNH_4-1739325944746.png

 

Both method doesn't work for me. It gives me same error. 

 

It gives me same error as below.

"[FATAL] 09:55:11 dashboard_test.tfilefetch_sharepoint_0_1.tfilefetch_sharepoint- tFileFetch_2 Method failed: HTTP/1.1 403 FORBIDDEN
java.lang.Exception: Method failed: HTTP/1.1 403 FORBIDDEN"

Could it be lacks of authentication or permissions? I got fully access right for that share point folder. Should I try tHttpRequest component. 

 

I tested below scenario from Talend documents library. It works properly.

https://help.qlik.com/talend/en-US/components/8.0/internet/tfilefetch-tfileinputdelimited-tlogrow-tl...

 

 

KNH
Contributor II
Contributor II
Author

I am not able post to reply the discussion and always disappearing my reply. someone deleting my post?

KNH
Contributor II
Contributor II
Author

Hi @Dave_Simo ,

 

Thanks you so much for your reply. I tried the same method like below link that you provided me. I got same error as before. 

https://community.qlik.com/t5/Official-Support-Articles/Talend-Studio-How-to-download-a-file-from-Sh...

Here is error message for your reference. 

"Exception in component tFileFetch_2 (tfilefetch_sharepoint)
java.lang.Exception: Method failed: HTTP/1.1 403 FORBIDDEN"

Could it be authentication or permissions issues? I got full access right to Share Point file. 

 

Thanks again.

Dave_Simo
Creator II
Creator II

Hello @KNH ,

This one should be better because it shows an example design of the job to use to download a file from SharePoint.

https://community.qlik.com/t5/Design-and-Development/How-to-upload-download-files-to-from-a-SharePoi...

 

Best Regards

KNH
Contributor II
Contributor II
Author

Hi @Dave_Simo ,

Thanks you so much for all the solutions you provided. 

Below are the some points that I figured it out after I tried few difference way. 

1. tFetchFile component is not applicable for SharePoint Online (Office 355) and it is required to used tHttpRequest or tRest component. I am using SharePoint Online and it requires OAuth 2.0, App Permissions, or Modern Authentication, while tFetchFile may not be able to handle this level of authentication.

2. The tFetchFile component is primarily used in Talend for fetching files from various sources, such as FTP, HTTP, or local file systems. However, it is not specifically designed for SharePoint Online (Office 365).

3. SharePoint Online (Office 355) needs token-based authentication. 

5. To connect SharePoint API, We can use either "SharePoint REST API" or "Microsoft Graph API".

6. If you are only working with SharePoint Online, then using the SharePoint REST API with tHttpRequest is the simplest and most efficient way. However, if your Talend project needs to expand beyond SharePoint (e.g., integrating OneDrive or Teams), then Microsoft Graph API is the better long-term choice.