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
Timmy AhluwaliaTimmy Ahluwalia 

Internal Error

I am calling the aura component(Record edit form) from the VF page.
When the record is not found it throws the Internal Error 500. I want to throw an custom message and how to avoid this error message.
<apex:page showHeader="false" sidebar="false" lightningStylesheets="true" standardStylesheets="false"> <apex:includeLightning /> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <script> // Here 'VfApp' Is Lightning Application Name $Lightning.use("c:VFOut1App", function() { $Lightning.createComponent("c:VFOut1", {}, "LcDisplayId", function(component) {}); }); </script> </head> <body> <div id="LcDisplayId"></div> </body> </apex:page>

 
mukesh guptamukesh gupta
Hi Timmy,

Are you using REST API for Data integration?

Regards