I think he means that instead of popping up the ""Is this is new inventory item"", which is what he wants, it's just failing in the script, which doesn't allow the item to be added.
@BrettLyder, your script is manipulating the business object, probably using a Setvalue(). The prompt ""Is this a new inventory item"" comes from the UI object which is responsible for calling the ""On the fly"" Item Maintenance task. The business object doesn't know how to call a UI task to allow entry, so it just returns an error message. You could trap the error message then prompt within your script to add a new one, then instantiate and process the Item Maintenance UI, but that's probably pretty complicated. I hope someone else can come up with a more elegant solution for you. - Phil