Skip to main content

Posts

Showing posts from July, 2018

Trapped in Process fails with error 'The flow failed to access the value because it hasn't been set or assigned' WHILE IT IS NOT

If you have no idea about Known Issue : Process fails with error 'The flow failed to access the value because it hasn't been set or assigned ' , it's worth to check it first then you might want to read this entry. Issue : The user reports that when using Mass Edit to edit Opportunity it will prompt error Can't Save Record That's it. No sweet lovely sentence, no flowery and it's leave the mystery for us to dig out the root cause.Typical communication breakdown in love story. Luckily we have email system whereby we got chance to get the exception email straight in our inbox.Here the error : Error element myDecision (FlowDecision). The flow failed to access the value for myVariable_current.Owner.UserRole.DeveloperName because it hasn't been set or assigned. Just to clarify , yes we use process builder and we are aware of issue above whereby we need to put condition checking in proper order whenever our condition need to check value from

Pricebook, Pricebook Entry and Product : Adding custom pricebook in Salesforce

Lately I worked on these object a lot and learned a lot of new things. Some issues that we face around these object : Some exceptions during data upload  such as : FIELD_INTEGRITY_EXCEPTION .Message : field integrity exception: PricebookEntryId, unknown (versions 3.0 and higher must specify pricebook entry id, others must specify product id) No Standard Price defined Not able to retrieve standard price in test class Understand the relationship of these object Ignore Opportunity and Opportunity Line Item- these two object are using Price Book entry .Image credit to ForceTalk forum PriceBook Pricebook object store a list of products and services for sale. A pricebook can be used in one or more different opportunities. A pricebook has one or more different price entries. Pricebook can be divided into type which are :  Standard Price Book which is the master list of all the products and their default standard price . Custom Price Book is separate list