title: Issue while migrating Classic pipeline using AzurePipelineProcessor
body: <p>I am trying to migrate the classic build pipeline from one Azure DevOps organization to another, I get an error because of the mismatch in the id of the service connection</p>
  <p>Error Message</p>
  <p>[07:39:31 ERR] Error migrating BuildDefinition: RnL_Modernization. Please migrate it manually.
  Url: POST <a href="https://dev.azure.com/Unisys-Sandbox//BPS-Remittance-and-Lockbox-NextGen/_apis/build/definitions/" rel="nofollow noreferrer">https://dev.azure.com/Unisys-Sandbox//BPS-Remittance-and-Lockbox-NextGen/_apis/build/definitions/</a>
  {&quot;$id&quot;:&quot;1&quot;,&quot;innerException&quot;:null,&quot;message&quot;:&quot;The pipeline is not valid. Job Phase_1: Step input SonarQube references service connection c5aeac57-e3ce-45ac-a0d7-9ff582d26635 which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to <a href="https://aka.ms/yamlauthz" rel="nofollow noreferrer">https://aka.ms/yamlauthz</a>. Job Phase_1: Step input SonarQube references service connection c5aeac57-e3ce-45ac-a0d7-9ff582d26635 which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to <a href="https://aka.ms/yamlauthz.%22,%22typeName%22:%22Microsoft.TeamFoundation.DistributedTask.Pipelines.PipelineValidationException" rel="nofollow noreferrer">https://aka.ms/yamlauthz.&quot;,&quot;typeName&quot;:&quot;Microsoft.TeamFoundation.DistributedTask.Pipelines.PipelineValidationException</a>, Microsoft.TeamFoundation.DistributedTask.WebApi&quot;,&quot;typeKey&quot;:&quot;PipelineValidationException&quot;,&quot;errorCode&quot;:0,&quot;eventId&quot;:3000}
  [07:39:31 INF] 0 of 1 BuildDefinition(s) got migrated..</p>
  <p>My config file</p>
  <p>{
  &quot;$type&quot;: &quot;AzureDevOpsPipelineProcessorOptions&quot;,
  &quot;Enabled&quot;: true,
  &quot;MigrateBuildPipelines&quot;: true,
  &quot;MigrateReleasePipelines&quot;: true,
  &quot;MigrateTaskGroups&quot;: true,
  &quot;MigrateVariableGroups&quot;: true,
  &quot;MigrateServiceConnections&quot;: true,
  &quot;BuildPipelines&quot;: [ &quot;RnL_Modernization&quot; ],
  &quot;ReleasePipelines&quot;: null,
  &quot;ProcessorEnrichers&quot;: null,
  &quot;RefName&quot;: null,
  &quot;SourceName&quot;: &quot;AzurePipelineSource&quot;,
  &quot;TargetName&quot;: &quot;AzurePipelineTarget&quot;,
  &quot;RepositoryNameMaps&quot;:{
  &quot;eShopOnWeb&quot;:&quot;eShopOnWeb&quot;,
  &quot;AKS&quot;:&quot;AKS&quot;
  }
  }</p>
  <p>The error appears to be a mismatch in the ID of the service connection in the source and target project. When service connection is created in the target project the ID is autogenerated which is not matching with the source</p>
  <p>Any help on this is appreciated</p>