This document describes the PX1086 diagnostic.
| Code | Short Description | Type | Code Fix |
|---|---|---|---|
| PX1086 | PXSetupNotEnteredException cannot be thrown in long-running operations. |
Warning (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
PXGraphinitialization - In data view delegates
- In the
RowSelectedevent 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.Start(() => throw new PXSetupNotEnteredException()); // The PX1086 warning is displayed for this line.