Find your content:

Search form

You are here

Multi-Record list button run from a list view filtered by Topic causes NoAccessException

 
Share

I have added a multi-record list button to the Contact object that forwards the selected records to a custom VisualForce page that is defined below.

<apex:page standardController="Contact" recordSetVar="selectedContacts">
    <apex:form >
        <apex:pageBlock id="pb" title="Selected Contacts">
            <apex:pageBlockTable id="pbTable" value="{!selected}" var="c">                    
                <apex:column value="{!c.id}"/>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

This button works as expected in most cases. However, when a Topic filter (screenshot below) is used on the Contact list view I get the following exception when clicking on the button:

system.security.NoAccessException: Object type not accessible. 
Please check permissions and make sure the object is not in development mode: 
Contact WHERE ( ((Topics INCLUDES 'Demo')) AND (id IN ('003F000001LLMhJIAX' 
^ ERROR at Row:1:Column:88 expecting a left parentheses, found 'Demo' 


Screenshot of the Topic filter

Screenshot of the Topic filter

Question: What could be causing this problem?


Attribution to: csnullptr

Possible Suggestion/Solution #1

This behavior has been identified as a bug by Salesforce.

Track the status of this issue here.


Attribution to: csnullptr
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/33895

My Block Status

My Block Content