PowerBI Embedded 导出功能不起作用
PowerBI Embedded export function not working
我正在使用 PowerBI Embedded sample app(应用拥有数据)
而且我的导出功能时而有效,时而无效。即使我什么都不做,它也会在几分钟后开始工作,因此无法解决问题。
我的导出函数:
function exp() {
report.getPages()
.then(function (pages) {
pages[0].getVisuals().then(visuals => {
console.log(visuals.length);
if (visuals.length >= 5) {
visuals[4].exportData(1, 1000)
.then(data => {
console.log('exportFunction');
})
.catch(function (errors) {
console.log('export error');
console.log(errors);
});
} else {
console.log("Error getting visual data");
}
});
});
}
此代码在线给出错误:visuals[4].exportData(1, 1000) 并给出这些错误(有时):
错误:
reportembed.externals.bundle.min.js:646 TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (reportembed.bundle.min.js:22)
at a (reportembed.common.bundle.min.js:16)
at Object.next (reportembed.common.bundle.min.js:16)
at n (reportembed.common.bundle.min.js:16)
at reportembed.externals.bundle.min.js:659
at m.$digest (reportembed.externals.bundle.min.js:670)
at reportembed.externals.bundle.min.js:673
at e (reportembed.externals.bundle.min.js:570)
at reportembed.externals.bundle.min.js:573
at t.invokeTask (reportEmbed.min.js:1
错误:
reportEmbed.min.js:1 Unhandled Promise rejection: Cannot read property 'Underlying' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (reportembed.bundle.min.js:22)
at a (reportembed.common.bundle.min.js:16)
at Object.next (reportembed.common.bundle.min.js:16)
at n (reportembed.common.bundle.min.js:16)
at reportembed.externals.bundle.min.js:659
at m.$digest (reportembed.externals.bundle.min.js:670)
at reportembed.externals.bundle.min.js:673
at e (reportembed.externals.bundle.min.js:570)
at reportembed.externals.bundle.min.js:573
at t.invokeTask (reportEmbed.min.js:1) TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.bundle.min.js:22:454)
at a (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:27283)
at Object.next (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:26618)
at n (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:26350)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:659:168
at m.$digest (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:670:130)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:673:157
at e (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:570:449)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:573:300
at t.invokeTask (https://app.powerbi.com/13.0.4898.154/scripts/reportEmbed.min.js:1:376613)
知道发生了什么吗?
我有 PowerBI.Javascript V2.5.0 和 PowerBI.Api v2.0.11
这是产品中最近出现的错误。
最近部署了一个修复程序。
有关详细信息,请参阅 ,因为这与所报告的问题相同。
我正在使用 PowerBI Embedded sample app(应用拥有数据)
而且我的导出功能时而有效,时而无效。即使我什么都不做,它也会在几分钟后开始工作,因此无法解决问题。
我的导出函数:
function exp() {
report.getPages()
.then(function (pages) {
pages[0].getVisuals().then(visuals => {
console.log(visuals.length);
if (visuals.length >= 5) {
visuals[4].exportData(1, 1000)
.then(data => {
console.log('exportFunction');
})
.catch(function (errors) {
console.log('export error');
console.log(errors);
});
} else {
console.log("Error getting visual data");
}
});
});
}
此代码在线给出错误:visuals[4].exportData(1, 1000) 并给出这些错误(有时):
错误:
reportembed.externals.bundle.min.js:646 TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (reportembed.bundle.min.js:22)
at a (reportembed.common.bundle.min.js:16)
at Object.next (reportembed.common.bundle.min.js:16)
at n (reportembed.common.bundle.min.js:16)
at reportembed.externals.bundle.min.js:659
at m.$digest (reportembed.externals.bundle.min.js:670)
at reportembed.externals.bundle.min.js:673
at e (reportembed.externals.bundle.min.js:570)
at reportembed.externals.bundle.min.js:573
at t.invokeTask (reportEmbed.min.js:1
错误:
reportEmbed.min.js:1 Unhandled Promise rejection: Cannot read property 'Underlying' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (reportembed.bundle.min.js:22)
at a (reportembed.common.bundle.min.js:16)
at Object.next (reportembed.common.bundle.min.js:16)
at n (reportembed.common.bundle.min.js:16)
at reportembed.externals.bundle.min.js:659
at m.$digest (reportembed.externals.bundle.min.js:670)
at reportembed.externals.bundle.min.js:673
at e (reportembed.externals.bundle.min.js:570)
at reportembed.externals.bundle.min.js:573
at t.invokeTask (reportEmbed.min.js:1) TypeError: Cannot read property 'Underlying' of undefined
at r.<anonymous> (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.bundle.min.js:22:454)
at a (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:27283)
at Object.next (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:26618)
at n (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.common.bundle.min.js:16:26350)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:659:168
at m.$digest (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:670:130)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:673:157
at e (https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:570:449)
at https://app.powerbi.com/13.0.4898.154/scripts/reportembed.externals.bundle.min.js:573:300
at t.invokeTask (https://app.powerbi.com/13.0.4898.154/scripts/reportEmbed.min.js:1:376613)
知道发生了什么吗?
我有 PowerBI.Javascript V2.5.0 和 PowerBI.Api v2.0.11
这是产品中最近出现的错误。 最近部署了一个修复程序。
有关详细信息,请参阅