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
Nitin tronixdevNitin tronixdev 

Using Migration Tools

I am facing problem while deploying object to one account to another in salesforce ... These account belongs to different url one is with Enviroment hub and other without enviroment hub..
I want to transfer objects + VF PAGES + CONTROLLERS to url with enviroment hub from without enviroment hub url

i m using migration tool with ANT and JAVA and cmd from windows 7

and after performing depolying i am getting following errors :-

Buildfile: C:\project\build.xml

deploy:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af2400000gGXxSCAW
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress (0/200)  -- Processing Type: CustomObject

[sf:deploy] Request Status: InProgress
[sf:deploy] --------------------------------------------------------------------
---------------
[sf:deploy] Component Failures:
[sf:deploy] 1.  objects/Leave_Managment__c.object (Leave_Managment__c.Leave_Appr
overs_Leave_Managment) -- Error: In field: queue - no Queue named Leave_Approver
s found (line 115, column 16)
[sf:deploy] --------------------------------------------------------------------
---------------
[sf:deploy] Request Status: Failed

BUILD FAILED
C:\project\build.xml:20:
*********** DEPLOYMENT FAILED ***********
Request ID: 0Af2400000gGXxSCAW

All Component Failures:
1.  objects/Leave_Managment__c.object (Leave_Managment__c.Leave_Approvers_Leave_
Managment) -- Error: In field: queue - no Queue named Leave_Approvers found (lin
e 115, column 16)
2.  objects/Entity__c.object (Entity__c.AU_Lead__c) -- Error: Invalid Field: Con
tact.Designation__r.Name (line 65, column 26)
3.  objects/Entity__c.object (Entity__c.Cluster_Lead__c) -- Error: Invalid Field
: Contact.Designation__r.Name (line 121, column 26)
4.  objects/Entity__c.object (Entity__c.Regional_Entity_Director__c) -- Error: I
nvalid Field: Contact.Designation__r.Name (line 792, column 26)
5.  objects/Issue__c.object (Issue__c.Contact__c) -- Error: Invalid Field: Conta
ct.Shift_Management__c (line 94, column 26)
6.  objects/Risk_Assessment__c.object (Risk_Assessment__c.AU_Lead__c) -- Error:
Invalid Field: Contact.Designation__r.Name (line 65, column 26)
7.  objects/Site_Management__c.object (Site_Management__c.Site_Manager__c) -- Er
ror: Invalid Field: Contact.Designation__r.Name (line 208, column 26)
8.  objects/Add_Inventory__c.object -- Error: inventorynewpage does not exist or
 is not a valid override for action View.
9.  objects/Add_WareHouse__c.object -- Error: addwarehousenewpage does not exist
 or is not a valid override for action View.
10.  objects/Attendance__c.object -- Error: excel_file_uploading does not exist
or is not a valid override for action New.
11.  objects/Check_List__c.object -- Error: check_list does not exist or is not
a valid override for action New.
12.  objects/Designation__c.object -- Error: designationnewpage does not exist o
r is not a valid override for action View.
13.  objects/Entity__c.object -- Error: entitynewpage does not exist or is not a
 valid override for action View.
14.  objects/Invetory_Management__c.object -- Error: inventory does not exist or
 is not a valid override for action Edit.
15.  objects/Business_Enagegment__c.object -- Error: bussiness_enagegment does n
ot exist or is not a valid override for action New.
16.  objects/Issue__c.object -- Error: issuetaboverride does not exist or is not
 a valid override for action Tab.
17.  objects/Leave_Managment__c.object -- Error: leavemanagementnewpage does not
 exist or is not a valid override for action View.
18.  objects/Manage_work__c.object -- Error: managerworknewpage does not exist o
r is not a valid override for action View.
19.  objects/ReOccurring_Jobs__c.object -- Error: re_occurring_jobs does not exi
st or is not a valid override for action New.
20.  objects/Risk_Assessment__c.object -- Error: riskassessmentpage does not exi
st or is not a valid override for action View.
21.  objects/Shift_Managment__c.object -- Error: shiftnewpage does not exist or
is not a valid override for action View.
22.  objects/Site_Management__c.object -- Error: sitenewpage does not exist or i
s not a valid override for action View.
23.  objects/View_Check_List__c.object -- Error: view_check_list does not exist
or is not a valid override for action New.
24.  objects/WareHouse__c.object -- Error: warehousenewpage does not exist or is
 not a valid override for action View.

*********** DEPLOYMENT FAILED ***********

Do  I need to create VF and there CONTROLLERS again ??
Is there any other way to achieve this???
..................................................................

this is my package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>
    <version>32.0</version>
</Package>



 
Ajay K DubediAjay K Dubedi
 Hey Nitin ,
         You have to add all the components used in the objects, vf pages because if you miss anyone of them it will throw error continuously  so first of all review all the components you are migrating and add all the dependent fields or entities then it will give you a positive result.