Forum Discussion
SSIS package and modern authentication
We are currently migrated from Project Server 2010 to Project Online. Part of this migration, we want to replicate Project Online Reporting Data to a local SQL Server database in order to reuse SSRS reports already developed and facilitate the migration.
It is planned to follow Microsoft official procedure to replicate data using the OData protocol and SSIS package.
https://docs.microsoft.com/en-us/previous-versions/office/project-odata/dn720853(v=office.15)
While testing the procedure, we were unable to open a connection to our PWA using the OData source connection manager from Visual Studio – SQL Server Data Tools.
We received the following error message:
“The remote server returned an error: (401) Unauthorized. (System)”
After troubleshooting, we found that the connection was blocked due to a parameter in our tenant. The parameter “SharePoint Admin Center > Device Access > Control access from apps that don’t use modern authentication” is set to “Block”.
Changing this parameter, we are able to access our PWA without any issues.
However and for security reason, we don’t want to change this parameter and allow connections using non-modern authentication. Can you please propose another workaround?
Thank you in advance
5 Replies
- donnie027Copper Contributor
Did you ever get this figured out? I'm currently trying to set up a connection between SSIS ODataSource and our SQL server, but our admin is wanting to find a solution with modern authentication. Axel_Lemaitre1
- tarunraghu55Copper Contributor
hi donnie027 , According to this article
https://docs.microsoft.com/en-us/sql/integration-services/connection-manager/odata-connection-manager?view=sql-server-ver15, ODataSource does not support modern authentication. I would suggest using Microsoft Flow in SPO to export Sharepoint List to Excel (shared path) and then import the Excel into SSIS.
- SAIDULU333Copper Contributorhttps://techcommunity.microsoft.com/t5/user/viewprofilepage/user-id/744323
Hi tarunraghu55 ,
Currently we are connecting basic authentication and It's need to change share point connection from basic to modern authentication, You said OData Source doesn't support and suggest as as export SharePoint list to excel.
Could you please provide the details how it works and how is connect that SP list to excel.
Thanks,
Sai