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
Riad Gulabkhan 10Riad Gulabkhan 10 

Cannot validate big object module

Hi,

I'm trying to validate the big object module where I have to create the big object : Rider history.
After creating the 3 xml files, zip them and deploy them using the workbench (without any error), When I go back to Salesforce to make sure that the big object is created, no big object is available.
Does I miss something ?

I thought that my xml files were not good so I tried to create another really simple big object. It wasn't successfull

Can someone provide an example of xml files (not what is available on the internet because I tried them but some that lead to really create big object into salesforce)

Thanks a lot
Best Answer chosen by Riad Gulabkhan 10
Alain CabonAlain Cabon
Hi,

Verify:  
  1. <length>7</length> (text) and <precision>7</precision> (number
  2. All the full Names ( Start_Location_Latitude__c or Start_Location_Lat__c ?)
  3. The orders ASC and DESC
  4. For the numbers, date times: <unique>false</unique> is useless.
Use this order:

 <fields>
        <fullName>Start_Location_Latitude__c</fullName>
        <label>Start Location Latitude</label>
        <required>false</required>             
        <type>Number</type>
        <scale>4</scale>
        <precision>7</precision>
        <unique>false</unique>  // useless for numbers and datetimes
</fields>

Fields:
Start_Location_Lat__c
Label: Start Location Latitude
Required: False
Type: Number
Unique: False
Precision: 7
Scale: 4
 

All Answers

Alain CabonAlain Cabon
Hi,

The deploymeny is not explained. The easiest way is to use the workbench (zero local installation needed).

If you are using only your playground currently (you must be connected), the connection with the workbench will be direct from the following URL:

https://workbench.developerforce.com/login.php

1) select "Single Package"  (and "Check Only" for verification without deploying)
2) package.zip  with three files and two folders (/objects/ and /permissionsets/ ) :
  • objects/Rider_History__b.object
  • permissionsets/Rider_History_Big_Object.permissionset
  • package.xml
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>
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
    ...
    <label>Rider History Big Object</label> 
    ...
    
</PermissionSet>

I need to add a label (missing in the trailhead challenge) for the permission set.

User-added image
User-added image
User-added image

By the way, I need to pass all the superbadges (done) and all the technical trailhead challenges (progressively) if I want to help the people here about any of them.

Regards
Alain CabonAlain Cabon
Workbench > Migration > Deploy (menu-items). 

The workbench is the Swiss knife of all the developers and administrators of Salesforce.
Riad Gulabkhan 10Riad Gulabkhan 10
Thanks a lot Alain,

I identified what was not good : the folder tree was not correct
After changing that, i'm still not able to create a big object. No big object is displayed on Salesforce
I don't understand.

I will try with another trailhead org
Alain CabonAlain Cabon
Coud you post your source file of Rider_History__b.object ?

The robot only tests the result of this file (the permission set is useless).
Riad Gulabkhan 10Riad Gulabkhan 10
Hi Alain

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

    <fields>
        <fullName>Start_Location_Latitude__c</fullName>
        <label>Start Location Latitude</label>
        <length>7</length>
        <required>false</required>
        <type>Number</type>
        <unique>false</unique>
        <scale>4</scale>
    </fields>
    
    <fields>
        <fullName>Start_Location_Longitude__c</fullName>
        <label>Start Location Longitude</label>
        <length>7</length>
        <required>false</required>
        <type>Number</type>
        <unique>false</unique>
        <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>
        <length>2</length>
        <required>false</required>
        <type>Number</type>
        <scale>1</scale>
        <unique>false</unique>
    </fields>
  
    <indexes>
        <fullName>RiderHistoryIndex</fullName>
        <label>Rider History Index</label>
        <fields>
            <name>Rider_Account__c</name>
            <sortDirection>DESC</sortDirection>
        </fields>
        <fields>
            <name>Start_Time__c</name>
            <sortDirection>ASC</sortDirection>
        </fields>
    </indexes>
    
    <label>Rider History</label>
    <pluralLabel>Rider History</pluralLabel>
</CustomObject>

Thanks
Alain CabonAlain Cabon
Hi,

Verify:  
  1. <length>7</length> (text) and <precision>7</precision> (number
  2. All the full Names ( Start_Location_Latitude__c or Start_Location_Lat__c ?)
  3. The orders ASC and DESC
  4. For the numbers, date times: <unique>false</unique> is useless.
Use this order:

 <fields>
        <fullName>Start_Location_Latitude__c</fullName>
        <label>Start Location Latitude</label>
        <required>false</required>             
        <type>Number</type>
        <scale>4</scale>
        <precision>7</precision>
        <unique>false</unique>  // useless for numbers and datetimes
</fields>

Fields:
Start_Location_Lat__c
Label: Start Location Latitude
Required: False
Type: Number
Unique: False
Precision: 7
Scale: 4
 
This was selected as the best answer
Riad Gulabkhan 10Riad Gulabkhan 10
Alain,

Sorry for the late reply, I was really busy at work
Thanks a lot, I finally manage to create a big object and validate the trailhead level

Regards
Riad
Eric de TaevernierEric de Taevernier
Hi,
I have just passed this module but for sure in 25 minutes.
My issue was the filenames for the object and the permissions.
Exactly the fileextensions were not correct

package.xml
objects/<myBigObject>.object   // no .xml euxtension
permissionSets/<myPermission>.permissionset // no .xml extension
Under windows, uncheck option to hide extensions on known file type to verify the file extensions

Regards
Eric