This is an automated email from the ASF dual-hosted git repository.

arunpati pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0bb30afed4 Fix Party CSV import failure caused by trailing commas. 
(OFBIZ-13435) (#1339)
0bb30afed4 is described below

commit 0bb30afed486ce9910349047967083eb3ca6b9df
Author: ratneshup <[email protected]>
AuthorDate: Fri Jul 31 19:25:43 2026 +0530

    Fix Party CSV import failure caused by trailing commas. (OFBIZ-13435) 
(#1339)
    
    Fixed: IllegalArgumentException on importing CSVs with trailing commas
    in PartyServices.
    (OFBIZ-13435)
    
    Thanks @ratneshup for your contribution.
---
 .../party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
 
b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
index 991da1fbd1..e37e4429f5 100644
--- 
a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
+++ 
b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
@@ -2296,7 +2296,7 @@ public class PartyServices {
         ByteBuffer fileBytes = (ByteBuffer) context.get("uploadedFile");
         String encoding = System.getProperty("file.encoding");
         String csvString = 
Charset.forName(encoding).decode(fileBytes).toString();
-        Builder csvFormatBuilder = Builder.create().setHeader();
+        Builder csvFormatBuilder = 
Builder.create().setHeader().setAllowMissingColumnNames(true);
         CSVFormat fmt = csvFormatBuilder.get();
         List<String> errMsgs = new LinkedList<>();
         List<String> newErrMsgs = new LinkedList<>();

Reply via email to