I made a custom entity form on Dynamics 365 Portals for a custom entity. When I try to submit the form, I get this error: usersettings With Id = xxxx Does Not Exist. The Id mentioned is the id of the SYSTEM user.
Any idea what is missing?
Solved! Go to Solution.
Hi @JeroenJanssens,
make sure that also no other workflow is triggered. 🙂
The deactivated one cannot throw the error.
Methods to identify the plugin:
1. Have a look at the plugin registration tool and check which plugins are registered for the custom entity creation (steps)
2. My suggestion is to use XrmToolbox with Plugin-Tracer Add-In and filter for Exceptions or have a look at the last executions to see what happens when creation is triggered. There you can also see the exception message and in case you have tracing steps inside plugins where the error happens.
Best regards,
Gerald Gut
are you assigning via workflow/plugin the record to a different user or something?
Power Pages Super User | MVP
Not that I am aware off.
Hi @JeroenJanssens,
for analysis I would do the following:
1. Identify what triggers this error
ToDo's:
1. Check which workflows are registered for this custom entity for creation
2. Check which plugins are registered for this custom entity for creation
3. Check Plugin-Traces if somewhere the error shows up after triggering the creation
4. After you identified the plugin or workflow dig deeper and check for assignment of record. Maybe during debugging you will see the faulty code already...
First of all you need to know where the error is thrown in my oppinion.
You can then also forward this information here. On the current basis it is hard to find out what wents wrong.
Maybe you could also try to change the user's context after you identified the workflow/plugin.
Best regards,
Gerald Gut
I have a workflow that on create, if a condition is met, shares the record with another user and updates a field of that record. Then regardless of the condition, the owner of the record is set with another user.
I added another condition in the workflow so that the command that sets the owner is skipped if the form is filled via the portal. But I still get the same error on the portal when submitting the form.
How can I verify that this flow is the problem? The workflow is not running in the background so it doesn't appear in the systemjob logs.
I deactivated this workflow entirely and tried to save but I still got the error. I will keep looking ...
How can I check the plugins?
Hi @JeroenJanssens,
make sure that also no other workflow is triggered. 🙂
The deactivated one cannot throw the error.
Methods to identify the plugin:
1. Have a look at the plugin registration tool and check which plugins are registered for the custom entity creation (steps)
2. My suggestion is to use XrmToolbox with Plugin-Tracer Add-In and filter for Exceptions or have a look at the last executions to see what happens when creation is triggered. There you can also see the exception message and in case you have tracing steps inside plugins where the error happens.
Best regards,
Gerald Gut
@JeroenJanssens wrote:How can I check the plugins?
Turn on the Trace log in Dataverse plugin and custom workflow activity failures get logged there https://learn.microsoft.com/en-us/power-apps/developer/data-platform/logging-tracing#enable-trace-lo....
I discovered which workflow/plugin caused the error. I will try to find another solution for performing that logic. Thanks to everyone who helped!