This document describes the PX1086 diagnostic.
Code | Short Description | Type | Code Fix |
---|---|---|---|
PX1086 | PXSetupNotEnteredException cannot be thrown in long-running operations. |
Warning (ISV Level 1: Significant) | Unavailable |
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.
PXLongOperation.StartOperation(() => throw new PXSetupNotEnteredException()); // The PX1086 warning is displayed for this line.