Can anyone help with this? Not sure why the DB reader is not able to execute, is there any limitation on the number of lines it can handle?
In my query, I tried to limit to the top 10 lines to load but still showed the error message “Cannot allocate enough memory”, even in preview. Also, notice it has the default SELECT * FROM in the statement, I am scared by default it will pull overall before reading the custom query, has anybody have any idea how to fix this? Appreciate your help!
Welcome to the forum. The DB Reader does not have a limit. I would add the DB Row Sampling – KNIME Hub node in between the DB Table Selector and DB Reader to add the Limit of 10. If you still get memory errors you can try writing the data to disk and seeing what is actually coming back by going to the “Job Manager Selection” Tab on the DB Reader and selecting Disk instead of Memory.
If that works then you can increase the memory settings for you KNIME AP or keep it on disk.
Have you encountered this before or any way I can troubleshoot the issue? Not sure if any node can bypass the instruction to read the entire table before instructing the top 10? Thinking it shouldn’t be a problem if just pull a minimal record.
The query does not execute until you use the DB Reader Node - none of the nodes should try to get the full table unless you have not put any limits on the DB Reader Node - so the limit is still causing SAP to return the memory limit. You can try to execute the query outside of KNIME, or check with the SAP team to see where the memory limit is coming from.