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

Deployment Failed because of An Error Occurred on your Page.

I have developed an application,prior to Friday when i used to do a build using Ant to any org Build got Successful but now i am facing a wierd situatution saying that Build Failed because of An error occurred on your page.
But Same code if i deploy from other Org it is getting Successful.

Any Help would be Great.

Mohammed Junaid.



I am getting the same error, any pointers as to what the problem was?




I'm getting the same error, can anyone assist?

Thanks in advance 


Found the source of the problem.


The problem is caused when one of the classes creates PageReference using Page.myPage

If myPage doesn't exist in the ORG yet - the meaningless error message 'An Error Occurred on your Page' is displayed for all apex classes.


For now we can just hardcode those kind of values, its easier to maintain hardcoded parameters than the unclear error messages from the deployment. Hope that salesforce will soon release something better than the sequential compile.