Hello, Trailblazers I have been trying to get over with the Big Objects Basics Trail, but stuck at Step 2. I have created a rider_history__b.object file, a permission set named rider_history.permissionset, and a package(xml file) but I can't deploy it. - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Abhirup MukherjeeAbhirup Mukherjee 

Hello, Trailblazers I have been trying to get over with the Big Objects Basics Trail, but stuck at Step 2. I have created a rider_history__b.object file, a permission set named rider_history.permissionset, and a package(xml file) but I can't deploy it.

Rider_History__b.object
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <deploymentStatus>Deployed</deploymentStatus>

    <fields>
        <fullName>Start_Location_Lat__c</fullName>
        <label>Start Location Latitude</label>        
        <required>false</required>
        <type>Number</type>       
        <precision>7</precision>
        <scale>4</scale>
    </fields>
	
	<fields>
        <fullName>Start_Location_Long__c</fullName>
        <label>Start Location Longitude</label>        
        <required>false</required>
        <type>Number</type>    
        <precision>7</precision>
        <scale>4</scale>
    </fields>
	
	<fields>
        <fullName>Start_Time__c</fullName>
        <label>Start Time</label>
        <required>true</required>
        <type>DateTime</type>
		<unique>false</unique>
    </fields>
	
	<fields>
        <fullName>End_Time__c</fullName>
        <label>End Time</label>
        <required>false</required>
        <type>DateTime</type>
		<unique>false</unique>
    </fields>
    
    <fields>
        <fullName>Service_Type__c</fullName>
        <label>Service Type</label>
        <length>16</length>
        <required>false</required>
        <type>Text</type>
        <unique>false</unique>
    </fields>
    
    <fields>
        <fullName>Rider_Account__c</fullName>
        <label>Rider Account</label>
        <length>16</length>
        <required>true</required>
        <type>Text</type>        
    </fields>
	
	<fields>
        <fullName>Rider_Rating__c</fullName>
        <label>Rider Rating</label>        
        <required>false</required>
        <type>Number</type>
        <unique>false</unique>
        <precision>2</precision>
        <scale>1</scale>
    </fields>    
    
	<indexes>
        <fullName>Rider_History_Index</fullName>
        <label>Rider History Index</label>
        <fields>
            <name>Rider_Account__c</name>
            <sortDirection>DESC</sortDirection>
        </fields>
        <fields>
            <name>Start_Time__c</name>
            <sortDirection>DESC</sortDirection>
        </fields>        
    </indexes>
	
	
    <label>Rider History</label>
    <pluralLabel>Rider Histories</pluralLabel>
</CustomObject>
 
rider_history.permissionset

<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
     
     
    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.Start_Location_Lat__c</field>
        <readable>true</readable>
    </fieldPermissions>
     
    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.Start_Location_Long__c</field>
        <readable>true</readable>
    </fieldPermissions>

    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.End_Time__c</field>
        <readable>true</readable>
    </fieldPermissions>
     
    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.Service_Type__c</field>
        <readable>true</readable>
    </fieldPermissions>

	 <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.Rider_Rating__c</field>
        <readable>true</readable>
    </fieldPermissions>

<label>Rider History Permission Set</label>


</PermissionSet>
 
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>41.0</version>
</Package>

 
Amit SinghAmit Singh
Are you getting any error?
Have you created the folders for Object and permission sets?

User-added image
Abhirup MukherjeeAbhirup Mukherjee
Hello Amit, yes I have created the folders for the object file and the permissionset. But when I deploy it using workbench it says Package.xml file not found. BigObjects is my main folder and as below:
BigObjects/Rider_History__b.object
BigObjects/rider_history.permissionset
BigObjects/Package.xml
Amit SinghAmit Singh
Objects File shoud be in objects folder and permission file shoud be in permissionsets folder and package.xml file should be in root directory.
Then these 3 things should be in a new Folder and make a Zip of that folder then try again. See above image
 
Abhirup MukherjeeAbhirup Mukherjee
Order of my folders.
Abhirup MukherjeeAbhirup Mukherjee
Error which I'm getting while deployment. I do have the package.xml file in folder. Can't understand that.
Abhirup MukherjeeAbhirup Mukherjee
Amit I did the same, as you mentioned earlier as well. But my deployment fails. 
Amit SinghAmit Singh
hmm strange.
Try to put all the files in other folder and then try again.
 
Abhirup MukherjeeAbhirup Mukherjee
I am still stuck in it! Can anyone help me in this??
Venkatesh Kumar SakthivelVenkatesh Kumar Sakthivel
@Abhirup, did you find a solution ?