Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.28 KB

PX1086.md

File metadata and controls

30 lines (19 loc) · 1.28 KB

PX1086

This document describes the PX1086 diagnostic.

Summary

Code Short Description Type Code Fix
PX1086 PXSetupNotEnteredException cannot be thrown in long-running operations. Warning (ISV Level 1: Significant) Unavailable

Diagnostic Description

PXSetupNotEnteredException, which is used to prevent the opening of a form, cannot be thrown in long-running operations.

PXSetupNotEnteredException can be thrown as follows:

  • During PXGraph initialization
  • In data view delegates
  • In the RowSelected event handlers

To prevent the warning from occurring, you should remove the code that throws PXSetupNotEnteredException from the code of the long-running operation and rework the related business logic.

Example of Code That Results in the Warning

PXLongOperation.StartOperation(() => throw new PXSetupNotEnteredException()); // The PX1086 warning is displayed for this line.

Related Articles

PXSetupNotEnteredException