Problem on import payment mode

Hello,

I have a problem when importing data via the payment method. I am using the following xml file:

‹ base-config.xml ›

and the following standard Axelor csv file:

‹ PaymentMode.csv ›

In the user interface the program says that there are 0 imports done and 0 errors.

In the server logs, however, I have this:

2022-11-16 17:31:10.762 ERROR 18096 --- [io-8080-exec-10] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_tax.csv.

2022-11-16 17:31:10.762 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_taxLine.csv.
2022-11-16 17:31:10.762 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_tax.csv.
2022-11-16 17:31:10.762 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_accountManagement.csv.
2022-11-16 17:31:10.762 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/meta_metaTranslation.csv.
2022-11-16 17:31:10.762 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_citizenship.csv.
2022-11-16 17:31:10.763 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_fileType.csv.
2022-11-16 17:31:10.763 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_globalTrackingConfigurationLine.csv.
2022-11-16 17:31:10.763 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_mailBatch.csv.
2022-11-16 17:31:10.763 ERROR 18096 — [io-8080-exec-10] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_main_activity.csv.
2022-11-16 17:32:06.226 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/auth_permission.csv.
2022-11-16 17:32:06.226 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/auth_role.csv.
2022-11-16 17:32:06.226 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/auth_group.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/auth_group.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/meta_file.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_company.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_language.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_sequence.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_birtTemplate.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_birtTemplateParameter.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_printSetting.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_template.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_team.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_source.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_economicArea.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_country.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_region.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_departement.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_indicator_generator.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_canton.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_city.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_address.csv.
2022-11-16 17:32:06.227 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_currency.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_unit.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_unitConversion.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_partnerCategory.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_duration.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_partner.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_bank.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_bankAddress.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_bankDetails.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_company.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_year.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_year.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_currencyConversionLine.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_companyDepartment.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_productFamily.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_productCategory.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_product.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_productVariantAttr.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_productVariantValue.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_productVariantConfig.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_partner.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_partner.csv.
2022-11-16 17:32:06.228 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_company.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_appBase.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/auth_user.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_tax.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_taxLine.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_tax.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/account_accountManagement.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/meta_metaTranslation.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_citizenship.csv.
2022-11-16 17:32:06.229 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_fileType.csv.
2022-11-16 17:32:06.230 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_globalTrackingConfigurationLine.csv.
2022-11-16 17:32:06.230 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_mailBatch.csv.
2022-11-16 17:32:06.230 ERROR 18096 — [nio-8080-exec-9] com.axelor.data.csv.CSVImporter : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (2)-20221116/base_main_activity.csv.

Can anyone help me ? Thanks.

I specify the temp directory, the directory /opt/tomcat/temp/1668614750196-0/

is empty.

Hello , you want to import only one file ?

On the demo files , the file is name account_paymentMode.csv , and it s referenced in the account-config.xml

1 J'aime

Thank you for your answer, can you tell me the link to these files please ?

On the source , on the « axelor-open-suite-6.3.4\axelor-account\src\main\resources\demo »

When I try to import, with these files:

PaymentMode (4).csv
account-config.xml

I have this error in the logs:

    SVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/base_bankDetails.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/meta_schedule.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/account_moveTemplateType.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/account_moveTemplate.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/account_moveTemplateLine.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/account_accountingReportType.csv.
2022-11-22 09:53:14.937 ERROR 18096 --- [nio-8080-exec-2] com.axelor.data.csv.CSVImporter          : Error while accessing /opt/tomcat/temp/1668614750196-0/PaymentMode (4) (1)-20221122/account_accountingReportConfigLine.csv.

Do you have modify the config xml file to import only the good file ?

Its the issue of files path.

If you want to auto import one or more CSV files from a single input-config.xml then you should place CSV files in following directory i.e

/modules/« Your module name »/src/main/resources/data-init/input/

and the input-config.xml file should be placed in following directory
/modules/« Your module name »/src/main/resources/data-init/

your input-config.xml should be look like something like this one i.e.

<input file="meta_schedule.csv" type="com.axelor.meta.db.MetaSchedule"  />
<input file="role.csv" type="com.axelor.auth.db.Role" />
<input file="my_group.csv"  type="com.axelor.auth.db.Group" search="self.code = :code" update="true"/>
<input file="my_user.csv" separator=";" type="com.axelor.auth.db.User" search="self.code = :code" update="true"/>

it s exact if you compile souce to have a custom war ( with your init files )