Hi team,
Noticed something strange today, I have the code below to upload document to the file column, and it was wroking totally fine until today....
await safeAjax({
type: "PUT",
url: `${document.location.origin}/_api/mag_qualitymanagementquestions(${qualityManagementQuestionId})/mag_responsefile`,
contentType: "application/octet-stream",
processData: false,
data: fileContent,
headers: {
"content-length": fileContent.byteLength,
"x-ms-file-name": file.name
}
});
First error:
{"error":{"code":"90040101","message":"Attribute * in table mag_qualitymanagementquestions is not enabled for Web Api."}}
this is strange right, because mag_responsefile is exisit in the webapi site settings, but anyway i changed the site settings to *, then reseived the second error:
Second error:
{"error":{"code":"9004010D","message":"Common Data Service error occurred.","cdscode":"0x80040217"}}
I have publish all customisations and sync the portal
Cheers,
Dom
Hi @domliu ,
You have encountered with one the known Issues of CDS Error,
You can try out by Creating a Site Settings for Data Filter
Name: Webapi/<table name>/disableodatafilter
value : true
Please Refer to the Given Microsoft Blog for Known issues,
https://learn.microsoft.com/en-us/power-pages/configure/web-api-overview#known-issues
Thanks!
Inogic Professional Services Division
Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!
Drop an email at crm@inogic.com
Services: http://www.inogic.com/services/
Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43