CSV Module Parameter Passing

0
Hi all, I’m using the CSV Module from MarketPlace and I want to pass a parameter from ImportCSV to the microflow that iterates through the lines. When starting the flow, I get the following exception: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: No suitable argument could be found in microflow MyFirstModule.CSV_ImportCSV_2 for MyFirstModule.Customer     at MyFirstModule.Emptyflow (JavaAction : 'Import CSV') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: No suitable argument could be found in microflow MyFirstModule.CSV_ImportCSV_2 for MyFirstModule.Customer     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156)   The parameter is defined in the subflow, the variable that is passed exists and has the correct type. Any help is highly appreciated. Kind regards   Dominik          
asked
2 answers
0

I’m not really familiar with this specific CSV importer, but it seems like you are trying to make changes to a customer for each line. However, you are importing 11 lines whereas only 1 customer object is available. You could try passing on a list of customers for which you want to make changes.

Alternatively you could try to have the import action return a list of non persistent objects (one for each line), without any input parameters. When you have these objects you can just use whatever data is in there to retrieve the user from your database and make your changes accordingly.

Hope this helps!

answered
0

Thank you for your answer. I followed your proposal using a workaround – I skipped the parameter and committed the objects within the sub microflow. 

To me, it seems to be an issue related to the specific CSV importer (or my personal configuration). In the app I want to read line items per customer and the relation Customer – Detail is 1-*. Once I add the parameter (even before executing the sub microflow), I get the exception.

 

 

answered