You need to sign in to do that
Don't have an account?

Deploy error in IDE
Hello all,
I am trying to deploy a class via the Force.com IDE - Summer '08 version.
In the deployment wizard, Step 3, I choose JUST the class that I want to deploy. When I click the 'Validate deployment' button, the results say the deployment would fail. This is the error log (names xxx'ed out) :
*** Deployment Log ***
Result: FAILED
Date: July 26, 2008 2:33:42 PM EDT
# Deployed From:
Project name: Sandbox
Username: xxx@xxx.com.xxx
Endpoint: test.salesforce.com
# Deployed To:
Username: xxx@xxx.com
Endpoint: www.salesforce.com
# Deploy Results:
Name: unpackaged/classes/weeklyStatusQuery.cls
Action: NO ACTION
Result: FAILED
Problem: An error occurred on your page.
Name: unpackaged/package.xml
Action: UPDATED
Result: SUCCESS
Problem: n/a
# Test Results:
n/a
The only error indication is 'An error occured on your page'. This class saves properly (to the Sandbox) through the IDE, the code coverage is above 85%, and it works fine in the Sandbox. Is there any way of finding out what the 'error on page' is???? This is giving me nothing to go on...
Any help would be greatly appreciated.
Regards,
Gireesh
I am trying to deploy a class via the Force.com IDE - Summer '08 version.
In the deployment wizard, Step 3, I choose JUST the class that I want to deploy. When I click the 'Validate deployment' button, the results say the deployment would fail. This is the error log (names xxx'ed out) :
*** Deployment Log ***
Result: FAILED
Date: July 26, 2008 2:33:42 PM EDT
# Deployed From:
Project name: Sandbox
Username: xxx@xxx.com.xxx
Endpoint: test.salesforce.com
# Deployed To:
Username: xxx@xxx.com
Endpoint: www.salesforce.com
# Deploy Results:
Name: unpackaged/classes/weeklyStatusQuery.cls
Action: NO ACTION
Result: FAILED
Problem: An error occurred on your page.
Name: unpackaged/package.xml
Action: UPDATED
Result: SUCCESS
Problem: n/a
# Test Results:
n/a
The only error indication is 'An error occured on your page'. This class saves properly (to the Sandbox) through the IDE, the code coverage is above 85%, and it works fine in the Sandbox. Is there any way of finding out what the 'error on page' is???? This is giving me nothing to go on...
Any help would be greatly appreciated.
Regards,
Gireesh
Getting the exact same error from deploy test with ANT:
what could this 'error occurred on your page' be indicating? is there any way to know where this error is coming from?
Thanks
I found the problem. My test/coverage class referenced an Apex page that only existed in the Sandbox, not in Production. When i tried to deploy, the tests presumably didn't run since they couldn't find the page that was referenced. Once I created a dummy page in production with the same name , the code deployed.
So, I have a few remaining questions for the SF expert community at large:
-shouldn't one of the deploy tools been able to report this error a little bit more verbosely? I would have been nice to know that this file was the reason for the deploy error, rather than just 'there was an error on your page"
-Should I be referencing some 'built-in' page name when testing page parameters in a controller? was it wrong to use the name of an actual file??
thanks!
I came across the same problem today. I had an Apex test that referenced an Apex Page that did not yet exist in my Production instance. It did not yet exist, because its existence depended on the Apex Class that was being tested :-)
I tried the workaround you suggested and it worked. I created dummy Apex Pages in my production instance. After I did this, I was able to deploy from my Sandbox to my Production instance.
I hope someone can explain whether this is a bug, or whether we're just doing something wrong.
Thanks,
Jeremy
Yes,we need a proper error message for this error."An Error occured on your page" will not make any sense.
I also face similar type of issue,and fixed the same after looking into this thread.
Tx
Vasanth