# Error while migrating application detection rules between Environments using Monaco

**URL:** <https://community.dynatrace.com/t/error-while-migrating-application-detection-rules-between-environments-using-monaco/37800>\
**Category:** Open Q&A\
**Tags:** monaco\
**Created:** [December 27, 2022, 1:33pm UTC](https://community.dynatrace.com/t/error-while-migrating-application-detection-rules-between-environments-using-monaco/37800 "2022-12-27T13:33:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcioKaue](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Post date:** [December 27, 2022, 1:33pm UTC](https://community.dynatrace.com/t/error-while-migrating-application-detection-rules-between-environments-using-monaco/37800/1 "2022-12-27T13:33:18Z")

</div>

Hello everybody !

I would like to assess whether anyone has had the same problem when trying to migrate application detection rules between Environments using Monaco.

Here’s the error:

Response was: {“error”:{“code”:400,“message”:“Constraints violated.”,“constraintViolations”:[{“path”:“applicationIdentifier”,“message”:“referenced application does not exist or is not an auto-injected application”,“parameterLocation”:“PAYLOAD\_BODY”,“location”:null}]}}, responsible config: Project/app-detection-rule-v2/a8cb5506-14c4-317c-b015-deaa71d5c2b4. json  
2022-12-24 03:14:27 ERROR errors during deployment! check log

Dynatrace Monitoring as Code v1.8.9

---

<div class="post-metadata">

**Author:** ![Brendan\_NJ](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/brendan_nj/32/7439_2.png) [@Brendan\_NJ](https://community.dynatrace.com/u/Brendan_NJ)\
**Post date:** [January 10, 2023, 7:45pm UTC](https://community.dynatrace.com/t/error-while-migrating-application-detection-rules-between-environments-using-monaco/37800/2 "2023-01-10T19:45:19Z")

</div>

Looks like the application referenced in the JSON doesn’t exist in the target system. Update the&nbsp;“applicationIdentifier”: “APPLICATION-11111111111” to one that exists, not a null value either.
