dosubot[bot] commented on issue #8609:
URL: 
https://github.com/apache/incubator-devlake/issues/8609#issuecomment-3397459845

   <!-- Answer -->
   The 404 "record not found" error when adding `collectApiTimelineRecords` in 
advanced blueprint mode is triggered when the plugin can't find the specified 
repository in the database during task preparation. This usually means the 
`repositoryId` or related options in your blueprint don't match any existing 
Azure DevOps repo records in DevLake, or the repo was deleted or not synced 
yet. The error is raised early in the pipeline, which is why the logs are 
empty—logging only starts after successful task preparation, so fast-failures 
like this produce little or no log output for the archive you download. To 
improve debugging, ensure that all error return paths in plugin initialization 
log at ERROR level so logs always have diagnostic content, even for early 
failures.
   
   For your PR, focus on: (1) verifying that the advanced blueprint is passing 
the correct `repositoryId`, `connectionId`, `organizationId`, and `projectId` 
to the pipeline plan, and (2) making sure the plugin logs errors before 
returning, especially in `PrepareTaskData` and related routines. You might also 
want to add more robust error handling for missing or mismatched repo IDs in 
the advanced blueprint plan construction logic. 
   
   If you need to collect DORA metrics, make sure the repository exists in 
DevLake and the IDs in your blueprint match exactly. If the repo was deleted or 
renamed in Azure DevOps, re-sync your data sources first. 
   
   For more details, see the relevant code in 
[impl.go](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/azuredevops_go/impl/impl.go)
 and 
[blueprint_v200.go](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/azuredevops_go/api/blueprint_v200.go).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/ccb52732-8ce0-4b15-aecc-dc8215d73793?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8609)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to