diff --git a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-io/src/main/java/com/liferay/dynamic/data/mapping/io/internal/DDMFormValuesJSONDeserializerImpl.java b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-io/src/main/java/com/liferay/dynamic/data/mapping/io/internal/DDMFormValuesJSONDeserializerImpl.java
index a5bb07b97610c5f436944f5a0634f7d250779647..6225111822e1fe992b0af416d67fd0ee1d37dd36 100644
--- a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-io/src/main/java/com/liferay/dynamic/data/mapping/io/internal/DDMFormValuesJSONDeserializerImpl.java
+++ b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-io/src/main/java/com/liferay/dynamic/data/mapping/io/internal/DDMFormValuesJSONDeserializerImpl.java
@@ -116,7 +116,12 @@ public class DDMFormValuesJSONDeserializerImpl
 
 		DDMFormFieldValue ddmFormFieldValue = new DDMFormFieldValue();
 
-		ddmFormFieldValue.setInstanceId(jsonObject.getString("instanceId"));
+		String instanceId = jsonObject.getString("instanceId");
+
+		if (instanceId.matches("[a-zA-Z0-9]*")) {
+			ddmFormFieldValue.setInstanceId(instanceId);
+		}
+
 		ddmFormFieldValue.setName(jsonObject.getString("name"));
 
 		setDDMFormFieldValueValue(