|
Holden Tommy wrote:
http://code.midrange.com/index.php?id=f880f45f4b This is incomplete code but I wanted to test it up to this point before proceeding. The create product definition is working fine but the create product load is failing due to "invalid object *N" I have no idea where the *N is coming from or how to fix it. I'm hoping someone can point me in the right direction, I'm sure its something stupid I'm doing but can't see it.
Tommy, I'm just wondering about the errorcode parameter. Did you remove the code that checks the error code parameter after each API call to reduce the size of the code you posted? You have BytesProvided = %size, which means that for most errors, the API wouldn't send an exception but would just put the error info into the parameter. If you don't check the parameter after the call, you'd never know about the exception. (Me, I prefer to leave BytesProvided as zero and let messages go to the joblog, at least until I think my API calls are working the way I expect. It's easier to read error messages in the joblog than to try to figure out how to map the error code parameter to the message replacement values (eww).) I'm guessing that the exception you're getting now is severe enough that the API is ignoring your error code parameter (probably figuring that if you have one parameter wrong, you might have that one wrong too).
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.