14 Apr 2022
Link to this post
We have a form on our TPC portal which need the anonymous user to submit the form and create a record in CRM.
But if you are not logged in, there will be an error after you click the submit button.
"There was a problem with your submission. It has been added to the submission queue and will be reviewed manually."
Here is the error log:
Error Info
Error Source: User
Culture Info: en
Machine Name: RD00155DB86351
Windows Identity:IIS APPPOOL\********
Error Line No:line 12
Error Page URLhttps://*********/*************/AjaxSubmit
Error Typepavliks.PortalConnector.Mvc.Engine.Data.CrmFormSubmissionManager+ProcessingException
MessageProcessing Exception: Object reference not set to an instance of an object.
Trace Info at pavliks.PortalConnector.Mvc.Engine.Data.CrmFormSubmissionManager.SubmitSection(ICrmConnection connection, FormLayoutSection section, FormCollection data, HttpFileCollectionBase files, Entity parentEntity, CrmFormSubmissionSettings submitSettings, IList`1& processedEntities) in C:\TeamCity\buildAgent\work\daebd48c1f8c846d\pavliks.PortalConnector.Mvc\Engine\Data\CrmFormSubmissionManager.cs:line 541 at pavliks.PortalConnector.Mvc.Engine.Data.CrmFormSubmissionManager.SubmitSections(IEnumerable`1 sections, FormCollection data, HttpFileCollectionBase files, CrmFormSubmissionSettings submitSettings, Boolean mockConnection) in C:\TeamCity\buildAgent\work\daebd48c1f8c846d\pavliks.PortalConnector.Mvc\Engine\Data\CrmFormSubmissionManager.cs:line 126
So as a result, the anonymous user can't submit any information.
This form can be submitted correctly after user login, but what we need is the anonymous user to submit the form.
Is there any solution to this? When we are using the dynamics portal we can let anonymous users submit the form so I think the TPC should have some similar function too.
This is a form to create CRM record and our tpc version is 6.1.7700.121.