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
Krishna Kumar 148Krishna Kumar 148 

Developer Intermediate Define Custom Big Objects

Struck on the new trail for the BigObject. Created those Bigobject using workbench. Can see the object on the Org. However, on validating throws up error "Challenge Not yet complete... here's what's wrong: 
Couldn’t find the correct information. Please double check the instructions." bit difficult judge on the problem. I can send the .xml files for verification.
 
Gaston Falco 9Gaston Falco 9
Check that you are putting the files in the correct folders. object file goes in the "objects" folder and permissionset goes in the "permissionsets" folder.

https://developer.salesforce.com/docs/atlas.en-us.bigobjects.meta/bigobjects/big_object_define.htm
Jan Cicharski_Jan Cicharski_
Having the same problem... Here are the XML's.

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>
        <unique>false</unique>
    </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>
        <unique>false</unique>
    </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>
        <precision>2</precision>
        <scale>1</scale>
        <unique>false</unique>
    </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_Big_Object.permissionset:
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">

    <label>Rider History Permission Set</label>
     
    <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.Service_Type__c</field>
        <readable>true</readable>
    </fieldPermissions>

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

    <fieldPermissions>
        <editable>true</editable>
        <field>Rider_History__b.End_Time__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>

Object & permission set is successfully validated and deployed on the org, object exists, along with permission set. Yet I get the error... Any ideas?
arpit vijayvergiyaarpit vijayvergiya
Hi Krishna Kumar,

While deploying Big Object make sure that you uncheck the 'Check only' box.

Thanks,
Arpit vijayvergiya
Krishna Kumar 148Krishna Kumar 148
Hi Jan,
Please check the code xml below.
<?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>
        <precision>7</precision>
		<scale>4</scale>
        <required>false</required>
        <type>Number</type>
        <unique>false</unique>
    </fields>
    <fields>
        <fullName>Start_Location_Long__c</fullName>
        <label>Start Location Longitude</label>
        <precision>7</precision>
		<scale>4</scale>
        <required>false</required>
        <type>Number</type>
        <unique>false</unique>
    </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>
        <required>false</required>
        <type>Text</type>
		<length>16</length>
       <unique>False</unique>
	 </fields>
<fields>
        <fullName>Rider_Account__c</fullName>
        <label>Rider Account</label>
        <required>true</required>
        <type>Text</type>
	   <length>16</length>
</fields>
<fields>
        <fullName>Rider_Rating__c</fullName>
        <label>Rider Rating</label>
        <required>false</required>
        <type>Number</type>
       <scale>1</scale>
	   <precision>2</precision>
</fields>
    <indexes>
        <fullName>Rider_History_Index</fullName>
   
        <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 History</pluralLabel>
</CustomObject>



Thanks all, I have figured out the issue could be because some tag mismatch b/w Object and expected metadata from Salesforce. The only diff that come to me is on the <unique>false</unique> false under Rating feild. Kindly check from your side.


Thanks,
Krishna
Sunad RasaneSunad Rasane
worked on it for a long time.. follow steps properly..
1)Create xml file with name "rider_history__b.object" and not "Rider_History__b.object" uppercase willl make difference.
2) paste the following code in it.
 
<?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>

3)Create xml file with name "rider_history.permissionset" and not "Rider_History__b.permissionset" uppercase willl make difference.
4) paste the following code in it.
 
<?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>

5)Create xml file with name "package" and not "Package" uppercase willl make difference.
6) paste the following code in it.
 
<?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>


7) Create a folder named "objects" and not "Objects" or "object". Uppercase and s will make a difference.
8) Move the file "rider_history__b.object" in "objects" folder.
9) Create a folder named "permissionsets" and not "Permissionsets" or "permissionset". Uppercase and s will make a difference.
10) Move the file "rider_history.permissionset" in "permissionsets" folder.
11) add these two folders and file "package" in a zip.
12)now after adding these files the file name of "rider_history__b.object" in "objects" folder will have been changed to "rider_history__b.object.xml".
kindly remove the .xml from that file name.
13)the file name of "rider_history.permissionset" in "permissionsets" folder will have also been changed to "rider_history.permissionset.xml".
kindly remove the .xml from that file name.
14)goto workbench. select version 41.0. login. goto migration. deploy. add zip file.
15)Note uncheck "Check only" and check 'Single package'
16)deploy

Pavlo ShchurPavlo Shchur
Thank you, your post is really helpful!
Himanshu DesaiHimanshu Desai
Hi, I am able to create the custom big object in the sandbox with the documentation shared with the PDF. Facing an issue to populate the Big Object using csv. I am using the Rest Explorer in the workbench to populate the records. I am going with the steps provided in the Trail Head for Bulk API module to populate this data. But it's throwing the below error 

-----
"sf__Id","sf__Error","Campaign_Member__c","Contact_Member__c","Sent_Status__c" "","UNKNOWN_EXCEPTION:EXTERNAL_OBJECT_UNSUPPORTED_EXCEPTION: A callout failed because an Apex operation has pending uncommitted work. The Apex code needs to commit or roll back before callouts can be performed in the same transaction.:--","70117000001TjWN","0031700000l9JZQ","Sent" "","UNKNOWN_EXCEPTION:EXTERNAL_OBJECT_UNSUPPORTED_EXCEPTION: A callout failed because an Apex operation has pending uncommitted work. The Apex code needs to commit or roll back before callouts can be performed in the same transaction.:--","70117000001TjWN","0031700000l91Ng","Sent"
----

Could someone help with the above query?

Thanks,
Nagarjuna ParalaNagarjuna Parala
Hi,
I solved the issue by following the steps.
Step 1: Create a file named "Rider_History__b.object" and paste the code below.

============================================================
<?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>
=================================================

Step 2: Create a file named "Rider_History.permissionset" and paste the below code.

=================================================
<?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>
=========================================

Step 3:Create a file named "package.xml" and paste the below code.

============================================

<?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>

=======================================

Step 4:Create a folder named "objects" and move the "Rider_History__b.object" file into it.

Step 5:Create a folder named "permissionsets" and move the "Rider_History.permissionset" file into it.

Step 6:Create a folder named "Rider History" and move the "objects folder, permissionsets folder and package.xml" file into it.

Step 7:Now open your "Rider History" folder, Select all i.e., your two folders and .xml file and compress there itself with a name "sample.zip".

NOTE : You must have to compress your files and folders in the "Rider History" folder only but not outside of the folder.

Step 8:Open the Workbench tool in a window and login.

Step 9: Under "Migration" tab, select "deploy". Now choose your "sample.zip" file and check the "Single Package" checkbox.


As it is worked for me, I hope it will works as it. Please let me know if you are facing issues.

Thanks and Regards
Nagarjuna Parala


 
Gabriel Patrick SalasGabriel Patrick Salas
i am getting this error:

"We couldn't find a field with the label 'Start Location Latitude' and name 'Start_Location_Lat__c'. Double check the instructions and try again."

but object has successfully deployed 

i do not seem to find anything on this issue. 

Does anyone know how to fix this problem?  please help!
Gabriel Patrick SalasGabriel Patrick Salas
OK so i was able to solve the problem declaritively WITHOUT workbench so fast.....here are the steps

1. setup - Big Objects
2. Click Newto create a big object. 
3. and plugin all the challenge equirements mnually rather than using work bench or xml files. 

this will literally take 5 min lol 

you're welcome.