afawcett / apex-toolingapi

Apex wrapper for the Salesforce Tooling API
BSD 3-Clause "New" or "Revised" License
134 stars 98 forks source link

Error getting retrieving metadata on FieldDefinition #42

Open sierra82 opened 8 years ago

sierra82 commented 8 years ago

Came across this, I think it might be a bug:

ToolingApi toolingApi = new ToolingApi();
ToolingAPIWSDL.QueryResult qr = toolingApi.query('Select metadata From FieldDefinition WHERE EntityDefinition.QualifiedApiName=\'Account\' ','ToolingAPIWSDL.FieldDefinition');

Throws the following exception:

System.JSONException: Duplicate field: ToolingAPIWSDLMetadata.PicklistValue.won_type_info

afawcett commented 8 years ago

Yes agree, looks odd, will take a look.