jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
27 stars 18 forks source link

TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity #62

Closed rfrcarvalho closed 6 years ago

rfrcarvalho commented 6 years ago

Currently we have a problem where everything works when a user schedules a build but the Nightly builds fail with: "##[error]System.Management.Automation.MethodInvocationException: Exception calling "CheckIn" with "1" argument(s): "TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity." ---> Microsoft.TeamFoundation.VersionControl.Client.IdentityNotFoundException: TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity. ---> System.Web.Services.Protocols.SoapException: TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity."

The GetSources step works fine, so the user must have permissions to get the source code, but somehow when Checking In the code changes, this happens.

Am I doing something wrong?

jessehouwing commented 6 years ago

This is why we have exposed the author field. I still haven't been able to diagnose the issue behind this problem, but by overriding the author field or leaving it empty will solve the issue.

This may cause the author to be the system identity and not the user triggering the build, but I suspect this is what you want anyway.

On 14 Mar 2018 18:11, "rfrcarvalho" notifications@github.com wrote:

Currently we have a problem where everything works when a user schedules a build but the Nightly builds fail with: "##[error]System.Management.Automation.MethodInvocationException: Exception calling "CheckIn" with "1" argument(s): "TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity." ---> Microsoft.TeamFoundation.VersionControl.Client.IdentityNotFoundException: TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity. ---> System.Web.Services.Protocols.SoapException: TF14045: The identity Microsoft.TeamFoundation.System is not a recognized identity."

The GetSources step works fine, so the user must have permissions to get the source code, but somehow when Checking In the code changes, this happens.

Am I doing something wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS0X1fm7lwfv9QXRrm3uJu8CIIyTNks5teU9UgaJpZM4Sq1Yn .

rfrcarvalho commented 6 years ago

Thanks. Setting it to None solved the problem.