My Oracle Support Banner

Javascript Error: "TypeError: Cannot Read Property 'then' Of Undefined" When Using onAttributeChange() and performAction() In Same Script (Doc ID 2733008.1)

Last updated on MAY 11, 2021

Applies to:

Oracle BigMachines CPQ Cloud Service - Version 20 A and later
Information in this document applies to any platform.

Symptoms

When implementing javascript in a HTML attribute using the CPQJS api methods onAttributeChange() and performAction() in the same script the following error occurs in the browser's console log

Uncaught (in promise) TypeError: Cannot read property 'then' of undefined
  at transactionMain.js?v=2020210011854:366
  at new Promise ()
  at Object.performAction (transactionMain.js?v=2020210011854:366)
  at partialShipmentsOnChange (:25:8)
  at l (transactionMain.js?v=2020210011854:366)
  at transactionMain.js?v=2020210011854:366



Changes

N/A

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.