devops-center-roadmap icon indicating copy to clipboard operation
devops-center-roadmap copied to clipboard

Cannot Add Some Component types due to malformed query

Open KarlLivesey opened this issue 10 months ago • 4 comments

When we try and add custom fields manually we are getting the following error in our logs

NAMED_CREDENTIAL_REQUEST NamedCallout[Named Credential Id=**********, Named Credential Name=**********, Endpoint=https://**********.sandbox.my.salesforce.com//services/data/v56.0/tooling/query/?q=SELECT+FullName%2C+LastModifiedBy.Name%2C+LastModifiedDate+FROM+CustomField, Method=GET, External Credential Type=EXTERNAL, HTTP Header Authorization=Method: Bearer - Credential: **********, Content-Type=null, Request Size bytes=-1, Retry on 401=True]

And we are receiving the following back:

CALLOUT_RESPONSE [44]|System.HttpResponse[Status=Bad Request, StatusCode=400]

Please see a screenshot of the issue here!

Screenshot 2023-10-20 at 13 36 32

KarlLivesey avatar Oct 20 '23 12:10 KarlLivesey

Endpoint=https://**********.sandbox.my.salesforce.com**//**services/data/v56.0/tooling/query/?q=SELECT+FullName%2C+LastModifiedBy.Name%2C+LastModifiedDate+FROM+CustomField

dwainIndigo avatar Oct 20 '23 12:10 dwainIndigo

Hi @KarlLivesey - Are you still seeing this error?

GilsonCanario avatar Feb 13 '24 21:02 GilsonCanario

Thank you @KarlLivesey - Do you see the same error when changes are being pulled instead of adding components manually?

GilsonCanario avatar Mar 22 '24 14:03 GilsonCanario