Error connecting to database help

Hello Friends,

I’m having a problem doing a select within a query on uipath, however when doing the same query within the database it works without problems.

The error when making the query is as follows:

Execute Query: ERROR [55000] ERROR: currval of sequence “arquivo_bkp_id_arquivo_seq” is not yet defined in this session;
Error while executing the query