Unable to find elemented located by Attributes

I’m having A LOT of issues trying to wrap my head around why this is happening, I’m trying to locate this element to click on by using Attributes:

instead of XPath and this is the XPath on the site:
But I can never click on it, I try to wait for it to be clickable, present etc but always fails saying unable to find element, works no problem with XPath but I need it to be changeable as it could be using different acct numbers

@KCTorno Could it be that you are trying to compare a number (size of a long, not int) to a String?

Hey thanks for the response, not that I know of, sometimes it finds the div and sometimes it doesn’t, I am so confused as to why as it’s just a simple div with text