Hi Folk,
I was trying with ExeclToRecordList for importing data to Record table. i am getting Exception "None of the column headers match with the record attributes."
Please help on below issue.
Hi Ravi,
Its looks like excel columns not match with Outsystems Entity that you are trying to import.
Normally Outsystems read excel first rows as columns in Entity, which has to match both side the same name, and count of excel first row and entity columns
Can you verify the excel first row, and match with entity you are trying to insert.
Thanks,
Balu
So,what should I do.
I can't verify the excel first row.
In Excel all columns are same what i have created in Entity.
In case someone is still having this problem:
I encountered the same error and did all of the recommendations I could find on the forums:
-> check if the columns in the Excel match the description of the structure attributes
-> check if the right sheet is selected
-> try deleting the excel to record list and implementing it again
...
I managed to fix it in the end by wrapping the excel to record list in a wrapper action, passing in the binary and having the record list as an output. not sure why this was needed, it seems like a bug. Worth noting: in my case, I was performing the excel to record list on a binary already stored in the database, not on an uploaded file.
Hello Ravi,
Check the Label property of the structure and compare if it is the same as the Name of the Header of the column in the excel.
Regards,
Ruben Rodrigues
I will explain the three typical scenarios, although yours seems to be the last one:
A shortcut to implement the 3. scenario logic is to follow the instructions on the 2. scenario to let the platform generate the bootstrap action and any required structures and then remove the generated timer and the Excel file in the Data->Resources folder, and adapt the generated action to perform the import and any extra logic required in 3.2.
Tell if this help you?Best regards,Nuno Verdasca
Another point, try use a logic flow like this:
Your Excel binary (from upload widget) should be put into File Content property.
You also need record definition, create structure that mimic your excel file columns.
Lastly, choose Sheet Name, or empty it for first sheet.
Cheeres,
Nuno Verdasca