SAP Knowledge Base Article - Public

3242384 - How can I use a CSV file input in a JavaScript task?


I have a problem with the Javascript task. In particular, I am taking a csv-file as an input and want to work with this data. When I check the script with test runner, it is working without any problem. But, if I start a new case it does not seem to read the data at all.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


If the tests of JavaScript Task are running correctly there is no problem with the code. Please check if your input is properly loaded. In the JavaScript task you can declare a CSV input variable with a test value. This makes a test run of this task successful, but the test data will not be used in a 'normal' run. Please assure yourself that the needed CSV file is created (or uploaded) and mapped before using it, e.g.:

And then map the input to the variable you want to use in further tasks:


KBA , BPI-SIG-PG-JS , JavaScript for SAP Signavio Process Governance , How To


SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions