web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Generate Work Order from Agreement Booking Date

(0) ShareShare
ReportReport
Posted on by 60

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 ?

The given key was not present in the dictionary  

I have the same question (0)
  • Suggested answer
    Claudia Amaral Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    Ali Khan Profile Picture
    1,380 on at

    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)

  • Mahmoud Amr Profile Picture
    60 on at

    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.

  • Mahmoud Amr Profile Picture
    60 on at

    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 ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
FSRon Profile Picture

FSRon 75

#2
James White Profile Picture

James White 21

#3
AT-28040446-0 Profile Picture

AT-28040446-0 20

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans