Action Object_List return Error Object reference not set to an instance of an object if there is no object match Prefix that i sendbut if i leave Prefix as blank it return list of object normally.
Can anyone help or guide on this situation?
The error usually happens because the action is trying to access an object/property when no matching record is returned for the Prefix value. When Prefix is blank, the action returns all records, so no exception occurs.
You should add a null/empty check before accessing the returned object. Also verify that the result list count is greater than 0 before reading any item from the list. This will prevent the “Object reference not set to an instance of an object” error when no match is found
Thanks for your advise.But the error occur immediately after run Action Object_List.I will try to contact the support team for this case.
Hello @JenC.
This looks like a component bug.
As this component is maintained by OutSystems, you will probably have a better chance of having a fix if you can request support directly from OutSystems (as long as your company has this option).
At the component's page, there is the possibility to get support (below Tags at the Overview page)
Cheers!
OK I will try to contact the support team for this case.