function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anschoeweGanschoeweG 

Set of SOBJECT:OpportunityLineItem not allowed

I'm a little baffled on why I'm getting this error when I validate my deployment against our full sandbox.  I'm able to save my class fine in my own developer sandbox but my deployment validation fails against full sandbox.

 

I realize Sets only recently gained support for containing sObjects.  With that in mind, I updated the apiVersion in all of my classes' *.cls-meta.xml file to version 19.0.

 

Does anyone know why I'm still receiving this error?  It's like my apiVersion number is being ignored.

 

Here's the full failure error:

 

 

Error: classes/OpportunitySplitterController.cls(OpportunitySplitterController):Set of SOBJECT:OpportunityLineItem not allowed
Error: classes/OpportunitySplitterControllerTests.cls(62,58):Dependent class is invalid and needs recompilation:
OpportunitySplitterController: line -1, column -1: Set of SOBJECT:OpportunityLineItem not allowed