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
Aaron Persich 15Aaron Persich 15 

Error: <apex:component> is required and must be the outermost tag in the markup at line 1 column 1

Hello,

I am trying to create a simple visualforce page on the task record with a flow and custom button.  I know a lot of people have had this same error message and I have read some posts but I have no idea on how to resolve this.  Any help is much appreciated.
 
<apex:page standardController="Task" Showchat="False" showheader="True" standardStylesheets="True">
    
    <style>
        .myFormStyle {
            background-color: blue;
        }
    </style>
   
               <flow:interview name="Close_Task" finishLocation="/{!$CurrentPage.parameters.id}">
                <apex:param name="varTask" value="{!Opportunity.Id}"/>
            </flow:interview>
                

</apex:page>

 
NagendraNagendra (Salesforce Developers) 
Hi Aaron,

Sorry for this issue you are facing.

I faced a similar issue in the past and the issue was with the chrome browser. I was able to figure out the above error when I tried it in the firefox and edge browsers.

For more information please refer to below link from the forums community. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra