Skip to content

[BUG]##[error]Property LoggerId is invalid #881

Open

Description

Release version

APIOps toolkit v7.0.4

Describe the bug

The issue occurs when I am trying to publish a single API from test version to higher up in prod env. Even when I try to publish all the artifacts it gives this error. But this is coming even when I have a single api details. The downloading artifacts and everything is success, but when it comes to stage to Run the publisher in the new env it fails.
##[error]Unhandled exception. System.InvalidOperationException: Could not obtain mandatory reference to LoggerResource in property LoggerId of DTO apis/accountsreceivable-v1/diagnostics/local. Property 'LoggerId' is invalid. JSON object does not have a property named 'LoggerId'.
It has extracted the API correctly what is necessary is there in the artifacts.

Expected behavior

It should publish the API in the production env

Actual behavior

It fails with ##[error]Unhandled exception. System.InvalidOperationException: Could not obtain mandatory reference to LoggerResource in property LoggerId of DTO apis/accountsreceivable-v1/diagnostics/local. Property 'LoggerId' is invalid. JSON object does not have a property named 'LoggerId'.
It has extracted the API correctly what is necessary is there in the artifacts.

Reproduction Steps

Just run the extractor only fetch single api.
This is the configuration-extractor.yaml
apis:

  • accountsreceivable-v1

backends: []
diagnostics: []
gateways: []
groups: []
loggers: []
namedValues: []
products: []
subscriptions: []
tags: []
policyFragments: []
versionSets: []
workspaces: []

this is prod configuration.yml
apimServiceName: ''name"

When publishing it select "publish-all-artifacts-in-repo"
The image is the artifacts I got.
Image

Activity

  1. github-actions commented on Oct 14, 2026

    @github-actions
      Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
      Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions