'0x80028016: Buffer too small' Message When Creating a New Script in MOM
Goto the MOM Home Page
 
I've written a pretty comprehensive MOM script that seems to work fine when running it using 'cscript <scriptname>'. Therefore I didn't think it would be troublesome to add it to the MOM script repository...but I was wrong.

When creating a new script in MOM and adding the script code I get the following error when trying to apply the changes:

Failed to update script data.

Buffer too small.

Details:
0x80028016: Buffer too small.

I guess that the limitation is within the properties of the text-field containing the script code, as the script runs without problems using the command line WSH.

It seems the limitation is just around 15 KB. I guess this can't be changed (unless Microsoft changes the properties of the text field) - but I figured it was nice to know for the MOM scripters out-there.

I guess I'll have to divide my script into several smaller scripts.

Contributed By: Ugo Corti
The script limit is around 32 Kbytes. If possible remove all comments from your script. This limitation should be fixed in MOM SP1.

Contributed By: Michael T La Rivière {MS}
Also, if you have a lot of code, you should consider packaging the more generic functions in a VB-based DLL. It isn't difficult to do, it reduces the script size, and it allows you to reuse your functions in other places. The only issue is deploying the DLL to the MOM servers and agents.
 

© FAQShop.com 2003 - 2008

Goto the MOM Home Page

Email the Author