Has anyone played with the new beta for being able to delete fields from a managed package?
The Issue I am having is:
- Field has been delete in managed package
- Package installed in target org
- I can access the field via the Dev console when logged into the target org as a user of that org:
[Select xxx__Deleted_Field__c From xxx_Object__c];
just fine - However when putting the EXACT same query in an apex class (not part of package) I get the "Invalid Field" error
- In addition, when I get the values from the Dev Console they debug fine but when I pass the object list to the class the debug now shows the fields not present
Any ideas why I can do something in the dev console but NOT in an apex class with the exact same code?
Dev Console Output
14:15:52.119 (119531093)|EXECUTION_STARTED
14:15:52.119 (119540405)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex
14:15:52.120 (120738649)|SOQL_EXECUTE_BEGIN|[1]|Aggregations:1|select xxx__Assigned_Attorney__c, xxx__Additional_Attorneys__c, xxx__Assigned_Paralegal__c, (select xxx__Case__c, xxx__Staff_Member__r.Name, xxx__Role__c from xxx__Staff_Members__r) from xxx__Case__c where ID = 'a02G000000I8zv6'
14:15:52.139 (139711318)|SOQL_EXECUTE_END|[1]|Rows:1
14:15:52.140 (140089765)|USER_DEBUG|[3]|ERROR|(xxx__Case__c:{xxx__Additional_Attorneys__c=B T, Id=a02G000000I8zv6IAB, xxx__Assigned_Paralegal__c=C M})
14:15:52.159 (159001989)|METHOD_ENTRY|[1]|01pG0000003q6kO|migrateToStaffMembers.migrateToStaffMembers()
14:15:52.159 (159268235)|USER_DEBUG|[4]|ERROR|(xxx__Case__c:{Id=a02G000000I8zv6IAB})
14:15:52.161 (161819069)|USER_DEBUG|[162]|ERROR|Invalid field xxx__Paralegal__c for xxx__Case__c
Line 1: Debug of xxx__Case__c object List - Passed this List to the method - migrateToStaffMembers Line 4: Debug of the value of the passed in list in Line 1 Line 162: error
All of this was from the dev console, the class is NOT part of the package, it was written to see if we could migrate data from a lookup filed to a new object in the package.