Some embedded dxp files fail to open with an error - "Prompting is not allowed for shareable documents"

Some embedded dxp files fail to open with an error - "Prompting is not allowed for shareable documents"

book

Article ID: KB0075892

calendar_today

Updated On:

Products Versions
Spotfire Web Player All Versions

Description

Description:

Certain embedded dxp files with unused Data Connection will fail to open in the Web Player User Interface.
Prompting error occurs when prompting is defined in data connection query and on scheduling such dxp, it will fail with this error as use of prompts is not feasible when caching a dxp

Symptoms:
Unable to open an embedded analysis in Web Player. Error: "Prompting is not allowed for shareable documents".

ClientError: Unable to open analysis 'Analysis File test'.

System.InvalidOperationException: Prompting is not allowed for shareable documents.
at Spotfire.Dxp.Web.WebAnalysis.OpenShareableMasterDocument(PartiallyOpenedDocument tmpPod)
at Spotfire.Dxp.Web.WebAnalysis.<OpenFromCache2>d__4a.MoveNext()
at Spotfire.Dxp.Web.WebAnalysis.<OpenWithProgress>d__68.MoveNext()
at Spotfire.Dxp.Web.PromptHandler.PromptItem.PromptNext()
at Spotfire.Dxp.Web.PromptHandler.PromptItem.Execute()

Cause:
The error is related to prompting for credentials for an adapter. Since the data is embedded it should not ask for any credentials.

 

Resolution

Remove the Connection that does not have any tables.

1). Select Edit-> Data Connection Properties
2). Delete the connection named Connection.
3). Press OK.
4). Save the analysis to library.

Issue/Introduction

Some embedded dxp files fail to open with an error - "Prompting is not allowed for shareable documents"