When customer is running the REFRESH PLATFORM CACHE (FULL) Job, It is failing with Attempt to de-reference Null Object Exception.
Investigation summary:
---------------------------------------------------------
We captured the logs and found it was failing for certain products in the org there were issue with the products configuration.
Upon further checking the vlocity_cmt__AttributeAssignment__c records for the above impacted products we found there were unnecessary records present in the vlocity_cmt__AttributeAssignment__c table which are not part of object type from where the attributes are inherited. For eg: At the Product level we could see only 7 attributes associated with the product based on object type but there were 63 - 68 vlocity_cmt__AttributeAssignment__c records present.
After deleting and regenerating the right assignment the issue got resolved for the above products.
select id, Name, vlocity_cmt__ObjectTypeId__c, vlocity_cmt__ObjectTypeId__r.Name from Product2 where vlocity_cmt__ObjectTypeId__r.Name like '%(Impacted product Name)%'
You can execute the below query to check the data
select id,vlocity_cmt__IsActive__c, vlocity_cmt__IsActiveAssignment__c, vlocity_cmt__ObjectId__c,vlocity_cmt__DisplaySequence__c,vlocity_cmt__AttributeDisplaySequence__c,vlocity_cmt__AttributeDisplayName__c,vlocity_cmt__IsOverride__c from vlocity_cmt__AttributeAssignment__c
Please correct the data and perform the refresh of Jobs and we are not sure how this data has been created,inserted or migrated in the Org.
001612183

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.