AI Studio "Failed to count tokens for this attachment"

I am unable to ask the Gemini models about the Raspberry Pi RP2350 datasheet because of the error “Failed to count tokens for this attachment.”

Link to the datasheet in question: https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf

Simply try uploading the datasheet into AI Studio, and you will see the same error message. Hopefully this is a helpful test case for whoever is in charge of this feature.

1 Like

Hey @coder543, your document exceeds the supported page limit of 1000 pages. Thats the reason you are unable to upload the file.

Try uploading a pdf below 1000 pages.

Thanks

Thanks for the clarification. I wish the error message had just said that, because I’ve been trying this off and on again for several weeks to see if this was just a temporary issue with the backend. I also wish this limitation would be removed… either the end result would fit into the context window, or it wouldn’t, but the number of pages seems like an arbitrary division that isn’t connected to the number of tokens.