How to Resolve Timeout Errors in Dataverse Plug-ins for High Record Creation?
Table of Contents
Question
You develop a plug-in that creates and relates many records when a specific event occurs.
During user acceptance testing, the plug-in generates timeout errors.
You need to resolve the issue.
What should you do?
Select only one answer.
A. Configure the plug-in to run asynchronously.
B. Create an Azure Function that performs processing and call the function from the plug-in.
C. Create several threads in the plug-in.
D. Split the plug-in into two plug-ins that both run for the event.
Answer
B. Create an Azure Function that performs processing and call the function from the plug-in.
Explanation
This item tests the candidate’s knowledge of the 2-minute execution limit in plug-ins and the use of Azure Functions for processing longer than this time limit.
The recommended way of resolving this problem is by outsourcing the workload to an Azure Function and calling this from the plug-in. The two-minute limit applies if the plug-in runs synchronously or asynchronously. Creating threads in plug-ins could corrupt the transaction safety and should not be used. The two-minute timeout limit is for the combined time of all plug-ins in the transaction.
Microsoft Power Platform Developer PL-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Power Platform Developer PL-400 exam and earn Microsoft Power Platform Developer PL-400 certification.