To deploy a trigger to production , you will need to ensure your trigger has a test class and the class needs to cover at least 75% of the lines of code .
Looks like you are writing the trigger for first time .
I suggest you go through Salesforce trailhead content and learn some of the best practices such as below
bulkify your trigger
do not write soql ...
As linked in the documentation, the relevant Metadata API entity is Prompt. The Metadata API's documentation includes a complete sample package.xml manifest:
<?xml version="1.0" encoding="UTF-8"?>
After many hours trying to look for every single issue mentioned on this page, and getting so angry about the lack of useful error messages in DX I was reminded that deployment settings may give more info.
The error I was getting in DX was just
N/A duplicate value found: <unknown> duplicates value on record with id: <unknown>. The Path was ...
I ran into this issue on a Lookup field where it had the "Business Status" Field set to "Active" in the metadata. I was thrown off by the winter fix as it had a lookup filter.
I removed the Active from the field-meta.xml and that solved it for me.
Little late for the person who asked, but I just had to solve this issue the problem is if you don't bring the updated ReportType along with the new reports. It seems to throw this error.
You can include the ReportType in package.xml like this:
Found a simple trick to deploy dependent fields that are set from Include to Exclude using a package. With the dependent field set to "Exclude" on the dependency matrix simply deactivate and reactivate the (Excluded) picklist field value(s) from associated record type. Then retrieve your package again and when you deploy it will remove the fields from the ...