It turns out it was the component and not the code. The component called for a key that had to be a string, even though I was converting my int key (from the db) to a string, when it was put into the componenet, it still saw it as an int. I had to preface the key with a letter so 123 became R123 and it all worked.