Hello Raul,
This is a limitation of the API when you use the querydef function.
The workaround is to use an attribute like noLineCount="1" or lineCount="<max_records>" inside the JS to overcome the limitation .
Else, you the OOB update data activity which does not have any such limitation as Vipul suggested
Regards,
Adhiyan