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
Rohith Kumar 98Rohith Kumar 98 

Error when creating new action of type lightning web component.

I get this error "Lightning Web Component quick actions are not supported for this entity" when trying to create new action of type LWC.

The meta.xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>52.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordAction</target>
    </targets>
    <targetConfigs>
        <targetConfig targets="lightning__RecordAction">
            <actionType>Action</actionType>
        </targetConfig>
    </targetConfigs>
</LightningComponentBundle>

User-added image
mukesh guptamukesh gupta
Hi Rohit,

I think you have modify  <actionType>Action</actionType> after create your component ,  annd in your screen shot SubType: Screen Action. that's why your facing issue. 

Now you need to delete this component and create a new one.

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 
Rohith Kumar 98Rohith Kumar 98
@mukesh gupta I deleted and created other lwc and set action type as Action before deploying but, still I get the same error.


IDK why the file name is changed after trying to create action also the dropdown was Lightninc Component before trying to create and changed to visualforce page after clicking save.

User-added image
mukesh guptamukesh gupta
Hi Rohit,

Please Refresh your sandbox.

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh