Showing posts with label built. Show all posts
Showing posts with label built. Show all posts

Sunday, February 26, 2012

Error in DMX query

Hi

I have the following query used to predict the values in 2006 based on cluster model built using 2004 and 2005 data. I'm using a prediction join on a cube containing the data. I can join a single dimension from the cube to a column in a the data mining model. However when I try to join to a column in a nested table I get this error:

Executing the query ...

Obtained object of type: Microsoft.AnalysisServices.AdomdClient.AdomdDataReader

Internal error: An unexpected exception occured.

Execution complete

The query I'm running is this

select t.*

, Predict([Time].[Deal Count])as predicted_deal_count

, Predict([Time].[Deal Revenue])as predicted_deal_revenue

, Cluster()

From

[Time]

prediction join

(

select {[Measures].[Deal Count], [Measures].[Deal Revenue]} on 0,

non empty {{[Time].[Month Number Of Year].[Month Number Of Year].members} *

{[Country].[KeyCountry].[KeyCountry].members} * {[Country].[Region].[Region].members}} on 1

from [DM]

where ([Time].[Year].&[2006-01-01T00:00:00])) as t

on

[Time].[Month Number Of Year] = t.[[Time]].[Month Number Of Year]].[Month Number Of Year]].[MEMBER_CAPTION]]]

and [Time].[Country].[KeyCountry] = t.[[Country]].[KeyCountry]].[KeyCountry]].[MEMBER_CAPTION]]]

and [Time].[Country].[Region] = t.[[Country]].[Region]].[Region]].[MEMBER_CAPTION]]]

I'm running SQL Server 2005 with SP2 CTP2.

Thanks

Sanjay

Given the limited error message - we need to try additional queries to see if we can narrow the problem down. Alternatively, you could send us a backup of your database - let me know if this is an option.

Can you see if this query works? Does it return what you expect?

select t.*

From

[Time]

NATURAL prediction join

(

select {[Measures].[Deal Count], [Measures].[Deal Revenue]} on 0,

non empty {{[Time].[Month Number Of Year].[Month Number Of Year].members} *

{[Country].[KeyCountry].[KeyCountry].members} * {[Country].[Region].[Region].members}} on 1

from [DM]

where ([Time].[Year].&[2006-01-01T00:00:00])) as t

|||

Hi,

Your query works as expected, all the selected data from the cube is return. It would be possible to send you the cube offline, do you need the just the cube or the relational db as well?

Thanks

Sanjay

|||

A backup of AS database with the cube and model is enough. Please remove any additional objects (e.g. cubes or mining structures) to reduce the database size. You can also do a process clear structure only on the Mining Structure to reduce the size even further. Try compressing it as well (although it should be compressed already).

You can send the data to jamie "at" sqlserverdatamining.com and we'll look into the issue

Thanks!

|||We are still looking into this issue - thanks for your patience.

Error in deployment of Reports

Hello,
I have built a report on SSRS 2005 and wanted to deploy that report as a
URL. However, it gives me an error which reads - "The permissions granted to
user '<Machine Name>\IUSR_<Machine Name>' are insufficient for performing
this operation. (rsAccessDenied)". Any idea whats causing this error. I get
the same message when I try to log on to http://localhost/reportserver.
The IIS on the machine has anonymous access enabled as well as Integrated
Windows Authentication.
Thanks.Bingo (anonymous access). You are not given the rights to deploy because you
are anonymous.
Turn off anonymous access on Reports and ReportServer webs.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Vince Keller" <siliinvestor@.hotmail.com> wrote in message
news:Ox1%23AujPGHA.532@.TK2MSFTNGP15.phx.gbl...
> Hello,
> I have built a report on SSRS 2005 and wanted to deploy that report as a
> URL. However, it gives me an error which reads - "The permissions granted
> to user '<Machine Name>\IUSR_<Machine Name>' are insufficient for
> performing this operation. (rsAccessDenied)". Any idea whats causing this
> error. I get the same message when I try to log on to
> http://localhost/reportserver.
> The IIS on the machine has anonymous access enabled as well as Integrated
> Windows Authentication.
> Thanks.
>|||That worked!
Thank you very much.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:ubRl21jPGHA.4952@.TK2MSFTNGP09.phx.gbl...
> Bingo (anonymous access). You are not given the rights to deploy because
> you are anonymous.
> Turn off anonymous access on Reports and ReportServer webs.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Vince Keller" <siliinvestor@.hotmail.com> wrote in message
> news:Ox1%23AujPGHA.532@.TK2MSFTNGP15.phx.gbl...
>> Hello,
>> I have built a report on SSRS 2005 and wanted to deploy that report as a
>> URL. However, it gives me an error which reads - "The permissions granted
>> to user '<Machine Name>\IUSR_<Machine Name>' are insufficient for
>> performing this operation. (rsAccessDenied)". Any idea whats causing this
>> error. I get the same message when I try to log on to
>> http://localhost/reportserver.
>> The IIS on the machine has anonymous access enabled as well as Integrated
>> Windows Authentication.
>> Thanks.
>