You need to debug through below classes to check what exactly is causing this.
debug addFileEntry method of class
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl -->
public DLFileEntry addFileEntry(
long userId, long groupId, long repositoryId, long folderId,
String sourceFileName, String mimeType, String title,
String description, String changeLog, long fileEntryTypeId,
Map<String, Fields> fieldsMap, File file, InputStream is, long size,
ServiceContext serviceContext)
throws PortalException, SystemException
You should get exact problem.
And regarding
what is the "dynamicdatamapping".
As I've mentioned you might also need to provide metadata field values which you have configured for your custom type "Shipment Pre-alert".
Por favor, faça login para denunciar.