function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rick RollRick Roll 

N>Help Can't Get Last Data with Query

Good Day Everyone !
I have a visualforce page where it lists all the contents of the csv in column 1 (CSV Field)​ and select you can select values for column 2 and 3.
User-added image
My problem is that I can't get the saved data for the last value  ( A Field )​ of the csv file even though I can query it with workbench.
User-added image
Can anyone please share any ideas and experiences on why this happens and how to solve this?​
Best Answer chosen by Rick Roll
Rick RollRick Roll
SOLVED
changed
where CSV__C =: header
to
​​where CSV__C =: header.trim()

I didn't notice that there was extra spaces on the last csv header when split​