{"id":1134,"date":"2021-08-19T16:57:03","date_gmt":"2021-08-19T16:57:03","guid":{"rendered":"https:\/\/morecpq.com\/?p=1134"},"modified":"2024-01-24T08:50:59","modified_gmt":"2024-01-24T13:50:59","slug":"renewals-amendments-cannot-read-property-linevo-of-null","status":"publish","type":"post","link":"https:\/\/morecpq.com\/index.php\/2021\/08\/19\/renewals-amendments-cannot-read-property-linevo-of-null\/","title":{"rendered":"Renewals\/Amendments: Cannot read property \u2018lineVO\u2019 of null"},"content":{"rendered":"\n<p>This error.  \ud83d\udc4d\ud83c\udffb  The worst.  WHY DOES IT HAPPEN?!?!  I&#8217;ll TELL you why.  The CPQ demons want to eat your renewals and amendments for breakfast.  And they have.  Time to give up and retire to some remote island where you can sip on the souls of frustrated CPQ Specialists.  <\/p>\n\n\n\n<p>Kidding!  It happens because Assets!  Issues with Assets.  <a href=\"https:\/\/trailhead.salesforce.com\/trailblazer-community\/feed\/0D54S00000A7cpFSAR\" target=\"_blank\" rel=\"noreferrer noopener\">Here<\/a> is a link to the article that tipped me off to Assets.<\/p>\n\n\n\n<p><strong>More Detail<\/strong><\/p>\n\n\n\n<p>This is caused by one of two things but those two things are very similar!<\/p>\n\n\n\n<p><strong>Asset Record<\/strong><\/p>\n\n\n\n<p>On the Asset record, there are two fields: Required by Asset and Required by Subscription.  This error could be happening because one of those fields is blank but shouldn&#8217;t be.  Example:<\/p>\n\n\n\n<p>You have a piece of hardware configured.  Under this hardware, you put a required, selected Product Option that is a subscription.  Like a maintenance product or a warranty product or something.  It&#8217;s a subscription.  But the hardware product is not configured to convert to an Asset.  Everything is totally fine in the configuration screen and the line editor screen.  All is happy.  You&#8217;re demoing this for your client, expecting the OOTB renewals and\/or amendments to work.  BOOM.  You get this error and look like a doof.  WHO DID I HIRE?!  &lt;&#8211; customer is thinking.<\/p>\n\n\n\n<p>The renewal is trying to add that subscription to the renewal quote.  But it can&#8217;t because it can&#8217;t figure out what it is supposed to be attached to.<\/p>\n\n\n\n<p><strong>Subscription Record<\/strong><\/p>\n\n\n\n<p>On the Subscription record, there is a field: Required By Id.  This error could be happening because this field is blank but shouldn&#8217;t be.<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>Go update the Asset Conversion and Asset Amendment Behavior fields on these products that are not subscriptions but have subscriptions under them.  Asset Conversion = One per quote line -or- One per unit.  Asset Amendment Behavior = Default.  Go.  Do it.  Test it.  Fixed.<\/p>\n\n\n\n<p>PS. If this does not fix it, please drop a comment below and TELL ME.  I want to know and help fix your problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error. \ud83d\udc4d\ud83c\udffb The worst. WHY DOES IT HAPPEN?!?! I&#8217;ll TELL you why. The CPQ demons want to eat your renewals and amendments for breakfast. And they have. Time to give up and retire to some remote island where you can sip on the souls of frustrated CPQ Specialists. Kidding! It happens because Assets! Issues &hellip;<br \/><a href=\"https:\/\/morecpq.com\/index.php\/2021\/08\/19\/renewals-amendments-cannot-read-property-linevo-of-null\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Renewals\/Amendments: Cannot read property \u2018lineVO\u2019 of null<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/1134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":4,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"predecessor-version":[{"id":2630,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/1134\/revisions\/2630"}],"wp:attachment":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}