Showing posts with label available. Show all posts
Showing posts with label available. Show all posts

Sunday, March 11, 2012

An error occurred, but no details are available

Hello All,

I have a number of 3D web reports published.
When trying to view most of them, they produce the following error in a browser "An error occurred, but no details are available".
The title bar of the browser displays: "http://esource-03/crystal/enterprise9/eportfolio/en/infoobject.cwr?action=0&id=342".
The id changes from one report to another.
Only 3 reports displays succesfully while the other 13 have this problem.

I even tried to search for the "infoobject.cwr" on the server but couldn't find it.

Any clues?

Thank you,

DiaaOpen the report and do verify database

An error occurred while executing the query

Ferquently I am getting this error

An error occurred while executing the query.
ExecuteReader requires an open and available Connection. The connection's current state is closed.


ADDITIONAL INFORMATION:

ExecuteReader requires an open and available Connection. The connection's current state is closed. (System.Data)

If I refreshed the page it is working

Please help me why it is comming

Hi,

this the error becasue there is some problem with ur dataset.

click save all and close the soluton and then re-open the solution.

click refresh on the data set tab.

hope this helps...

Saturday, February 25, 2012

AMO:Is there any locking mechanisam available in MSAS 2005

Hi All,

I am working on Analysis Server 2005 and .Net 2005 and AMO,i already worked on AS 2000 and .Net 1.1 with DSO.

I just want to comform one thing is there any thing like OlapLockTypes are there in AS 20005 or AMO.Please let me know how it works.

Thanks in Advance.

Hi vishweshwar,

This feature is already deprecated in AMO. Just want to inform that locking mechanisms can be well implemented using security features which provides good layer of abstraction.

Thanks

Subhash Subramanyam

|||

Locking in DSO does not really relate to the security features in SSAS 2005.

Locking in DSO was used to prevent mulitple uses from trying to alter an object at the same time. This is not an issue in 2005 with AMO due to the way it works with XML/A commands. Basically when you connect via AMO it reads the object definition off the server and then all the changes you make are done in memory until you issue an update command. At this point an XML/A alter command is sent to the server which contains the entire object definition. If mulitple developers happen to work on the same object at the same time, then that the second update will overwrite the first.

|||

Thanks Darren, Agree that my answer was partially wrong. Its clear to understand why Locking Mechanisms are no more implemented and how update actually works.

|||

hi Darren,

Thanks ,but one thing I coudnt understand clearly how it will handle (whether explicitly or implicitly) ,i just want to clear one point here whether we need to write explicitly by using AMO code or it will handle internally in AMO.

Please let me know.

How we can use XML/A code in .net with AMO.

Thanks in Advance.

|||

All the stuff I described is handled implicitly. You don't usually need to work about XMLA, you can just work with the AMO objects. It is just that AMO is generating XMLA under the covers.

If you want to group a whole series of updates into one batch, you can use the .CaptureLog() and .ExecuteCaptureLog() methods of the server object. I have an example in powershell on my blog here:

http://geekswithblogs.net/darrengosbell/archive/2006/06/21/GenerateXmlaByName.aspx

But you should be able to work exclusively with AMO without needing to resort to explicitly dealing with XMLA.|||

Thanks Darren.

Actually with DSO code there we are checking before doing process lock is opened , read or write.

but in AMO i am just writing code directly creating a object of server,database,cubes and dimension and then with objects we are doing process what i am doing is it the right way.Please let me know.

|||AMO is implicitly transactional. I think there are beginTransaction methods on some of the objects, but if an object is being processed you will not be able to alter it until the processing is complete. With DSO, if you did not check for the locks there was a danger of altering an object that was processing. With AMO you cannot do this.

AMO:Is there any locking mechanisam available in MSAS 2005

Hi All,

I am working on Analysis Server 2005 and .Net 2005 and AMO,i already worked on AS 2000 and .Net 1.1 with DSO.

I just want to comform one thing is there any thing like OlapLockTypes are there in AS 20005 or AMO.Please let me know how it works.

Thanks in Advance.

Hi vishweshwar,

This feature is already deprecated in AMO. Just want to inform that locking mechanisms can be well implemented using security features which provides good layer of abstraction.

Thanks

Subhash Subramanyam

|||

Locking in DSO does not really relate to the security features in SSAS 2005.

Locking in DSO was used to prevent mulitple uses from trying to alter an object at the same time. This is not an issue in 2005 with AMO due to the way it works with XML/A commands. Basically when you connect via AMO it reads the object definition off the server and then all the changes you make are done in memory until you issue an update command. At this point an XML/A alter command is sent to the server which contains the entire object definition. If mulitple developers happen to work on the same object at the same time, then that the second update will overwrite the first.

|||

Thanks Darren, Agree that my answer was partially wrong. Its clear to understand why Locking Mechanisms are no more implemented and how update actually works.

|||

hi Darren,

Thanks ,but one thing I coudnt understand clearly how it will handle (whether explicitly or implicitly) ,i just want to clear one point here whether we need to write explicitly by using AMO code or it will handle internally in AMO.

Please let me know.

How we can use XML/A code in .net with AMO.

Thanks in Advance.

|||

All the stuff I described is handled implicitly. You don't usually need to work about XMLA, you can just work with the AMO objects. It is just that AMO is generating XMLA under the covers.

If you want to group a whole series of updates into one batch, you can use the .CaptureLog() and .ExecuteCaptureLog() methods of the server object. I have an example in powershell on my blog here:

http://geekswithblogs.net/darrengosbell/archive/2006/06/21/GenerateXmlaByName.aspx

But you should be able to work exclusively with AMO without needing to resort to explicitly dealing with XMLA.|||

Thanks Darren.

Actually with DSO code there we are checking before doing process lock is opened , read or write.

but in AMO i am just writing code directly creating a object of server,database,cubes and dimension and then with objects we are doing process what i am doing is it the right way.Please let me know.

|||AMO is implicitly transactional. I think there are beginTransaction methods on some of the objects, but if an object is being processed you will not be able to alter it until the processing is complete. With DSO, if you did not check for the locks there was a danger of altering an object that was processing. With AMO you cannot do this.

AMO:Is there any locking mechanisam available in MSAS 2005

Hi All,

I am working on Analysis Server 2005 and .Net 2005 and AMO,i already worked on AS 2000 and .Net 1.1 with DSO.

I just want to comform one thing is there any thing like OlapLockTypes are there in AS 20005 or AMO.Please let me know how it works.

Thanks in Advance.

Hi vishweshwar,

This feature is already deprecated in AMO. Just want to inform that locking mechanisms can be well implemented using security features which provides good layer of abstraction.

Thanks

Subhash Subramanyam

|||

Locking in DSO does not really relate to the security features in SSAS 2005.

Locking in DSO was used to prevent mulitple uses from trying to alter an object at the same time. This is not an issue in 2005 with AMO due to the way it works with XML/A commands. Basically when you connect via AMO it reads the object definition off the server and then all the changes you make are done in memory until you issue an update command. At this point an XML/A alter command is sent to the server which contains the entire object definition. If mulitple developers happen to work on the same object at the same time, then that the second update will overwrite the first.

|||

Thanks Darren, Agree that my answer was partially wrong. Its clear to understand why Locking Mechanisms are no more implemented and how update actually works.

|||

hi Darren,

Thanks ,but one thing I coudnt understand clearly how it will handle (whether explicitly or implicitly) ,i just want to clear one point here whether we need to write explicitly by using AMO code or it will handle internally in AMO.

Please let me know.

How we can use XML/A code in .net with AMO.

Thanks in Advance.

|||

All the stuff I described is handled implicitly. You don't usually need to work about XMLA, you can just work with the AMO objects. It is just that AMO is generating XMLA under the covers.

If you want to group a whole series of updates into one batch, you can use the .CaptureLog() and .ExecuteCaptureLog() methods of the server object. I have an example in powershell on my blog here:

http://geekswithblogs.net/darrengosbell/archive/2006/06/21/GenerateXmlaByName.aspx

But you should be able to work exclusively with AMO without needing to resort to explicitly dealing with XMLA.|||

Thanks Darren.

Actually with DSO code there we are checking before doing process lock is opened , read or write.

but in AMO i am just writing code directly creating a object of server,database,cubes and dimension and then with objects we are doing process what i am doing is it the right way.Please let me know.

|||AMO is implicitly transactional. I think there are beginTransaction methods on some of the objects, but if an object is being processed you will not be able to alter it until the processing is complete. With DSO, if you did not check for the locks there was a danger of altering an object that was processing. With AMO you cannot do this.

Monday, February 13, 2012

Am I crazy, or is there no form validation for report parameters?

Maybe I am just not using the correct search strings, but it really appears
that there is no server side validation available for parameters in Reporting
Services generated reports? Is this true (so then I can stop looking)?
Thanks for your help.
--
Paul
Web DeveloperYou can do multiple things. First, in layout tab, Report Menu-> Report
Parameters you can set the data type of the parameter. This is a big help
off the bat. Next, realize that you have two different things: query
parameters and report parameters. RS kindof blurs the difference because it
automatically creates report parameters and maps them to the query
parameter. Your query parameter does not have to map directly to a report
parameter. Click on the ... in the dataset tab, parameters. You can map your
query parameter to an expression. This expression could do some additional
massaging of the data, however, it doesn't allow validation per se.
I agree, a validation expression and text that could be associated with a
parameter would be very nice to have.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Paul" <Paul@.discussions.microsoft.com> wrote in message
news:1AA2FCD5-7442-4E01-A0C2-3DBA12758BCD@.microsoft.com...
> Maybe I am just not using the correct search strings, but it really
> appears
> that there is no server side validation available for parameters in
> Reporting
> Services generated reports? Is this true (so then I can stop looking)?
> Thanks for your help.
> --
> Paul
> Web Developer|||Thanks Bruce, the points about the parameter types and expressions does
confirm the understanding I had reached from my research and I feel more
confident that I didn't overlook something that might be more obvious to
others.
--
Paul
Web Developer|||FWIW: I tried to do "validation after the fact" by running some Load code
that validated parameters and, if I didn't like what I saw, throwing an
error with an information message. I couldn't get this to work right (maybe
somebody else has?).
So, instead, I added a textbox with "alert" formatting (red text or
whatever) into the header of the report. It's filled by a variable declared
in the report. Ordinarily it's invisible (empty string). However the Load
code can fill it with its information message to show that there is a
problem.
You could also change the visibility or hide other elements of the report by
using a "Success" boolean variable -- again, ordinarily it has the value
True but the Load code can set it False. Now the entire contents of your
report doesn't show except your error message. There's some other stuff
like that, which does work...
HTH,
>L<
"Paul" <Paul@.discussions.microsoft.com> wrote in message
news:629AC8DC-4FF8-441D-A0A9-04026C652C4C@.microsoft.com...
> Thanks Bruce, the points about the parameter types and expressions does
> confirm the understanding I had reached from my research and I feel more
> confident that I didn't overlook something that might be more obvious to
> others.
> --
> Paul
> Web Developer
>