Hello all,
We have a customer with a simple request. Set the default Vendor to the same Vendor on all Inventory Items. Essentially they're looking to hit reset on their Default Vendors.
I have a fairly simple script (distilled down currently for troubleshooting purposes):
from psdi.server import MXServer
newVendor = 'NEW'
server = MXServer.getMXServer()
userInfo = server.getUserInfo('MAXADMIN')
inventorySet = server.getMboSet("INVENTORY", userInfo)
inventorySet.setWhere("vendor!='" + newVendor + "' and status='ACTIVE' and internal=0")
inventorySet.reset()
inventoryItem = inventorySet.moveFirst()
inventoryItem.setValue('VENDOR', newVendor)
inventorySet.save()
inventorySet.close()
inventorySet.cleanup()
The bizarre thing is that I'm getting the following error: BMXAA4176E - Attribute TAXEXEMPT does not exist. Gather the logs from the <HOME> directory and determine the process or app referencing the invalid attribute. This error is presenting at the inventorySet.save() step. I've also tried adding access modifiers here, but that made no difference.
I'm trying to think through where this error could be coming from...other areas where custom logic is potentially being inserted in the transaction. So far I've ruled out Automation Scripts, Conditions, Security Restrictions, Crossover Domains, and Publish Channels.
#Administration------------------------------
Tim Ferrill
Solutions Consultant
Intelligent Technology Solutions
tferrill@webuildits.comwww.webuildits.com@tferrill/@webuildits
------------------------------