• Kees de Koning
  • 25 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
We are starting up a new B2B project using CloudCraze. I must say it is far from being mature. We spend most of our development time to manually replicate and sync the commerce data in our development and test orgs. When we first install CloudCraze we can load the preexisting 'CC_Data2', which is zip file containing xml files of commerce data.
My question is, do we have a way to export existing commerce data from an org in 'CC_Data2' file format?  We need this because we can not keep up with a lot af changes by manually monitoring. I would be suprised and disappointed if there is no way to do this, although there is nothing mentioned in the documentations.
I'm trying to do the Understanding Execution Context module challenge and I really can't see why this won't work. The following code says
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AccountTrigger: execution of BeforeInsert caused by: System.SObjectException: DML statement cannot operate on trigger.new or trigger.old Class.AccountTriggerHandler.CreateAccounts:

trigger AccountTrigger on Account (before insert) { 
     if ( Trigger.isBefore && Trigger.isInsert)

public class AccountTriggerHandler {
    public static void CreateAccounts(List<Account> Accnts)
         List<Account> ValidAccounts = new List<Account>();
            for (Account a : Accnts) {
               a.ShippingState = a.billingState;
            if (ValidAccounts.size() > 0) {
                insert ValidAccounts;