Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application with multiple detection rules fails with "Given application detection rule duplicates rule" #254

Closed
miha-anzur opened this issue Mar 12, 2021 · 3 comments
Assignees
Labels
area:download bug Something isn't working
Milestone

Comments

@miha-anzur
Copy link

miha-anzur commented Mar 12, 2021

Hello
During the upload of downloaded data with monaco following error is reported

2021-03-12 11:13:35 ERROR Deployment to perform failed with error Failed to upsert DT object Web admin tools (HTTP 400)!
Response was: {"error":{"code":400,"message":"Constraints violated.","constraintViolations":[{"path":"","message":"Given application detection rule duplicates rule 57edee13-13ce-4202-bfbe-8b68cd9674f7","parameterLocation":"PAYLOAD_BODY","location":null}]}}, responsible config: perform/app-detection-rule/Webadmintools.json

Create application with multiple detection rules.
Execute:
monaco download -e environment.yaml
-- data stored to folder perform

Execute:
monaco -e environment.yaml -v perform/

@miha-anzur miha-anzur added the bug Something isn't working label Mar 12, 2021
@tatomir146
Copy link
Contributor

tatomir146 commented Mar 31, 2021

@diegorqc maybe you can help here? @kristofre I think you already mentioned this problem somewhere?

@ghost
Copy link

ghost commented Mar 31, 2021

I will need more details about the yaml file and json file downloaded, but at first this looks similar to #179 specifically the comment from Kristof. Also I noticed that the Dynatrace API for app detection rules has 3 possible values when getting the configs. Only 2 of those values include a name, so this might be something to consider, since we are using the name to identify the config

@mdicss
Copy link

mdicss commented May 5, 2021

See also: #293 (comment)
A kind of a 'workaround' is to delete the app detection rules and then redeploy them. But first, you have to change the yaml and json files according the disscussion mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:download bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants