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
Michael Minnekeer 8Michael Minnekeer 8 

Trailhead - Define Custom Big Objects

I am trying to deploy the xml package for Customer_Interaction__b.object using the workbench for this unit. However I deploy and get success message in workbench but cannot see any big object.
  • I did see on the unit page it says that the examples are written for api unit 41.0 but my workbench doesnt allow me to go beyond 40. Does this matter?
  • My trailhead playground is on winter 18.
  • Does it matter what the file name for the object and permission set? (I do have the package.xml)
  • I have tried with and without having 'Single package' selected in workbench deploy
  • I have double checked the workbench is logged into the correct org
User-added image
User-added image




 
Best Answer chosen by Michael Minnekeer 8
Stephane PlanckeStephane Plancke

remove de .xml from your object en permisionSet file! 

en in your package xm set version to 41

All Answers

Michael Minnekeer 8Michael Minnekeer 8
I'm going to put my money on this being that workbench is in version 40. It just doesn't give me the option for 41 yet
User-added image
Stephane PlanckeStephane Plancke
I Have the same problem. Also with 41 version. Do you have a solution?
Michael Minnekeer 8Michael Minnekeer 8
Just tried again now that 41 is available, still having the same issue. Should this be the expected result?

User-added image
Stephane PlanckeStephane Plancke
Structure of Zip is verry important and not in the trail.
User-added image
Michael Minnekeer 8Michael Minnekeer 8
Still did not fix the issue. I get success message but no big object in salesforce. Is anything supposed to be selected on this screen?:
User-added image
Stephane PlanckeStephane Plancke
Yes Single Package
Stephane PlanckeStephane Plancke
Is it working? If not can you share your package.xml and onther files?
Michael Minnekeer 8Michael Minnekeer 8
Still does not work. I have tried your folder heirarchy with and without package.xml in root of zip file (I can't tell fom your screen shot of the folder Rider_History is the zip or a folder root level of the zip). Please see my zip file: https://www.dropbox.com/s/kse2xoq0xx1x5qh/CustomerInteractions.zip?dl=0 
 
Stephane PlanckeStephane Plancke

remove de .xml from your object en permisionSet file! 

en in your package xm set version to 41

This was selected as the best answer
Michael Minnekeer 8Michael Minnekeer 8
thanks that got it working. 
Andrejs VeliksAndrejs Veliks

Still don't work. 

with package.xml in root and in each folders ... 

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>
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
    <version>41.0</version>
</Package>
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>       
        <scale>4</scale>
        <precision>7</precision>
    </fields>
	
	<fields>
        <fullName>Start_Location_Long__c</fullName>
        <label>Start Location Longitude</label>        
        <required>false</required>
        <type>Number</type>    
        <scale>4</scale>
        <precision>7</precision>
    </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>
        <scale>1</scale>
        <precision>2</precision>
    </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.Start_Time__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_Account__c</field>
        <readable>true</readable>
    </fieldPermissions>

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

</PermissionSet>


 

 

Stephane PlanckeStephane Plancke
I see no problem in your code.

Do you have checked Single Package on deploy? and the good  structure in the zip --> see immage?
Andrejs VeliksAndrejs Veliks

yeh, it's strange, but I'll try one more time and all pass ok. 

 

really strange . 

Yes, I checked Single Package . 

Stephane PlanckeStephane Plancke

Do you use Mac or Windows pc?  

my zip file https://we.tl/CXMrRChNMy

Andrejs VeliksAndrejs Veliks
Windows 10 Pro.

Thank's for answers .. 
Kim SchaefgesKim Schaefges
I am having the same trouble. I get a success message in Workbench but no Big Object in Salesforce.  Do you have any other tips?
Michael Minnekeer 8Michael Minnekeer 8
Did you check folder heirachry and single package like @Stephane suggested?
Andrejs VeliksAndrejs Veliks

to Kim Schaefges; You can try one more time , may be all will ok. 

And check that frirst time You checked Check Only and Single Package

And after running You should to see that 

Number Components Deployed  9
Number Components Total 9


Not zero!

Stephane PlanckeStephane Plancke
1) make a zip file with the right structure.
2) do not add .xml on object and permissionset file
3) check Single Package on deploi
Stephane PlanckeStephane Plancke
4) if not working upload this zip ( I had problems with mac zip files so I created one in Windows) https://we.tl/CXMrRChNMy
Swati Patel 28Swati Patel 28


Stephane Plancke, Its not working with me. My code is perfect and my Zip files are too,.I am using mac, it could be that issues now. Could you please send me zip file as I cant access from above link. 

Thanks,

Swati

Ghanshyam Yadav19Ghanshyam Yadav19
Hi Stephane, i am facing same issue and not able to access zip file from ur given URL. can you help more. or please send me that zip file to gsyadav19@gmail.com
Kurkin AlexandreKurkin Alexandre
I had the same problem.I found solution how to successfully deploy  via Workbench.
You need to do two things.

1st: Change folder names as follows(object > objects, permissionset > permissionsets)
User-added image


2nd: You need to define files to deploy by name in package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>rider_history__b</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>rider_history</members>
        <name>PermissionSet</name>
    </types>
    <version>41.0</version>
</Package>
 
Andrejs VeliksAndrejs Veliks

One things .... 

Check filenames extentions for objects. It should be .obj , not.xml 
This is common case as I see .. 

Andrejs VeliksAndrejs Veliks
Oops not .obj but .object 
Sorry
Efraim Taranto 1Efraim Taranto 1
I was experiencing the same issue and manage to solve it by following Stephane Plancke instructions:

1) create package.xml and directories as instructed:
User-added image
2) I made sure the file extenstions were not XML - that actually made the trick:
User-added image
User-added image

3) I've selected all in the directory (package.xml + 2 directories) and send it to a zip file:
User-added image
4) Finally uploaded the file using workbench and all worked well (remember checking Single Package!!!), see image you should be expecting:

User-added image



 
David Pirrie 14David Pirrie 14
Thanks for all the help on this Challenge.
One more thing...
I found the Rider_History.permissionset examples given above were missing a label at the bottom ie
<label>Rider History Permission Set</label> 
 
ismael GACHAismael GACHA
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>
		<unique>False</unique>
        <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>
		<unique>False</unique>
        <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.Start_Time__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_Account__c</field>
        <readable>true</readable>
    </fieldPermissions>
    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.Rider_Rating__c</field>
        <readable>true</readable>
    </fieldPermissions>

</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>
    <types>
        <members>*</members>
        <name>PermissionSet</name>
    </types>
    <version>41.0</version>
</Package>

User-added image
=> After Zip
User-added image
=> Next 
User-added image
janardhan Gowkanpallijanardhan Gowkanpalli
User-added image

Hi am getting above  error any one help me
Oleg RebenkoOleg Rebenko
Hi Janardhan,

There are 3 reasons you may have such issue:
1. You put all your resources into folder before achiving. Root of your archive should have all 3 resources.
2. You are using Mac to pack it. See solution here https://medium.com/@wangyidan621/salesforce-workbench-zip-deployment-no-package-xml-found-error-on-mac-ec7ce49a7126 (https://medium.com/@wangyidan621/salesforce-workbench-zip-deployment-no-package-xml-found-error-on-mac-ec7ce49a7126)
3. You have wrong package.xml. Check its format in Trailhead Unit and try again.

Regards,
Oleg
V TV T
Use this to complete...
Step 1:- create folder with name objects
 
Create file wth name objects > 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>       
        <scale>4</scale>
        <precision>7</precision>
    </fields>
	
	<fields>
        <fullName>Start_Location_Long__c</fullName>
        <label>Start Location Longitude</label>        
        <required>false</required>
        <type>Number</type>    
        <scale>4</scale>
        <precision>7</precision>
    </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>
        <scale>1</scale>
        <precision>2</precision>
    </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>
Step 2:- Create folder with name permissionset
Create file with name permissionset > 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.Start_Time__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_Account__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>

Step 3:-
Create file with name package.xml

Step 4:- 

Create zip file with folders (objects, permissionset) and package.xml

You will get 100% success.
Gopi AGopi A
I am also getting the same error. 
please help
V TV T
Rename folder permissionsets to permissionset    
@Mahendra@Mahendra
@VT have used your all scenrios but It is not working. can you help me how to overcome this issue.
@Mahendra@Mahendra
It is not working
BlasiakBlasiak

@V T you R GREAT !
 
Jenna HuttJenna Hutt
Efraim Taranto 1's suggestions of selecting the two folders and one file and creating the zip file as package.zip and selecting single package is what worked for me.
Nathan Schneider 20Nathan Schneider 20
Yall- I spent 2 hours on this assignment and I think I had it right from the beginning. For anyone out there, maybe this will save you some time-- I was checking my trailhead environment the whole time. This exercise uses the developer edition environment so when doing the exercise make sure to click the drop down for CHOOSE YOUR HANDS ON ORG and change it to your developer edition. Man this training is confusing... 
Nevin O'Regan 3Nevin O'Regan 3
I'm having a nightmare with this task. Anyone have the exact instructions on how to complete this using a Mac? I'm facing two errors. I've followed the link provided by Salesforce to the blog post on how to get around this on a mac but still facing the same issue after trying multiple different types of ways. 
User-added image
BomanIraniBomanIrani
Do not zip on a Mac using the CLI - archive after selecting from the Finder and then "compress" option - that zip will work with Workbench package deploys.
Nevin O'Regan 3Nevin O'Regan 3
I eventually found the issue. For me I had to change the default preference settings of TextEdit from Rich Text to Plain Text and it solved the problem to a point. The issue I have now is even though Workbench is showing as successfully deploying the files, the big object is not showing. I have double checked to make sure that the files are being deployed to the correct Org and they are. 
Niranjana KNiranjana K
Can you send me the right code? I am getting an error..User-added image
Nevin O'Regan 3Nevin O'Regan 3
Hi Niranjana,

What is your email address?
Prasad N RPrasad N R
@Efraim Taranto 1 Thanks. Single Package had to be checked.
Ang Maria RufinaAng Maria Rufina
@VT
Your file works and I am very thankful.  May I ask if doing the object, permissionset and package files in notepad it won't work?  Am just trying to check if it is my zip file in question or the big object files creation in question.  Looking forward to your response
Tomasz GapskiTomasz Gapski
@Ang Maria Rufina,
I think that it's a matter of Windows hiding files extension. You may think it is "Rider_History.permissionset", but in fact it is "Rider_History.permissionset.txt".
Thomas
Gabriel Patrick SalasGabriel Patrick Salas
OK so i was able to solve the problem declaratively WITHOUT workbench so fast.....here are the steps


1. setup - Big Objects
2. Click New to create a big object. 
3. and plugin all the challenge requirements manually rather than using work bench or xml files. 

this will literally take 5 mins lol 

this is by far the best answer. trust me.

you're welcome.