A user wishes to update the Item group for a released product.
They right-click on the Item group field and selects the Record Info menu item.
In the Record information form they click the Fill Utility button.
And get the following error:
Error executing code: Wrong argument types for comparison.
(C)\Forms\SysFillUtility\Methods\initializeMainQuery – line 69
(C)\Forms\SysFillUtility\Methods\init – line 53
This stack trace is similar to another cause of the issue detailed here. However in this scenario it was genuinely caused when comparing two different data types, a string type value to an enum type value.
How did we resolve this?
To fix the error in this scenario, the following change in bold was made in Forms\ SysFillUtillity\ InitializeMainQuery method:
Querybuffer = queryBuildRange.value();
if(querybuffer != queryValue(formDataSource.cursor().(mainTablePrimaryField)))
This programming example is for illustration purposes only. Microsoft disclaims all warranties and conditions with regard to use of the programming example for other purposes. Microsoft shall not, at any time, be liable for any special, direct, indirect or consequential damages, whether in an action of contract, negligence or other action arising out of or in connection with the use or performance of the programming example. Nothing herein should be construed as constituting any kind of warranty.
Other related articles:
|–author:||Erco van Harn|
|–reviewer:||Mansour Yahya Mohamad Mansour|