You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test, change out the ID to a valid one, and a valid SObject Article Version Type in target org sfdx force:data:tree:export -u prod -q "SELECT Id FROM Knowledge__kav WHERE Id = 'ka36S0000006qgKQAQ'"
Should return a result matching that record ID, the actual resulting query that is executed is https://[org].my.salesforce.com/services/data/v55.0/query?q=select%20id%20from%20knowledge__kav%20where%20id%20%3D%20'ka36s0000006qgkqaq'
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Summary
https://github.com/salesforcecli/plugin-data/blob/3f1c0b64cc1205e13df1104864bb5d29f9ea41e8/src/api/data/tree/exportApi.ts#L127
The inbound query is lowercased. For some SObjects, specifically Knowledge__kav and other article version objects, a lowercased 18-digit ID is not considered a match for the upper-cased version. I fully understand this is wrong, it should match as that is the point of 18-digit Ids. Take it up with the team on the other end of that query. (I will open a separate support case)
Steps To Reproduce:
To test, change out the ID to a valid one, and a valid SObject Article Version Type in target org
sfdx force:data:tree:export -u prod -q "SELECT Id FROM Knowledge__kav WHERE Id = 'ka36S0000006qgKQAQ'"
Should return a result matching that record ID, the actual resulting query that is executed is
https://[org].my.salesforce.com/services/data/v55.0/query?q=select%20id%20from%20knowledge__kav%20where%20id%20%3D%20'ka36s0000006qgkqaq'
Expected result
It should have returned a single matching result.
Actual result
It returns nothing
System Information
Which shell/terminal are you using? powershell
If you are using
sfdx
sfdx version --verbose --json
The text was updated successfully, but these errors were encountered: