Receiving the following error in CRM/D365 Sales ‘System Jobs’
Plugin processing Failed : The given key was not preset in the dictionary
There are two known causes for this error.
Blank Primary Field
This error message can occur when the record that the change plugin was triggered on does not have a value in the primary field.
SmartConnect change tracking uses the primary field to link the source record to the change tracking table. If this field is blank the query will fail.The resolution is to always have a value in your primary field.
Invalid Change Entity
This error can also occur when trying to set a trigger on a detail entity. This includes the following entities.
- Invoice Product
- Lead product
- Opportunity Product
- Order Product
- Quote Product
ex. If I want to capture changes to the Invoice Product entity, I would select Invoice as the change entity.