apex-sobjectdataloader icon indicating copy to clipboard operation
apex-sobjectdataloader copied to clipboard

QueryException: CollaborationGroupRecord requires a filter

Open RajeshKandisa opened this issue 9 years ago • 10 comments

I just installed this in our sandbox and tried to serialize an Account record. I received the following error: "System.QueryException: Implementation restriction: CollaborationGroupRecord requires a filter by a single Id, CollaborationGroupId or RecordId using the equals operator" at line 506.

Any suggestions? I am also looking at the same.

RajeshKandisa avatar May 08 '15 14:05 RajeshKandisa

@Sonal4J I believe there is a fix for this?

afawcett avatar May 17 '15 11:05 afawcett

@afawcett Yes. In my last commit I have fixed this issue.

Sonal4J avatar May 18 '15 04:05 Sonal4J

I last commit I see is for Oct 6, 2014. And I installed this last week. @Sonal4J Did you do a new commit? Can you please point out as how do I resolve this issue?

Thank you for your help.

RajeshKandisa avatar May 18 '15 07:05 RajeshKandisa

@RajeshKandisa https://github.com/afawcett/apex-sobjectdataloader/blob/master/apex-sobjectdataloader/src/classes/SObjectDataLoader.cls#L171 Add 'RecordAssociatedGroups' in the set private Set<String> childRelationshipWhitelist = new Set<String> {'RecordAssociatedGroups',....};

Sonal4J avatar May 18 '15 07:05 Sonal4J

Thanks. I will try that out.

RajeshKandisa avatar May 18 '15 07:05 RajeshKandisa

@RajeshKandisa this worked for me as well, thanks.

pbergner avatar May 19 '15 21:05 pbergner

Thanks. It worked.

RajeshKandisa avatar May 26 '15 07:05 RajeshKandisa

Thanks @Sonal4J!

Should this be permanent change to the code?

afawcett avatar Jun 06 '15 16:06 afawcett

@afawcett Yes. This needs to be fixed in the code permanently.

Sonal4J avatar Jun 07 '15 11:06 Sonal4J

Thanks, I have re-opened this issue and marked as a bug.

afawcett avatar Jun 08 '15 05:06 afawcett