<h2>SCTASK with attachment not closing - Error MessageonSubmit script error: ReferenceError: getSCAttachmentCount is not defined:</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><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></section></div><div ><h3 >Release</h3><section><ul><li>All</li></ul></section></div><div ><h3 >Cause</h3><section><ul><li>OnSubmit Catalog Client Script.</li></ul></section></div><div ><h3 >Resolution</h3><section><ul><li>Deactivating the OnSubmit Catalog Client Script that was associated with the catalog item solves the issue.</li></ul></section></div></article></div>