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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Portal error: The give...
Power Pages
Unanswered

Portal error: The given key was not present in the dictionary.

(0) ShareShare
ReportReport
Posted on by 54

Hi all, 

 

I have created an entity form and want that users are able create Dynamics 365 records with it. However I am getting the following error, when I fill out the form and click submit: "The given key was not present in the dictionary. (source: mscorlib)". There are no error details. 

 

I created entity permissions for the main entity and all the other related entities, which has a subgrid in this entity form. I also assigned the right web roles to these entity permissions but the error still consists. I also have other entity forms and they work perfectly.

 

Any idea, how to resolve this problem? 

 

Thanks in advance,

Selim

Error-Message.png
Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @selimdag 

    besides the usual things like cache clearing and restarting the portal: could it be, tht there is a plugin rgistered on the entity? I sometime create pluginsteps accidentially by hitting enter on setting up pluginsteps which save the steps (for example, when i choose the message) (bad interfacing in the usual pluginregistrationtools...) before the setup is finished...

    This leeds sometimes to this kind of problems.

    Just a hint, no solution.

     

    Have fun,

      Christian

  • oliver.rodrigues Profile Picture
    9,475 Most Valuable Professional on at

    do you have any plugins/workflows associated to that entity? can you deactivate it to test?

    maybe the error isn't really the portal, but another process linked to the entity

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • CU20011233-0 Profile Picture
    54 on at

    @chleverenz@OliverRodrigues 

     

    Thank you for your answers. 

    The problem was a workflow in Dynamics 365. Deactivating the Workflow made the error disappear. It is weird because the workflow itself doesn't cause any problem in Dynamics 365. But when I create a Record by the Portal, it throws me this error. 

     

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi together,

    good to hear you found the problem.

    This is a very common problem in my projects, because plugins/workflows rely on data which might not be present when the request was created by the protal.

    We usually add a listbox to each entity we use in the portal and set the value to "sent by portal" (via entity form metadata) when the request is submitted. 

    Then other processes have a fair chance to ignore the event when something happens 🙂

     

    Have fun,

      Christian

     

  • P1999 Profile Picture
    145 on at
    @CU20011233-0 , I am also facing the same issue. Can you help me. How did you exactly find out the workflow which was causing the issue ?
  • oliver.rodrigues Profile Picture
    9,475 Most Valuable Professional on at
    @ probably worth creating a separata thread since this one is from 2020, please give as much information as you can

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 41

#2
Valantis Profile Picture

Valantis 23

#2
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard