Skip to main content

An Administrator's No-Code, One Day, Salesforce CPQ Migration (2)





Handling this fish was a whole lot harder that my whole CPQ migration project.  Why?  The fish has spikes, and my first bait was taken by a snapping turtle!  In case you missed the first post, my plan is to clone my current Trailhead CPQ playground in order to get a good testing ground for that awful step 15 of the Salesforce Billing specialist superbage.  I was terrified to corrupt quote #15, since I need #15 in order to pass.  The only logical solution - clone the org.  The last post talked about migrating metadata.  Today is all about data, data , data.  


I felt brave after catching the fish, so, instead of taking a slow, thoughtful approach to the Salesforce data migration, I decided to go with the sledge hammer approach and push all records at one time.  The result? A bunch of errors, all related to my bad selections.    Fortunately, the errors were Admin Friendly such as:

09-Apr-20 08:39:27,Insert failed 8013h000000TPj7AAG. [Salesforce API] Invoice Batch: bad value for restricted picklist field: White Glove Batch (Fields: blng__InvoiceBatch__c) (Code: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST)

Translation:
I can not push this record because the "White Glove Batch" picklist value does not exist in my New Salesforce yet.  

Solution: 
Push the picklist...click, click, go.  Then re-push the data.  Problem Solved! 

Instead of the sledgehammer approach, I decided to use my Admin skills and set up the data push in a more logical way, starting with the Cloud Kicks account (plus all of the related objects)

... brief interruption.  Do not worry, I survived.



Data Migration 1: Products
Needed before I can insert the opportunity line items!



Step 2: "Start"  This is much more friendly than data loader! 


Data Migration 2: Accounts plus all relationships


Starting with the account, I picked up all related objects.  Before I hit the button to "push" the data, I added a few more things to my list o' records to restore like the tax rates. 

Tax Rates are fierce little records because they only connect (for the Billing Specialist Superbadge) with the "Tax Code" text field.   I was caught off guard by missing this object the first time round!  Fortunately my tool (CopyStorm/Restore) is 100% incremental, so I could just add the objects that I was missing, and have it resume AND reconnect the record relationships. 

Data Migration 3: Consumption Schedules

Do you remember creating the consumption schedules- creating, adding things, not activating until the end?  They are tough to insert because you can not insert a consumption rate without a consumption schedule... and you can not insert an active consumption schedule.  It's a loop, and the simplest fix was to pop into the database and change the Consumption Schedule to not be active.  Yuck!  I panicked a little bit... because I have no idea how to manipulate a database.  Fortunately, it is not that hard - even for an admin!  The next post will be all about the END of this migration starting with how to do the small tweak in an H2 database. 




"Database manipulation is not as "messy" as you may think!"
- Trailhead Baby (all click, no code) 




Comments

Post a Comment

Popular posts from this blog

Service Cloud Specialist Superbadge - 4,5,6,7

Part of doing the Service Cloud Specialist superbadge is trying new things, so I am putting up picture of new things that I've tried recently.  One of my favorite new things this week was taking a shower with my whole block collection.  Mom put me in the shower, and I sneaked out to grab the block bin and dumped it in.  I'm concerned to share photos because of the slight nudity, however, I can assure you that it was a glorious adventure.  Instead, I'll share my favorite Saturday new thing- walking to the coffee shop for a sprinkle donut!  Back to the superbadge... Challenge 4 Case Routing If you haven't taken the Onmi Channel module yet, now is a good time! I kept that particular module open one on screen while I walked through this step.  It is hard to give many hints about this step without giving away too many details - so - the best advice is to read through the challenge and label each step with the corresponding Salesforce term.  (IE - "The channel, Sto

Service Cloud Specialist Superbadge - 1,2,3

A confession - I know next to nothing about service cloud.  While I was excited that a new superbadge was available, it made me a little nervous that I had to do all of the prerequisites and tackle new things like macros.  New things - new year - let's get started! (Right after I finish guitar practice) If you are also a service cloud novice, the Omni-Channel Basics is a crucial prerequisite even though it is not officially required. Challenge 1 App Appearance  This, like all superbadges, requires a careful read through the instructions prior to any clicking.  I found it helpful to take a separate notebook and write down the steps that I would need for each challenge step - for example -  My rough notes for challenge 1: Create 2 profiles  Tweak service Console 3 new items on utility bar Allow access for new profiles Create User  Beware - After editing the service console, you might have to edit the new profiles.  I found it necessary to click "edit&quo

Business Administration Specialist Superbadge- 3 & 4

This afternoon, I added a genius wig in an attempt to look a little older and more experienced.  The free lemonade offer worked!  I made two dollars today!  A huge thank you to Jocelyn Fennewald , Salesforce MVP, for pointing out the "remove all columns" option within the report creator.  When you start a create a new report, simply click to start with a clean screen.  If you are familiar with report and dashboards, this challenge should only take 30 or so minutes to complete.  Below are tips and gotchas for each report / dashboard.  If you need more help, leave a comment! Reports Accounts by Market To create the "Market" row grouping, use a bucket field. Make sure that the correct date range is selected. High Value Residential  This report includes: 1 filter, 1 grouping, and 1 summarized field.  Rated Accounts by State The record count for state and account rating are automatically added. Note the filter.  Open Support Cases You ma