Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions custom_md_loader/classes/MetadataUtil.cls
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ public class MetadataUtil {
// it would pass the conditions under isHeadervalid()
Set<String> fieldNameSet = new Set<String>();
for (String fieldNames :header) {
if (String.isBlank(fieldNames)) {
continue;
}
//removed following lines as redundant, since if any columns have a blank header, they are captured by 'Header must contain the api names of the fields' error
//if (String.isBlank(fieldNames)) {
// continue;
//}

fieldNameSet.addAll(fieldNames.split(';'));
}
Expand All @@ -87,9 +88,10 @@ public class MetadataUtil {
List<String> fieldValueList = new List<String>();

for (String singleRowFieldValues :singleRowOfValues) {
if (String.isBlank(singleRowFieldValues)) {
continue;
}
//Removed following lines as they cause values to become misaligned from headers when CSV contains null values
//if (String.isBlank(singleRowFieldValues)) {
// continue;
//}

fieldValueList.addAll(singleRowFieldValues.split(';'));
}
Expand Down