I was using the following function from Office js library to display a Excel dialog -
Office.context.ui.displayDialogAsync(startAddress, options, callback)
On closing the dialog box programatically and trying to open it again , it is showing the following error -
Error code - 12007 .A dialog box is already opened from the task pane. A task pane add-in can only have one dialog box open at a time.
The issue is persisting at Microsoft Excel 16.13
. It works fine on all the previous versions of Excel.