Skip to main content

Notifications

Dynamics 365 Community / Forums / Field Service forum / Generate Work Order fr...
Field Service forum
Answered

Generate Work Order from Agreement Booking Date

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  

  • Mahmoud Amr Profile Picture
    Mahmoud Amr 60 on at
    RE: Generate Work Order from Agreement Booking Date

    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 ?

  • Mahmoud Amr Profile Picture
    Mahmoud Amr 60 on at
    RE: Generate Work Order from Agreement Booking Date

    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.

  • Verified answer
    Ali Khan Profile Picture
    Ali Khan 1,380 on at
    RE: Generate Work Order from Agreement Booking Date

    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)

  • Verified answer
    RE: Generate Work Order from Agreement Booking Date

    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

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans