Hello,
I have an issue where I have created an Agreement, and I want to "Generate Work Order" by clicking on the button on the ribbon from an "Agreement Booking Date", But it gives me an error in the system job as shown in the screen shoot "The given key was not present in the dictionary".
Please, How can I fix it or what is the way should I search ?
Hello Claudia
Please, I have another issue to ask.
I wonder if I can generate Work Orders from Agreement by passing additional custom fields to the generated work order fields.
Please, How can i achieve this ?
Hi Claudia,
Thank you for your reply.
As you said, the problem was i made 3 plugins over the work order entity, when i disabled them, a work order has been generated successfully.
I will check the sequence of them and i hope it works.
As @Claudia mentioned, this is OOB process which should never be modified. If you haven't made any changes, I would suggest creating a support ticket for the issue.
Please mark as verified if the answer is helpful. Thank you.
- Ali (I write about D365 Field Service related exciting stuff at https://akhan.me)
Hello Mahmound,
On the workflow Process Progress, you can check what is the stage that is failing. On the details tab, you can see more information about the error.
Usually, when this error - "The given key was not present in the dictionary" it indicates that a lookup field does not contain data and the process needs that data to run.
Please check if all lookups have values and also required fields.
Please check also if the issue happens for all records and you can compare the values.
This is an Out of the Box workflow, so if we don't have customizations in the middle, it should be working.
If this answer was helpful to you please mark it as an answer. Thank you!
Thank you for using Microsoft Dynamics CRM Communities.
Cláudia Amaral
Support Engineer
Microsoft Dynamics 365
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,802 Super User 2024 Season 2
Martin Dráb 229,133 Most Valuable Professional
nmaenpaa 101,154