Symptoms:
When API is used instead of the GUI, to update OS images on NCM the API fails when a MD5 hash is defined.
Refer the screen shot below of the GUI not having the MD5 hash. This works on the GUI and API.
![](https://api-broadcomcms-software.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=1512713817343)
Refer the screen shot below of the GUI having the MD5 hash. This works in the GUI however doesn't work with the API.
![](https://api-broadcomcms-software.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=1512731625441)
Gives the following error message:
Failed to retrieve Os Image Info for Resource name: c3560-ipbasek9-mz.122-58.SE2.bin, Resource key: 9212239ba182d43f16c8414957010000, Resource type: OS-IMAGE ERROR: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long