Forum Discussion
Neehar
Helper I
4 years agoPower Bi embed report - Invalid Character ` in internet explorer 11
Hi,
I've embeded a power bi report in an IFrame. It work's fine in Chrome and Edge Browsers.
But in the internet explorer 11 facing an issue. I see an error Invalid character ` in the dynamically generated power bi js file in the line
url = resolvedClusterUri + "/explore/reports/" + config.id + `/modelsAndExploration?preferReadOnlySession=true${window.isMobile ? '&mobileStateEnabled=true': ''}`;
//below is the method from dynamically generated file
function getModelsAndExploration(config, resolvedClusterUri) {
if (!modelsAndExplorationPromise || !config.id || config.id.indexOf("-") === -1) {
// This happens in cases where getModelsAndExploration is not needed, like QnA embed.
return;
}
try {
modelsAndExplorationFrontLoadStartTime = Date.now();
var activityId = telemetrySessionId;
var requestId = 'd3acce88-6b11-4492-9387-aaa478472b11';
url = resolvedClusterUri + "/explore/reports/" + config.id + `/modelsAndExploration?preferReadOnlySession=true${window.isMobile ? '&mobileStateEnabled=true': ''}`;
if (config.datasetBinding && config.datasetBinding.datasetId) {
url += "&datasetObjectId=" + config.datasetBinding.datasetId;
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
try {
var status = xhr.status;
if (xhr.readyState == XMLHttpRequest.DONE) {
modelsAndExplorationFrontLoadEndTime = Date.now();
if (isSuccess(status)) {
var response = xhrBuildResponse(xhr, activityId, requestId);
modelsAndExplorationPromise.resolve(response);
modelsAndExplorationRequestId = requestId;
} else {
if (modelsAndExplorationPromise) {
try {
modelsAndExplorationPromise.reject(xhrBuildResponse(xhr, activityId, requestId, true /*isError*/));
}
catch (e) {
console.error(e);
// Cannot parse an error out of the response
modelsAndExplorationPromise.reject(buildExceptionResponse(activityId, requestId, e, modelsAndExplorationPrefix, status));
}
}
}
}
}
catch (e) {
console.error(e);
if (modelsAndExplorationPromise) {
modelsAndExplorationPromise.reject(buildExceptionResponse(activityId, requestId, e, modelsAndExplorationPrefix));
}
}
}
xhr.open("GET", url);
setGETRequestHeadersWithGroupId(xhr, telemetrySessionId, requestId, config);
xhr.send();
}
catch (e) {
console.error(e)
if (modelsAndExplorationPromise) {
modelsAndExplorationPromise.reject(buildExceptionResponse(activityId, requestId, e, modelsAndExplorationPrefix));
}
}
}
Please help.
Thank you
1 Reply
- lbendlin
Super User
unless you are paying extra the support for IE has long since been discontinued.