I have a graph that uses a ListFiles component to get all the files in a directory and read the single record in each file, doing something based on the contents of this record. I can get the record from the first file, but the UniversalDataReader fails when it tries to parse the file. It says it doesn’t have the correct number of fields, even though I know it does. Can someone help me with the UniversalDataReader?
Hi Christopher,
The subject of your post indicates that you execute the UniversalDataReader (currently called FlatFileReader) inside a body of the Loop component. If this is indeed the case, I would definitely advise you against using this graph design. The Loop component is not intended to be used that way due to multiple reasons (e.g. it relies on intact token flow which can be easily broken by FlatFileReader).
Overall, I sense that this graph design question would be better suited for a different communication channel than a Forum post, namely the CloverDX Support ticket. I trust it would be most beneficial to log a new ticket with CloverDX Support and provide your current graph (in the form of a GRF file) together with the respective execution log showing the details of the FlatFileReader failure.
Best,
-Vladi