Error 1006   Unsafe operation. This operation cannot be performed in the target fields AfterUserChanged, BeforeLostFocus or AfterLostFocus events. This operation could compromise the integrity of the application.

Situation:

You attempted to set a field’s value using the field’s AfterUserChanged, BeforeUserChanged or AfterLostFocus events. These events follow the Microsoft Dynamics GP user changed event. Microsoft Dynamics GP uses the user changed event to verify the value in a field; setting the value of the field after the Microsoft Dynamics GP user changed event does not allow the accounting system to verify the field.

Solution:

Set the field’s value using the BeforeGotFocus, AfterGotFocus or BeforeUserChanged events. These events precede the Microsoft Dynamics GP user changed event, and allow the accounting system to verify the contents of the field.


Documentation Feedback