Paged Query Sort Param throwing Error when Empty

Wappler Version : 4.1.3
Operating System : W10
Server Model: ASP .NET
Database Type: MSSQL

Expected behavior

When calling a server action which has a paged query using server connect, initially I should not have to send a sort or direction param.

Actual behavior

If the sort param is empty, the step is throwing a 500 error:

Message: "The ORDER BY position number 0 is out of range of the number of items in the select list."

How to reproduce

Create a regular paged query in a server action and try calling it using a server connect without setting any sort or direction params.

Test this update:

DMXzone.ServerConnect.DatabaseConnector.zip (27.3 KB)

1 Like

That works. Thanks. :slight_smile:

This has been fixed in Wappler 4.2.1

This topic was automatically closed after 46 hours. New replies are no longer allowed.