nerdexam
Microsoft

PL-400 · Question #223

You are a Power App maker. You are developing an app in a development environment. You create the following custom forms in the Account entity: - FormB contains a message that appears in the OnLoad…

The correct answer is C. The web resources were not added to the solution before exporting. When forms reference JavaScript in OnLoad or OnSave event handlers, those scripts are stored as web resource components in Dataverse. Web resources are separate solution components from the forms themselves. When you add a form to a solution, the form component is included, but…

Submitted by amina.ke· Apr 18, 2026

Question

You are a Power App maker. You are developing an app in a development environment. You create the following custom forms in the Account entity: - FormB contains a message that appears in the OnLoad function of the form. - FormC contains a message that appears in the OnSave function of the form. You add the forms to a solution and export the solution as managed. Importing the managed solution into the test environment produces an error indicating the solution is missing a component. You need to identify the issue. What is the cause of the import error?

Options

  • AThe web resources were not added to the form before adding the form to the solution.
  • BThe solution must be exported as an unmanaged solution.
  • CThe web resources were not added to the solution before exporting.
  • DA copy of the form must be made before adding to the solution.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    15% (4)
  • C
    77% (20)
  • D
    4% (1)

Explanation

When forms reference JavaScript in OnLoad or OnSave event handlers, those scripts are stored as web resource components in Dataverse. Web resources are separate solution components from the forms themselves. When you add a form to a solution, the form component is included, but any web resources it references are not automatically added - they must be explicitly added to the solution as separate components. When the managed solution is exported without the web resources, the import fails because the target environment cannot find the referenced components. The fix is to add the JavaScript web resources to the solution before exporting. Exporting as unmanaged (B) would not resolve a missing dependency. Making a copy of the form (D) is irrelevant. The web resources must be added to the solution (C), not just to the form (A) - adding them to the form only links them, it does not include them in the solution.

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice