Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Should we use Portal webform to implement a multi-user process ?

Posted on by Microsoft Employee

We have customer onboarding process that requires the customer to enter and upload some data.

After creation of a record, a background process starts, depending on the outcome, the customer needs to update the existing data or add additional data.

The web form functionality examples that I have seen, do not demonstrate a "waiting for the background process to finish scenario" .

I am asking this question because when we try implementing this flow using web form we get the following error:

Error500ThreadAborted.PNG

The log has a message that tells us that a System.Threading.ThreadAbortException (it just takes too long)

When we look in the web form session entity, we can see the following steps:

{"ID":"de6d443e-923c-e811-a954-000d3a3099e5","Index":0,
"IsActive":null,"PreviousStepID":"00000000-0000-0000-0000-000000000000",
"ReferenceEntity":{"ID":"a6e86f52-c73c-e811-a822-00155dd3eaf1","LogicalName":"eof_chatbotbuilder",
"PrimaryKeyLogicalName":"eof_chatbotbuilderid"}},
{"ID":"9fefbf32-a03c-e811-a954-000d3a30db97","Index":1,"IsActive":true,"PreviousStepID":"de6d443e-923c-e811-a954-000d3a3099e5",
"ReferenceEntity":{"ID":"a6e86f52-c73c-e811-a822-00155dd3eaf1","LogicalName":"eof_chatbotbuilder","PrimaryKeyLogicalName":"eof_chatbotbuilderid"}},
{"ID":"2622c42d-c43c-e811-a954-000d3a30db97","Index":2,"IsActive":true,"PreviousStepID":"9fefbf32-a03c-e811-a954-000d3a30db97",
"ReferenceEntity":{"ID":"00000000-0000-0000-0000-000000000000","LogicalName":"eof_chatbotbuilder",
"PrimaryKeyLogicalName":"eof_chatbotbuilderid"}}]

The strange part is that the referenceEntity id is 0000 in step 2, where it is populated with the expected value in previous steps.

The first step is an insert step

The second step is a condition

The third step (index:2, which causes this issue) is the the result of the condition when the condition fails...

So I was thinking I could show a "please wait and come back" screen for this state and when the users opens the item from the list, the condition is re-evaluated , but right now I cannot get into the third step.

When I change the condition (so that it is always true) we do get into the next step (add additional information) and there also the referenceEntity id is 0000 , so I am not sure if this tells us anything.

When I remove the condition and point (always) to the third step, the web form works. So there is something in the handling of the condition that maybe causes a loop (we are on the same entity) ?

*This post is locked for comments

  • TomWinton Profile Picture
    TomWinton 5 on at
    RE: Should we use Portal webform to implement a multi-user process ?

    In case anyone's interested 2 years later..

    It fails because it is looking for a referenced Step that doesn't exist. Technicaly this can either be the Previous Step which is unlikely as I think it's a largely redundant field (could be wrong) or the Entity Source Step - more likely.

    It's easy to miss this in the UI.

  • Philipp Lwn Profile Picture
    Philipp Lwn on at
    RE: Should we use Portal webform to implement a multi-user process ?

    Hello,

    I get the same error "Step History didn't contain data with ID = 00000000-0000-0000-0000-000000000000." when the first step is condition. Is there any news on the problem?

    Regards

    Philipp

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Should we use Portal webform to implement a multi-user process ?

    I am trying a different approach, where I start a webform with a conditional step, but than I get another error: Step History didn't contain data with ID = 00000000-0000-0000-0000-000000000000. Can someone confirm that the first step in a webform should NOT be a conditional step ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Should we use Portal webform to implement a multi-user process ?

    This is de conditioanl step. I played with the condition (as stated above) and so the check works.

    The enduser uploads a spreadsheet which is validated in a background process. Only when the spreadsheet is valid, the web form process should continu to gather more information. Otherwise (condition fails) the user needs to upload a new one. CaptureConditionalStep.PNG

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Should we use Portal webform to implement a multi-user process ?

    Can you share a screenshot of you condition step?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Should we use Portal webform to implement a multi-user process ?

    <added content to the main question>

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans