Hi, has anyone managed to connect a Visio diagram to an Azure Sql database and refresh in the Sharepoint Visio Web Access viewer in Office 365?
This seems closest to the advice available (but not right for Office 365):
In Secure Store, set up new Target Application, set credentials to a SQL Server user with all permissions.
(also tried a separate user with db_datareader permissions, also tried with db_datawriter)
(literature says to use Active Directory login, but this doesn't seem to apply to Office 365 security setup?)
The Target Application I created works fine for External Content Types used for Sharepoint CRUD lists
In Visio, set up a SQLServer data source, tell it to use the Target Application ID in Visio Services Authentication Settings.
I take the generated .odc connection file and upload to a Sharepoint directory.
(literature says this should be in a 'Trusted Connections' folder - no sign of this in Office 365, other advice says Visio Services doesn't care where the file is located)
I change the Visio diagram to use the Sharepoint .odc file as the datasource. This works fine within Visio.
If I refresh in Visio it asks for SQLServer username and password. (this is expected)
If I refresh in the Sharepoint viewer I expect it to use the stored account but when I click 'Allow Refresh' I get the error:
"Visio Services was unable to refresh external data connections in this Web Drawing because it was unable to retrieve credentials to access underlying data sources from the farm's Secure Store Service. To resolve this issue, contact your system administrator."
Found loads of ideas online but they don't seem to apply to Office 365, e.g. I can't find any settings for Visio Services, don't have a trusted connections folder, not sure if using a Windows user is relevant etc.
Maybe should be using 'OData service'? But can't see how to use this as the Visio source.
An approach that kind of works:
Use a Sharepoint list, with a SQLServer source (External Content Type), as the source for the Visio diagram. If I update the list in Sharepoint, I can manually refresh the diagram immediately. But if I update the SQLServer database, the time before the diagram can be refreshed seems variable (0 - 3 mins?).
All suggestions really appreciated, thanks, Scott
This seems closest to the advice available (but not right for Office 365):
In Secure Store, set up new Target Application, set credentials to a SQL Server user with all permissions.
(also tried a separate user with db_datareader permissions, also tried with db_datawriter)
(literature says to use Active Directory login, but this doesn't seem to apply to Office 365 security setup?)
The Target Application I created works fine for External Content Types used for Sharepoint CRUD lists
In Visio, set up a SQLServer data source, tell it to use the Target Application ID in Visio Services Authentication Settings.
I take the generated .odc connection file and upload to a Sharepoint directory.
(literature says this should be in a 'Trusted Connections' folder - no sign of this in Office 365, other advice says Visio Services doesn't care where the file is located)
I change the Visio diagram to use the Sharepoint .odc file as the datasource. This works fine within Visio.
If I refresh in Visio it asks for SQLServer username and password. (this is expected)
If I refresh in the Sharepoint viewer I expect it to use the stored account but when I click 'Allow Refresh' I get the error:
"Visio Services was unable to refresh external data connections in this Web Drawing because it was unable to retrieve credentials to access underlying data sources from the farm's Secure Store Service. To resolve this issue, contact your system administrator."
Found loads of ideas online but they don't seem to apply to Office 365, e.g. I can't find any settings for Visio Services, don't have a trusted connections folder, not sure if using a Windows user is relevant etc.
Maybe should be using 'OData service'? But can't see how to use this as the Visio source.
An approach that kind of works:
Use a Sharepoint list, with a SQLServer source (External Content Type), as the source for the Visio diagram. If I update the list in Sharepoint, I can manually refresh the diagram immediately. But if I update the SQLServer database, the time before the diagram can be refreshed seems variable (0 - 3 mins?).
All suggestions really appreciated, thanks, Scott