Share point component Could not acquire fresh access token issue

Hi Everyone,

we are using Share point component to gets the files from share point repository.

when we run D_SPOnlineGetFileContent manually by giving File path and Site Name able to get content from this datapage and when the same DP is referred from queue process am getting Could not acquire fresh access token.

Thanks,

Vikram

@Vikky22

are you able to access the MSP GenAI Buddy? Please see if the answer helps you.

“Could not acquire fresh access token” error.

This issue typically occurs due to differences in authentication context between manual execution and queue process execution. When you run the datapage manually, it uses your current user session’s authentication context, which has already been validated. However, when the queue process attempts to access the same datapage, it may be running under a different system context that doesn’t have the necessary authentication tokens cached or configured properly.

Here are some recommendations to resolve this issue:

  1. Verify the Authentication Profile Configuration: Ensure that the SharePoint authentication profile is correctly configured for use in background processes. Run the D_SharePointProfileConfiguration datapage to verify if it can successfully retrieve an access token.
  2. Check Token Expiration and Refresh: Queue processes might be attempting to use expired tokens without proper refresh mechanisms. Ensure your authentication profile has proper token refresh configuration.
  3. Review Queue Process Context: The queue process might be running under a system context with different permissions. Verify that the access group and user context for the queue process has sufficient permissions to access SharePoint resources.
  4. Update Application Context: If you’re using the Knowledge Loader integration, make sure to update the KnowledgeLoader:System access group application context to reflect your implementation application name and version.
  5. Check Certificates and Credentials: If you’re using certificate-based authentication, ensure that the keystore is properly configured and accessible to both manual execution and queue processes.
  6. Override SetSharePointProfile_Extn: Consider overriding the SetSharePointProfile_Extn Data Transform and updating the required configuration values to ensure consistent behavior across different execution contexts.

References:
Authentication 403 error in SharePoint Online component
Troubleshooting Knowledge Loader issues
Configuring SharePoint authentication