Bug Fixed
The problem was triggered when trying to fetch the title as the local upload doesn’t have that field and it is compulsory for InvenioRDM record.
Solution: Create a default value when local uploads
def initialize_data(archive): if archive.title == "": title = "Local Upload" else: title = archive.title