nerdexam
Microsoft

PL-400 · Question #364

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…

The correct answer is A. Yes. Throwing an InvalidPluginExecutionException in a synchronous plug-in is the correct method to display a custom error message directly to the user on the form when validation fails.

Submitted by omar99· Apr 18, 2026

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company requires custom validation when users save form records that use a synchronous plug-in. If validation fails, a message that explains how to resolve the issue must be displayed on the form to the user. You need to implement the custom validation. Solution: Throw an InvalidPluginExecutionException with the message. Does the solution meet the goal?

Options

  • AYes
  • BNo

How the community answered

(47 responses)
  • A
    85% (40)
  • B
    15% (7)

Why each option

Throwing an InvalidPluginExecutionException in a synchronous plug-in is the correct method to display a custom error message directly to the user on the form when validation fails.

AYesCorrect

When a synchronous plug-in throws an InvalidPluginExecutionException, the transaction is stopped, and the message provided in the exception is displayed directly to the user on the form, meeting the requirement for showing an error message.

BNo

Concept tested: Plug-in error handling and user feedback

Source: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/write-plug-in#throw-an-invalidpluginexecutionexception

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice