10
Views
4
Comments
[Amazon Simple Storage Service (S3)] Action Object_List return Error Object reference not set to an instance of an object.
Application Type
Reactive

Action Object_List return Error Object reference not set to an instance of an object if there is no object match Prefix that i send
but if i leave Prefix as blank it return list of object normally.

Can anyone help or guide on this situation?

2025-09-25 14-38-22
Lokesh Kumar Yadav

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

UserImage.jpg
JenC.

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.

2026-06-05 12-38-17
Eduardo Jauch

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!

UserImage.jpg
JenC.

OK I will try to contact the support team for this case. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.