You need to sign in to do that
Don't have an account?
Bug report: SOSL silently fails when using an implied namespace
Hi All,
As salesforce doesn't seem to have an offical bug tracker or bug reporting system I don't know where else to post this.
I've found and duplicated a number of times an issue when using SOSL with an implied namespace the search fails silently.
For example, assuing a namespace of tst, this query would properly search:
List<List<SObject>> searchList = [FIND :searchText IN ALL FIELDS RETURNING
tst__customObj__c(id, LastModifiedDate, name, tst__Description__c, tst__Status__c, tst__Subject__c, tst__Type__c, RecordType.name)];
While this query would properly compile, and run without exception, but always return no results, even if there are valid matches:
List<List<SObject>> searchList = [FIND :searchText IN ALL FIELDS RETURNING
customObj__c(id, LastModifiedDate, name, tst__Description__c, tst__Status__c, tst__Subject__c, tst__Type__c, RecordType.name)];
This differs from SOQL, and as the later bugged example compiles this behavior is clearly not intended. As SOSL is already poorly documented and tricky to use this additional barrier to entry
Are you seeing this behavior in your development org or your subscriber's org?
Sorry for the late reply, been a crazy couple of weeks for me.
I'm seeing this in the development org.