- Paul Wiebe
- PowerBuilder
- Thursday, 27 February 2020 02:40 PM UTC
I have a datawindow that is getting it's information via an embedded select statement to my database. I have confirmed the select statement works against the database directly, and I have confirmed that they work when I use the "Run/Preview" within the PowerBuilder IDE. But when I run the application and execute a .Retrieve() on the datawindow object (being stored in a datastore type variable) then it returns a -1 instead of the 620 rows I would expect to see.
This .Retrieve used to work just fine, but I added a left join to two different tables, which I have confirmed still allow it to work, but when I add an item to select from one of those tables then it throws this error. If I hard-code that select to simply a 0 then it also retrieved without issue, so it's not the new column that seems to be the issue.
Does anyone have any ideas as to what could be causing this?
Paul
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.