AttributeError: 'NoneType' object has no attribute 'cursor'

Hello Everyone,

When i execute a simple sql query like :

@{query} = DatabaseLibrary.Execute SQL String DELETE FROM pbm.t_report

I get this error :

AttributeError: ‘NoneType’ object has no attribute ‘cursor’

I didn’t understand what is the cause, if someone can help on this topic pls.

Thank you in advance.
Morad

DELETE FROM table WHERE selection

You are missing the WHERE statement.

1 Like