Powerview connection error - sharepoint-2010

When I try to create a powerview report from an excel spreadsheet in Sharepoint, I get the following error message.
Please help
An error occurred while loading the model for the item or data source 'http://win-lnj1eq8qsfv:16350/PowerPivotTestSite/PowerPivot Gallery/Sum of Sales Quota.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source.
<detail>
<ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode>
<HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus>
<Message xmlns="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'http://win-lnj1eq8qsfv:16350/PowerPivotTestSite/PowerPivot Gallery/Sum of Sales Quota.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source.</Message>
<HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsCannotRetrieveModel&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.2100.60</HelpLink>
<ProductName xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName>
<ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.2100.60</ProductVersion>
<ProductLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId>
<OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem>
<CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId>
<MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices">
<Source>ReportingServicesLibrary</Source>
<Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsCannotRetrieveModel&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.2100.60" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'http://win-lnj1eq8qsfv:16350/PowerPivotTestSite/PowerPivot Gallery/Sum of Sales Quota.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source.</Message>
<MoreInformation>
<Source>Microsoft.ReportingServices.ProcessingCore</Source>
<Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsErrorOpeningConnection&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=1.0" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'TemporaryDataSource'.</Message>
<MoreInformation>
<Source>Microsoft.AnalysisServices.AdomdClient</Source>
<Message>A connection cannot be made. Ensure that the server is running.</Message>
<MoreInformation>
<Source>Microsoft.AnalysisServices.SharePoint.Integration</Source>
<Message></Message>
<MoreInformation>
<Source>Microsoft.AnalysisServices.SharePoint.Integration</Source>
<Message>The PowerPivot service application could not connect to the Analysis Services instance.</Message>
</MoreInformation>
</MoreInformation>
</MoreInformation>
</MoreInformation>
</MoreInformation>
<Warnings xmlns="http://www.microsoft.com/sql/reportingservices" />
</detail>

Basically if you read through the error you can see that it cannot open a connection to the data source TemporaryDataSource:
<Message msrs:ErrorCode="rsErrorOpeningConnection" ....
Cannot create a connection to data source 'TemporaryDataSource'.
</Message>
Check that you can access the Datasource manually - the connection string builder dialog should have a 'Test Connection' button.

Related

Unable to connect to Google BigQuery using Mule

I am trying to connect to BigQuery for migrating data and I am currently facing some issues in connection.
2 approaches which I am currently focusing on
Database Connector with passing JDBC connection string
<db:config name="Database_Config" doc:name="Database Config" doc:id="07671c43-86bc-4768-b914-c71058120615" >
<db:generic-connection url="jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=<project-id>;OAuthType=0;OAuthPvtKeyPath=<path-to-key-file>;OAuthServiceAcctEmail=<email>" driverClassName="com.simba.googlebigquery.jdbc42.Driver"/>
</db:config>
The above results in an error when testing connection
ToolingException{message='Got status code: 500 when trying to
resolve a Mule Runtime operation. Reason: 'Server Error.
{"errorType":null,"errorMessage":null,"errorDetail":null,"additionalProperties":{servlet=org.glassfish.jersey.servlet.ServletContainer-7bf5036,
message=Request failed.,
url=/mule/tooling/applications/4cfe61fc-a304-4ee5-8b52-36ed6e4cfd66/components/Database_Config/connection,
status=500}}'' , rootCauseMessage='null' , rootCauseType='null'
, rootCauseStackTrace='[]'} at
org.mule.tooling.client.api.exception.ToolingException$Builder.build(ToolingException.java:141)
at
org.mule.tooling.agent.rest.client.RestAgentToolingService.handleToolingAgentHandlerException(RestAgentToolingService.java:911)
at
org.mule.tooling.agent.rest.client.RestAgentToolingService.lambda$serviceExceptionOrToolingException$43(RestAgentToolingService.java:859)
at
org.mule.tooling.agent.rest.client.RestAgentToolingService.serviceExceptionOr(RestAgentToolingService.java:873)
BigQuery Connector provided by MuleSoft
<bigquery:config name="BigQuery__Configuration" doc:name="BigQuery Configuration" doc:id="3b8287ed-f3e5-4721-bd9e-96950347cf3a" >
<bigquery:jwt-connection privateKeyId="<private-key-id>" privateKey="<private-key>" issuer="<email>" projectId="<project-id>" />
</bigquery:config>
The above results in an error
org.mule.runtime.api.connection.ConnectionException: Could not
create connection Caused by:
org.mule.runtime.api.exception.MuleRuntimeException: Invalid PKCS8
data.
I made sure the credentials passed are appropriate and we also checked with the customer regarding appropriate privileges to use this but still did not find a way to solve this.
References
mulesoft-bigquery-jdbc

ODBC Connection in Project.params | SSIS

i need help establing ODBC Connection in project params in my SSIS.
Not sure what I'm doing wrong or I missed some steps.
My Source connection fails when im using my ODBC connection in project params.
But when I use package level ODBC Connection, it is working.
Error is:
[C8PF 1] Error: The AcquireConnection method call to the connection
manager FBEQ failed with error code 0xC0014009. There may be error
messages posted before this with more information on why the
AcquireConnection method call failed.
Highlighted in yellow are set to project.params
my odbc configuration:
I think that the main problem is in the ODBC Connectionstring provided in the parameter, click on the local package connection manager and press F4 to show the properties Tab. Go to Connectionstring property and check the syntax used. Try to use the same syntax in the parameter value.
Another thing to try, is providing an empty password in the connection string:
DSN=myDsn;Uid=myUsername;Pwd=;
connectionstrings - System DSN

Connection String for dynamic OLE DB Destination in SSDT/SSIS for SQLServer2014

I am new to SQL Server, but not SQL or programming in general. I have been reading the online documentation and tutorials available to set up a For each loop within SSDT/SSIS that loops through a series of flat files in a folder and creates a DB object for each with the same name.
The loop works, except setting up the Connection String for OLE DB Destination Manager. My Server is called 'OLEGS_LAPTOP' with a database called 'Football Data' and I am using the following Connection String:
"Provider=SQLNCLI11.0;Server=OLEGS_LAPTOP;Source=(local);Initial Catalog="+ #[User::FileFound] + "Football Data"+";Integrated Security=SSPI;Auto Translate=False;"
Here, #[User::FileFound] represents the variable set up in the Flat File Connection Manager for looping through the files in my chosen local folder. When I try using this Connection String for the OLE DB object, I get the following error:
TITLE: Package Validation Error
------------------------------
Package Validation Error
------------------------------
ADDITIONAL INFORMATION:
Error at Data Flow Task [OLE DB Destination [10]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Unspecified error".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "The metadata could not be determined because every code path results in an error; see previous errors for some of these.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid object name 'dbo.OLE DB Destination'.".
Error at Data Flow Task [OLE DB Destination [10]]: Failed to open a fastload rowset for "[dbo].[OLE DB Destination]". Check that the object exists in the database.
Error at Data Flow Task [SSIS.Pipeline]: "OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------
Can anyone tell me what I need to change in my string to get the desired result?
Thanks
Further to answers/support given so far:
The error message I am now receiving is:
TITLE: Package Validation Error
------------------------------
Package Validation Error
------------------------------
ADDITIONAL INFORMATION:
Error at Data Flow Task [OLE DB Destination [10]]: A destination table name has not been provided.
Error at Data Flow Task [SSIS.Pipeline]: "OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------
It looks like somehow the string "OLE DB Destination" got into table\view mapping (first screenshot) and [dbo].[OLE DB Destination] came out as a table name. Perhaps you've replaced table name with this string in the OpenRowset property of the OLE DB Destination properties window (second screenshot).
LATER EDIT
In order to be able to get table name from variable (assume that you have such variable with table name assigned to it) you need to change your OLE DB Destination's AccessMode property to OpenRowset From Variable and specify variable name in the OpenRowsetVariable property (see image below)

NServiceBus 5 - Sql Transport not writing audit records

I am using the sql transport and have the following defined in my config file for the sender and endpoint.
<section name="AuditConfig" type="NServiceBus.Config.AuditConfig, NServiceBus.Core" />
<AuditConfig QueueName="audit" />
The tables get successfully created, however, when my message handlers complete successfully and i check the tables no records are present. Is there something else I need to do to get this working?
Thanks
Low and behold this was an error within the outbox and a fix has been committed.
https://github.com/Particular/NServiceBus/issues/2702

SQL2008: MSOLAP & SSRS Class not registered error with certain dimension

Our product leverages Analysis Services combined with Reporting Services, we recently made some changed to add compatability for SQL2008. Everything works great except with certain dimensions, drillthroughs or measures added to a report we suddenly get this following error:
Server: The operation has been
cancelled. Errors in the high-level
relational engine. A connection could
not be made to the data source with
the DataSourceID of 'Adventure Works
DW', Name of 'Adventure Works DW'. OLE
DB error: OLE DB or ODBC error: Class
not registered.
Any ideas?
Found the issue.
SQL2008 doesn't come with the SQL Native Client provider which my cube was using to retreive data from the datawarehouse.
Solution:
Change the provider to SQL OLE DB Provider instead.
You can use XMLA if you so wish:
<Object>
<DatabaseID>Adventure Works DW</DatabaseID>
<DataSourceID>Adventure Works DW</DataSourceID>
</Object>
<ObjectDefinition>
<DataSource xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RelationalDataSource">
<ID>Adventure Works DW</ID>
<Name>Adventure Works DW</Name>
<ConnectionString>Provider=SQLOLEDB.1;Data Source=s;Persist Security Info=False;Integrated Security=SSPI;Initial Catalog=AdventureWorksDWDW</ConnectionString>
<ImpersonationInfo>
<ImpersonationMode>ImpersonateServiceAccount</ImpersonationMode>
</ImpersonationInfo>
<Timeout>PT0S</Timeout>
</DataSource>
</ObjectDefinition>
</Alter>