I'm trying to get a fullName field of a CustomObject in query
QueryResult queryResult =
toolingConnection.query("select TableEnumOrId, FullName, LastModifiedDate from CustomField " );
I have two developer edition accounts. In the first it works, in the second I get Invalid cross reference id. When I remove fullName from query, it works.
The code is absolutely the same in both cases, I change only credentials.
Here is the full error message:
[UnexpectedErrorFault [ApiFault exceptionCode='INVALID_CROSS_REFERENCE_KEY'
exceptionMessage='invalid cross reference id'
upgradeURL='null'
upgradeMessage='null'
]
]
What could be the reason?
And what does this exception generally mean?