Skip to content

[error] GeneralException when trying to validate drive id #20

Description

@MaxH-Kelch

Hello,

I am trying to include your task in the release pipeline of my company.
After following your instructions within the Read.Me however, i get this error:

{
"statusCode":401,
"code":"generalException",
"requestId":"94e30c19-c51c-4de9-8ae7-43064bc31174",
"date":"2025-05-05T08:10:10.000Z",
"body":"{
        "code":
	"generalException",
	"message":"General exception while processing",
	"innerError":{
		"date":"2025-05-05T08:10:10",
		"request-id":"94e30c19-c51c-4de9-8ae7-43064bc31174",
		"client-request-id":"f6be9752-0197-7a59-926e-fe1dc89bb47d"
		}
	}"
}

I registered the app via Microsoft Entra Admin Center, and used these values from there:

Image
Image

When using the secret ID instead of the value from the client secret, i get this response:

{
"statusCode":401,
"code":"InvalidAuthenticationToken",
"requestId":"92ff744c-979f-4a3c-b057-b774703de475",
"date":"2025-05-05T08:41:19.000Z",
"body":"{
	"code":"InvalidAuthenticationToken",
	"message":"IDX14100: JWT is not well formed, there are no dots (.).
			   The token needs to be in JWS or JWE Compact Serialization Format. 
			   (JWS): 'EncodedHeader.EncodedPayload.EncodedSignature'. 
			   (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'.",
	"innerError":{
		"date":"2025-05-05T08:41:19",
		"request-id":"92ff744c-979f-4a3c-b057-b774703de475",
		"client-request-id":"71d778c9-fa64-55a1-51b2-7216ab68bd53"
		}
	}"
}

I added these permissions:

Image

The configured task looks like this:

Image

With the YML behind looking like this:

variables:
  AzureTenantID: '***'
  AzureSharePointUploadClientID: '***'

steps:
- task: halliba.az-pipelines-2-sharepoint.az-pipelines-2-sharepoint.az-pipelines-2-sharepoint@0
  displayName: 'Upload files to SharePoint: BDB'
  inputs:
    tenantId: '$(AzureTenantID)'
    clientId: '$(AzureSharePointUploadClientID)'
    clientSecret: '$(AzureSharePointUploadClientID)'
    driveId: 'https://***.sharepoint.com/sites/***/Freigegebene%20Dokumente/Development-Release'
    targetFolder: 'Rel_$(ReleaseVersion)'
    sourceFolder: BDB
    contents: '*/***.exe'
    failOnEmptySource: true

If you have any idea, what i am doing wrong or what i am missing, i would greatly appreciate some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions