<h2>SCTASK with attachment not closing - Error MessageonSubmit script error: ReferenceError: getSCAttachmentCount is not defined:</h2><br/><div style="overflow-x:auto"><div><h3>Description</h3><ul><li>Unable to close the catalog tasks that are associated with the requested item has an attachment.</li><li>Error MessageonSubmit script error: ReferenceError: getSCAttachmentCount is not defined:<br />function () { [native code] }</li></ul></div><div><h3>Release or Environment</h3><ul><li>All</li></ul></div><div><h3>Cause</h3><ul><li>OnSubmit Catalog Client Script.</li></ul></div><div><h3>Resolution</h3><ul><li>Deactivating the OnSubmit Catalog Client Script that was associated with the catalog item solves the issue.</li></ul></div></div>