+ Start a Discussion
junaid_ajjunaid_aj 

Deployment Failed because of An Error Occurred on your Page.

Hi,
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.

Regards,
Mohammed Junaid.
danlatdanlat

Hi,

 

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

 

Thanks

rforcerforce

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


Thanks in advance 

rforcerforce

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.