I am trying to replicate article written by Arvind Kushwaha on: Load Data To A SQL Table From SharePoint List Using SSIS.
The scripts compiled without error. However, I am running into the following error at runtime:
Script component has encountered an exception in user code:The 'username' argument is invalid.
Any thought or suggestion will be helpful
Tom Enore
Mayooran NavamanyPosted Jun 20, 2024, 3:13 AM
Hi Tom Enore
Check Credentials:
Verify Script Configuration:
Use Secure Strings:
Test SharePoint Access:
Review Script for Errors:
Logging and Debugging:
Step 1: Check Credentials
Ensure you have the correct username and password.
Step 2: Verify Script Configuration
Open the script component in SSIS and look for the section where the credentials are being used. It might look something like this:
Step 3: Test SharePoint Access
Use a simple console application to test accessing the SharePoint list:
Step 4: Add Logging and Debugging
Add logging statements to capture the values being used:
By following these steps, you should be able to identify where the issue lies and correct the 'username' argument problem.