Unexpected Error when adding attachment to item

Erik Haake
Erik Haake
  • Updated

Author: Erik Haake

Date: 6/3/25

Audience: Everyone

Environmental details: Cloud and Self-Hosted

Summary

When adding an attachment to an item and the following error is encountered:

Unexpected error: o.control.getCustomValues is not a function...

the issue is likely that there is a custom, required field on the attachment item type. Below is how encountering the error might look:

Screenshot 2025-06-03 at 2.27.24 PM.png

This is how the Attachment Item type is configured:

Screenshot 2025-06-03 at 2.28.44 PM.png

Here, the attachment item type has a custom "Revision" text-box field that is marked as required.

Solution

The Attachment item type is a default system item that comes preconfigured with Jama. An instance of attachment is created whenever something is uploaded to the attachment field on an item that has that field.

Custom fields can be added to the Attachment item type, but they cannot be marked as required. The solution is to unmark the "required" check box next to the custom field.

Cause

A required field was added to the Attachment item type.

 

Additional Information/Metadata

  • Attachment
  • Error
  • Item Type
  • Required Field

References

 

Please feel free to leave feedback in the comments below.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.