Questions tagged [compile-error]

Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors in the code, or, more unusually, due to errors in the compiler itself. A compilation error message often helps programmers debugging the source code for possible errors.

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

Root cause for “Entity is not org-accessible” for sharing object?

Not able to find Sharing object for custom object Apttus_Proposal__Proposal__Share; giving me error while List<Apttus__APTS_Agreement__share> st = new List<Apttus__APTS_Agreement__c>();
4
votes
2answers
25k views

Static method cannot be referenced from a non static context: List<String>

I believe this is a basic query and am missing something out. However am exasperated finding an answer to the issue and thus seek your guidance. The intent is to create a static method ...
-1
votes
1answer
435 views

Case field mapping with custom object fields?

i have posted this question earlier but i'm not getting the proper solution please read the requirement carefully.* i have a custom object Integration__c and it has fields username__c,password__c,...
10
votes
2answers
2k views

What is the best way to cast/convert Map<String, SObject> to Map<Object, Object> and back again?

To reduce code duplication, at the risk of type safety, I have some method: public Map<Object, Object> doSomething(Map<Object, Object> inputMap) { Map<Object, Object> outputMap; ...
5
votes
2answers
3k views

Map<Object, List<SObject>> cannot be cast to Map<String, List<Account>>

I'm trying to cast a Map<Object, List<SObject>> to Map<String, List<Account>>, which fails with the error Incompatible types since an instance of Map<Object,SObject> ...
0
votes
2answers
70 views

Initial term of field expression must be a concrete SObject : List

I have written some code to auto-close incident after 5 days in Remedyforce. But I am getting error shown below. Error Initial term of field expression must be a concrete SObject : List Code ...
0
votes
2answers
2k views

Deployment error - dependent.class.invalid not found

I am deploying salesforce components using ANT and I am seeing this strange error and don't know what exactly it means by. I have included all the dependent components. Please let me know if anyone ...
0
votes
1answer
5k views

Only top-level class methods can be declared static

I'm really hoping someone can help me here. I have tried numerous times with this code but still get the same error. I have even used other code I have found on-line that apparently 'works', but with ...