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
mukesh guptamukesh gupta 

How to fix Field_Integrity_Exception

I am creating Lightning componant. but not able to save this componant.

User-added image

Thanks
Mukesh
thatheraherethatherahere
HI Mukesh,

Please remove "namespace." prefix before your controller name. 

A namespace prefix is required if you plan to offer managed packages on the AppExchange and to get a namespace you required to create a manage package in your developer org. If this component is not a part of manage package you don't need to put namespace prefix. 

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespaces_intro.htm

Hope this helps.

Regards,
Govind Thathera
 
Narender Singh(Nads)Narender Singh(Nads)

Hi, 
Simply use:
controller="FileSharingController"

Namespace are given for managed packages.

Let me know if it helps

mukesh guptamukesh gupta
Hi

I have removed name space, but facing same error again

User-added image

Thanks
Narender Singh(Nads)Narender Singh(Nads)
Hi, 
Use dotsquaremukesh:FilesharingController
Narender Singh(Nads)Narender Singh(Nads)
Also please make sure you have class named as filesharingcontroller in your org.