This function will return an error in the following cases:
- The handle is associated with an output stream.
- The stream number or index is out of bounds.
- The stream is not open.
- The stream is not set up to access attributes directly. To access attributes directly, it should be opened with options TBLOP_NOOPTIONS.