TfsSharedQueryProcessorOptions, Error "Couldn't find a Source EndPoint with SourceName [Source]" #1185
Replies: 8 comments 9 replies
-
Hello rheuttl, Did you ever get this to work? I am trying the similar config with v12 and getting the same error. Unclear to me how to configure the SourceName and TargetName fields (are these URLs, project names or something else?) |
Beta Was this translation helpful? Give feedback.
-
Sourcename/target name refers to configured endpoints at the root of the config.
Sry, yeah those are preview features so not fully documented. So if you configure the correct endpoint type with full config and a name, then you should use that name as the source/target name.
//Ove
On my phone
…________________________________
From: EQDGL ***@***.***>
Sent: Wednesday, July 6, 2022 7:23:32 PM
To: nkdAgility/azure-devops-migration-tools ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [nkdAgility/azure-devops-migration-tools] TfsSharedQueryProcessorOptions, Error "Couldn't find a Source EndPoint with SourceName [Source]" (Discussion #1185)
Thanks, I may have to give up soon as well. I know this is only in "Preview" so I guess not fully documented yet, or maybe I am not running the Preview version whatever that is.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FnkdAgility%2Fazure-devops-migration-tools%2Fdiscussions%2F1185%23discussioncomment-3093766&data=05%7C01%7C%7Cbed6cc6e685442c1c8fa08da5f6bdf4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637927214189190137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5nTPunrcqg45B9bFmE%2FV5ZmBbgx%2Fgluh6hN22FsjOjM%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAECK4AMY5ZX2WPUBKT67JPTVSWXIJANCNFSM5XVXQUIQ&data=05%7C01%7C%7Cbed6cc6e685442c1c8fa08da5f6bdf4e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637927214189190137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=AiHVrepWZeZS8ViKwgjMpXsYVdlqjnpjPzMSI4Lp4wc%3D&reserved=0>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The endpoint type needed is of type TfsEndpoint, so you need to change the in memory type. That means adding more options for that type
{
"TfsEnpoints":
{
"Name":"mySource"
"Organization": url
"project": name
},
{
(Target)
}
Sry this is from reading code on my phone while on vacation so not sure all is correct and stuff is missing, but it is a starting point
//Ove
On my phone
…________________________________
From: EQDGL ***@***.***>
Sent: Wednesday, July 6, 2022 7:56:13 PM
To: nkdAgility/azure-devops-migration-tools ***@***.***>
Cc: Ove Bastiansen ***@***.***>; Comment ***@***.***>
Subject: Re: [nkdAgility/azure-devops-migration-tools] TfsSharedQueryProcessorOptions, Error "Couldn't find a Source EndPoint with SourceName [Source]" (Discussion #1185)
Thanks for the tips! I have tried the following but still get "[ERR] Couldn't find a Source EndPoint with SourceName [MySource]" so I obviously have configured the endpoints incorrectly.
Also I am guessing that the source and target endpoints need to refer to the source and target DevOps projects but that could be wrong too.
"Processors": [
{
"$type": "TfsSharedQueryProcessorOptions",
"Enabled": true,
"PrefixProjectToNodes": true,
"SharedFolderName": "Shared Queries",
"SourceToTargetFieldMappings": null,
"ProcessorEnrichers": null,
"SourceName": "MySource",
"TargetName": "MyTarget"
}
],
"Version": "12.0",
"workaroundForQuerySOAPBugEnabled": false,
"WorkItemTypeDefinition": {
"sourceWorkItemTypeName": "targetWorkItemTypeName"
},
"Endpoints": {
"InMemoryWorkItemEndpoints": [
{
"MySource": "https://ado.mycompany.com/MyCollection/My Source Project Name",
"EndpointEnrichers": null
},
{
"MyTarget": "https://ado.mycompany.com/MyCollection/My Target Project Name",
"EndpointEnrichers": null
}
]
}
}
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FnkdAgility%2Fazure-devops-migration-tools%2Fdiscussions%2F1185%23discussioncomment-3093986&data=05%7C01%7C%7C7b5b08bb8f1e4440b9a608da5f706f45%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637927233790796802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UKnYr53U27C6iWlC8kXPpwc01wQQajheKws%2Byri0F2c%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAECK4AISW7RDWAMLFAEMBMTVSW3C3ANCNFSM5XVXQUIQ&data=05%7C01%7C%7C7b5b08bb8f1e4440b9a608da5f706f45%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637927233790796802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gbUoq76qwvI%2BSKOrhpikVFNYp3j64iQwY%2F0HuxTbAds%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Can you have a look here and see what might work. This is with a different kind of endpoint but should give you pointers on what is needed.
https://github.com/nkdAgility/azure-devops-migration-tools/blob/master/configuration2.json
Sry for not being able to help more
//Ove
On my phone
…________________________________
From: EQDGL ***@***.***>
Sent: Friday, July 8, 2022 7:41:51 PM
To: nkdAgility/azure-devops-migration-tools ***@***.***>
Cc: Ove Bastiansen ***@***.***>; Comment ***@***.***>
Subject: Re: [nkdAgility/azure-devops-migration-tools] TfsSharedQueryProcessorOptions, Error "Couldn't find a Source EndPoint with SourceName [Source]" (Discussion #1185)
Ove,
Firstly, thank you for taking time out of your vacation to respond. I have now tried with the configuration below and but the logs indicate I still have the endpoints configured incorrectly.
"Processors": [
{
"$type": "TfsSharedQueryProcessorOptions",
"Enabled": true,
"PrefixProjectToNodes": true,
"SharedFolderName": "Shared Queries",
"SourceToTargetFieldMappings": null,
"ProcessorEnrichers": null,
"SourceName": "MySource",
"TargetName": "MyTarget"
}
],
"Version": "12.0",
"workaroundForQuerySOAPBugEnabled": false,
"WorkItemTypeDefinition": {
"sourceWorkItemTypeName": "targetWorkItemTypeName"
},
"Endpoints": {
"TfsEndpoints": [
{
"Name": "MySource",
"Organization": "https://ado.mycompany.com/mycollection",
"Project": "My Source Project"
},
{
"Name": "MyTarget",
"Organization": "https://ado.mycompany.com/mycollection",
"Project": "My Target Project"
}
]
}
This is resulting log:
2022-07-08 17:21:59.466 +01:00 [INF] Config Found, creating engine host
2022-07-08 17:22:00.610 +01:00 [INF] Creating Migration Engine 6ea118b4-7cef-43e3-b884-a10815fab323
2022-07-08 17:22:00.633 +01:00 [INF] ProcessorContainer: Of 1 configured Processors only 1 are enabled
2022-07-08 17:22:00.898 +01:00 [INF] ProcessorContainer: Adding Processor TfsSharedQueryProcessor
2022-07-08 17:22:00.920 +01:00 [INF] Processor::Configure
2022-07-08 17:22:00.923 +01:00 [INF] Processor::Configure Processor Type TfsSharedQueryProcessor
2022-07-08 17:22:00.929 +01:00 [INF] Creating endpoint with name MySource
2022-07-08 17:22:00.942 +01:00 [WRN] No Enrichers have been Configured
2022-07-08 17:22:00.944 +01:00 [ERR] In the Processor configuration, specify the SourceName, for example "SourceName" : "mySourceName" and make sure there's an EndPoint with that name
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FnkdAgility%2Fazure-devops-migration-tools%2Fdiscussions%2F1185%23discussioncomment-3109170&data=05%7C01%7C%7C419a5a07aa7a4bf8aaed08da6100c266%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637928953172148475%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Zw4Y6Mt4n1GtZTm5IpIXl2cIprkBn3cDsKsCvAlTPeE%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAECK4AKG35NZ62URD4PON5DVTBK47ANCNFSM5XVXQUIQ&data=05%7C01%7C%7C419a5a07aa7a4bf8aaed08da6100c266%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637928953172148475%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1d4l%2BiJfdMtI5ND7%2FIaWW8UsFH9A9s5VhUOoF5MXNc0%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ove, Success! Thanks again for your help. The main problem was a typo of mine - needs to be I now have Shared Queries migrating. For reference, this is the config that worked for me in the end:
|
Beta Was this translation helpful? Give feedback.
-
Great, happy to help.
Seems like I need to add some exception handling to the load of endpoints so that I can blow it up if stuff are missing, to help in these kind of situations
//Ove
On my phone
…________________________________
From: EQDGL ***@***.***>
Sent: Monday, July 11, 2022 7:34:27 PM
To: nkdAgility/azure-devops-migration-tools ***@***.***>
Cc: Ove Bastiansen ***@***.***>; Comment ***@***.***>
Subject: Re: [nkdAgility/azure-devops-migration-tools] TfsSharedQueryProcessorOptions, Error "Couldn't find a Source EndPoint with SourceName [Source]" (Discussion #1185)
Ove,
Success! Thanks again for your help. The main problem was a typo of mine - needs to be Organisation not Organization in the endpoint config.
I now have Shared Queries migrating. For reference, this is the config that worked for me in the end:
"Processors": [
{
"$type": "TfsSharedQueryProcessorOptions",
"Enabled": true,
"PrefixProjectToNodes": true,
"SharedFolderName": "Shared Queries",
"SourceToTargetFieldMappings": null,
"ProcessorEnrichers": null,
"SourceName": "MySource",
"TargetName": "MyTarget"
}
],
"Version": "12.0",
"workaroundForQuerySOAPBugEnabled": false,
"WorkItemTypeDefinition": {
"sourceWorkItemTypeName": "targetWorkItemTypeName"
},
"Endpoints": {
"TfsEndpoints": [
{
"Name": "MySource",
"Organisation": "https://ado.mycompany.com/mycollection",
"Project": "My Source Project",
"AuthenticationMode": "Prompt"
},
{
"Name": "MyTarget",
"Organisation": "https://ado.mycompany.com/mycollection",
"Project": "My Target Project",
"AuthenticationMode": "Prompt"
}
]
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FnkdAgility%2Fazure-devops-migration-tools%2Fdiscussions%2F1185%23discussioncomment-3122922&data=05%7C01%7C%7C08f771bbdd7841cb655308da635b396b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637931540690712338%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5gIiYhA1y4ZbEJNcW6BDL5TZqC3q7vULqoOzJBPxx8k%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAECK4APICLFBGLWY3JKCOVLVTREJHANCNFSM5XVXQUIQ&data=05%7C01%7C%7C08f771bbdd7841cb655308da635b396b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637931540690712338%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2Fe%2FUrsOUw5jXkYS%2BJrge3tOcx1h3oem5t0Onjd5ORSs%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
great, thanks for your examples.
|
Beta Was this translation helpful? Give feedback.
-
@ovebastiansen, @MicE44, @EQDGL, @Kuldeep90158 Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The following configuration
is throwing the Exception/Error
Couldn't find a Source EndPoint with SourceName [Source]
A source has been defined, any ideas?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions