After the Quote Line Microscope has been uninstalled, you must perform the following three-step process to make sure that no Quote Line Microscope “fingerprints” remain in your org. These steps are required to prevent errors in the Salesforce CPQ quote calculator.
Run “Execute Scripts” to refresh the Salesforce CPQ cache
In the Salesforce CPQ Settings Editor, go to the Additional Settings tab and press “Execute Scripts”
What it does
Salesforce CPQ maintains cached references to custom fields used in Price Rules, Price Actions, and formula evaluations. These references are not always immediately cleared upon package uninstall.
The “Execute Scripts” process acts as a cleanup utility, ensuring that the internal CPQ metadata state aligns with the current org schema. Running “Execute Scripts” forces CPQ to refresh its metadata schema and remove these invalid references:
Re-evaluates and resets internal references to fields, including any custom fields from previously installed packages.
Updates metadata caches and field references used by the Quote Line Editor, pricing engine, and other CPQ components.
Running “Execute Scripts” is considered safe and is commonly used after CPQ package upgrades, metadata/schema changes, and package installs/uninstalls.
If you do not “Execute Scripts”, you will get this error when you try and calculate a Quote
2. Delete “Logging” Rules and Actions
NOTE: You may have deleted the logging Price Rules and Price Actions using the Quote Line Microscope application before you uninstalled the package. If so, proceed to Step 3.
Delete Logging Price Rules
Execute the following query in the Developer Console:
SELECT Id, Name FROM SBQQ__PriceRule__c WHERE Name LIKE 'Marker:%'
If there are still logging Price Rule records in the org, you will see these eight records. Select them all and delete them. This action will also delete their associated Price Action records.
Delete Logging Price Actions
After deleting the logging Price Rules, you need to delete the logging Price Actions that were created for your other Price Rules. Execute the following query in the Developer Console:
SELECT Id, SBQQ__Field__c, SBQQ__Formula__c
FROM SBQQ__PriceAction__c
WHERE SBQQ__Field__c = 'Q9_QLM__Quote_Line_Log__c'
If there are still logging Price Action records in the org, you will see one of these records for every active calculator Price Rule. Select them all, and delete them.
If you do not delete the logging Price Actions, you will get this error when you try to calculate a Quote
3. Delete the Q9_QLM__Quote_Line_Log__c picklist value
The logging Price Actions automatically add a Q9_QLM__Quote_Line_Log__c picklist value to the Price Action’s Target Field (SBQQ__PriceAction__c.SBQQ__Field__c). Delete this value. NOTE: You may find it in the Inactive Values list. Still delete it.