cancel
Showing results for 
Search instead for 
Did you mean: 

Error "This is not a CSV file with permissions for users" during UserRight impex Import

Former Member
0 Kudos
244

Hi,

We have exported UserRight by using the following statement

 # ---- Extension: core ---- Type: UserRight ----
 "#% impex.setTargetFile( ""UserRight.csv"" , true, 0, 0 );"
 #SPECIAL CASE: Type UserRight will be exported with special logic (without header definition), see https://wiki.hybris.com/x/PIFvAg
 "#% impex.exportItems( ""UserRight"" , false );"

It has generated the file UserRight impex.zip.

But when we imported the generated file, it failed with the following message.

 ERROR [000001JL-ImpEx-Import::de.hybris.platform.impex.jalo.cronjob.ImpExImportJob] (000001JL-ImpEx-Import) [ImpExImportJob] line 150 at main script:
 This is not a CSV file with permissions for users and user groups! Aborting...
 de.hybris.platform.impex.jalo.ImpExException: line 150 at main script: This is not a CSV file with permissions for users and user groups! Aborting...
         at de.hybris.platform.impex.jalo.Importer.importNextInternal(Importer.java:769) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.Importer.importNext(Importer.java:738) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.cronjob.ImpExImportJob.doImport(ImpExImportJob.java:290) [impexserver.jar:?]
         at de.hybris.platform.impex.jalo.cronjob.ImpExImportJob.performJob(ImpExImportJob.java:248) [impexserver.jar:?]
         at de.hybris.platform.impex.jalo.cronjob.ImpExImportJob.performCronJob(ImpExImportJob.java:115) [impexserver.jar:?]
         at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390) [processingserver.jar:?]
         at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814) [processingserver.jar:?]
         at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767) [processingserver.jar:?]
         at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686) [processingserver.jar:?]
         at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208) [coreserver.jar:?]
         at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135) [coreserver.jar:?]
 Caused by: de.hybris.platform.jalo.JaloInvalidParameterException: This is not a CSV file with permissions for users and user groups! Aborting...
         at de.hybris.platform.jalo.security.ImportExportUserRightsHelper.importSecurity(ImportExportUserRightsHelper.java:623) ~[coreserver.jar:?]
         at de.hybris.platform.impex.jalo.ImpExReader.writeUserRightsLines(ImpExReader.java:2228) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.ImpExReader.readLine(ImpExReader.java:1947) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.imp.ImpExImportReader.readLine(ImpExImportReader.java:500) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.Importer.doImport(Importer.java:251) ~[impexserver.jar:?]
         at de.hybris.platform.impex.jalo.Importer.importNextInternal(Importer.java:757) ~[impexserver.jar:?]
         ... 10 more


Best Regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I'm working on Hybris 6.4.

I have this issue on both way.

Importing by using zip

Importing by extracted file from zip

geffchang
Active Contributor
0 Kudos

There must be something wrong with your set-up, because I was able to import your zip file successfully. I am using Hybris 5.7.0.27.

Did you extract the files and import the extracted files, or did you import the zip file itself? It should be the latter.