function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nitin Rawat 9Nitin Rawat 9 

AuraDefinitionBundles

Hello Everyone,

I am getting this error message:

"sObject type:AuraDefinitionBundle'is not supported".

any workaround and solution for this?

Thanks in advance!!

VinayVinay (Salesforce Developers) 
Hi Nitin,

When do you get this error?

Thanks,
Vinay Kumar
Nitin Rawat 9Nitin Rawat 9

Hi Vinay, 

I have Tile Component which I am using in Community and I am trying to show that Tile in Public site but unfortunately it is not showing their. When I hard referesh it and check my debug log I got this message on my handler class. Here is the query on which I am getting this error message:
 auradefinitionBundle adb = [select NamespacePrefix , developerName from auradefinitionBundle where id=:cmpId and namespaceprefix != 'GW_CMS' limit 1];

Thanks!!
       

VinayVinay (Salesforce Developers) 
Hi Nitin,

Can you check API version it should be 32.0 and later.

Thanks,
Vinay Kumar
Nitin Rawat 9Nitin Rawat 9
Hi Vinay, 
already updated to 40.0 but still getting the error.

Thanks!!
VinayVinay (Salesforce Developers) 
Hi Nitin,

I tried to check but haven't found anything related or any permission missing.  Can you specify full error something like Eg:- "sObject type 'AuraDefinitionBundle' is not supported in describeLayoutByUiType" ?

Thanks,
Vinay Kumar