You need to sign in to do that
Don't have an account?
Error with Deployment - Invalid version specified:12.0
I created an Apex trigger in Sandbox. I am now trying to deploy the Trigger using the Force.com IDE for Eclipse. When I get to the step where I "Validate Deployment" it results in a failure.
Deployment Log:
*** Deployment Log *** Result: FAILED ... # Deploy Results: Name: unpackaged/package.xml Action: NO ACTION Result: FAILED Problem: Invalid version specified:12.0
Does anyone know why this is happening? Could it be because our Sandbox was already upgraded to the Spring 08 (API version 12.0) release and our production instance wasn't yet (still API version 11.1)?
-greg
We'll see if we can reproduce that. In the meantime, try manually editing the <version> tag toward the bottom of package.xml to say <version>11.0</version> and see if that fixes things.
Jon
Could you manually edit src/unpackaged/package.xml changing "12.0" to "11.0". Sorry for the inconvenience.
-Chris
Message Edited by cwall_sfdc on 01-30-2008 05:54 PM
Thanks for the feedback on this. I made the change you guys suggested and that resolved the issue I originally posted about but now it's giving another error:
Any additional pointers?
-greg
Besides package.xml, these should be the only other files affected by this bug.
Also, in parallel, we managed to reinstall eclipse, and then re-install the old eclipse plugin. We had some trouble finding instructions for this online, so we uncovered some old notes (Thank you, Tom Scott!):
1. Double click the *Eclipse.exe* icon to launch Eclipse
2. Click *Help | Software Updates | Find and Install…*
a. Select Search for new features and click *Next*
3. In the *Update sites to visit* dialog box, check the box at the bottom
to *Automatically select mirrors*
4. Click *New Remote Site…*
a. *Name*: Apex Toolkit
b. *URL*: http://www.adnsandbox.com/eclipsetoolkit/10.0/
c. Click *OK*
5. Ensure that the *Callisto Discovery Site* and the new *Apex
Toolkit*are checked and click
*Finish*
6. In the *Search Results* dialog box, check the *Apex Toolkit* box and
like *Select Required *to make the boxes checked as pictured below, then
click *Next*
We've not actually promoted code with the old toolkit, but it appears to be working as before for reading and comparing and validating triggers. (Note: we installed the old toolkit on a fresh install of Eclipse Europa, not Callisto)
T&E -- JoeK
In the meantime, to deploy to production:
* Change the package.xml version is set to 11.0.
* For all the Apex Code/trigger -meta.xml, make sure you set the version to 11.0 (assuming you aren't using any new 12.0 features, there should be no problem just changing it either in the UI or in the XML file).
* In the -meta.xml files for .trigger, remove the element 'active'.
Sorry for the inconvenience.
Thanks,
- Bill
I also change the package.xml version set to 11.0. Also for all the Apex Code/trigger -meta.xml, i am set the version to 11.0. But its not working. It's giving me the same error.
any idea?
Thanks in Advance
NG
I am getting the same error while deploying the Apex Trigger to production. Kindly post me if you find any solution.
Thanks in advance,
NG
These changes must be re-applied after every refresh in eclipse, as it overwrites any changes in the XML files.
Note that we were able to promote some code using the old toolkit, but we hit a different snag there: some of our triggers required 11.x API features (Campaign.ParentId), and the old toolkit appears to be tied to the 10.0 endpoint. I'm not sure whether it is possible to change this in the old toolkit.
T&E -- JoeK
Can u please post me if you have any idea?
Thanks in advance
NG
We're not seeing the behavior you report. We just tested again. We removed the active element and chose file > save, and the change stayed in effect. Make sure you are NOT refreshing -- this is what overwrites the change for us.
Think & Enjoy -- JoeK
This might be an important distinction, then: You report that you're moving from a development org to a production org. We, on the other hand, are promoting from a sandbox that was built from production and then upgraded by SF to spring 08 recently. I think I've seen some other things in force.com behaving differently when running on our sandbox than when running on my own development org.
Think & Enjoy -- JoeK
Thanks,
- Bill
This helped me to resolve the issue.
Thanks again for all your help,
NG
Yes, sorry for not mentioning this in my initial post, in Eclipse, right click on the project and say 'work-offline'. Once offline, Eclipse will no longer save/refresh the files from the organization.
Thanks,
- Bill
Provided you saved all the changes while in offline mode, when you go online then to deploy, Eclipse shouldn't be overwriting your changes. If it's still not working for you, feel free to contact me offline & we can troubleshoot it together.
Thanks,
- Bill