Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Cannot create object: PSReportFactory"

Status
Not open for further replies.

MVisconte

Programmer
Jun 17, 2002
105
US
Hi folks,

I have a problem that I am having a hard time research and subsequentl, solving.

CE 10, XP - my laptop (local development system)

Have reports that WERE running, then turned up an error that I cannot shake or pin down:

"There was an error retrieving data from the server: Cannot create object CrystalEnterprise.PSReportFactory."

I can't find anything on the BO website, and nothing in general on Google. Anybody have some ideas?

One of our sites got the same error a while ago, and after trying for a week to fix it, the SA went and reloaded everything. (everything, sigh).

I have a slightly mod'd CE that I use at the base site, and I have been playing w/ CSP examples trying to get various things (Report Parts) functioning. I haven't made any changes to anything else. I had recent SPs and today have applied the latest SPs. Stopped/Started, restarted machine, etc.

Help?

Marc


--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
 
Are you sure its the

I had a similar problem in this bit of code

'Create the report source and report factory objects
Set rptFactory = iStore.EnterpriseSession.Service("", "PSReportFactory")
Set rptSource = rptFactory.OpenReportSource(reportID)

It was actually this line causing the problem

Set rptSource = rptFactory.OpenReportSource(reportID)

BO's sample code uses

Set rptSource = rptFactory.OpenReportSource(CInt(reportID))

When report Ids get to be greater than 33,000 (16 bit) CInt fails. Its superfluous and can be removed, once I did that all was OK.

Ian
 
Thanks for the response.

I will try that on the code I was tinkering with, but the CInt doens't show up in the main code (orig ePortfolio), and it is still effected.

This is not my couple-of-days... now the desktop workstation is throwing errors also:
There was an error retrieving data from the server: Automation server can't create object

I have not mixed files between the two systems. I have not applied SP4 on the desktop.

Sheesh... it was working last week.

Any further ideas?

I attended the local Crystal Reports/ BO User Group this morning and asked there... the BO rep recommended "reloading" -- while it might work, that is not an answer... I like to know why things fail so in the future we can fix them.





--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
 
Sorry can not help any further. Looks like you have a set up issue. Do you have a support contract with Business Objects. If not you may need to get a Crystal Enterprise consultant on site and go through the installation process and make sure you are not doing anything wrong.

If you are getting the error
"Cannot create object CrystalEnterprise.PSReportFactory."
in Eportfolio this sounds serious. I originally thought you were creating custom ASP pages.

Ian
 
No, we dropped support years ago. We got fed up after a while when their normal "support" consisted of "hm... I don't know. Have you tried re-loading your system? Try that and call me back..."

Sigh. I guess I re-load.




--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
 
Can you Preview a report from CMC?

Can you view a report using Advanced DHTML viewer?

Try deleting (not just stop/start) your cache and page servers then add new ones via CCM.

Kingfisher
 
Guys, sorry take so long.
It turns out that the ActiveX and Java Viewers DO work on this system. I overlooked that as I was working on the "report parts" which require DHTML viewing.
On THIS system, neither DHTML or Advanced DHTML work, in either CMC or the ePortfolio.

I get "Unable to retrieve Object.
Automation server can't create object"
as of today, and now my Java viewer fails to load. Whew. What a pain.

I have not attempted deleting/re-instating Cache and Page servers... I'll try that shortly (once I brush up on how-to).

Marc

--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
 
Oh, additional...

1) The links I saw on Google (PSFactory) seemed to deal with DLLs that weren't registered correctly (IIRC). I looked for a couple mentioned and tried re-registering them, but it did not change anything.

2) The laptop system I have (my "remote dev" system) has similar problems, but I could have sworn that the ADVANCED DHTML viewer worked, but the "regular" DHTML viewer threw the error... I can't verify that right now, but I'll try to shortly.

3) Deleted and recreated... no difference...
"There was an error retrieving data from the server: Automation server can't create object."

Argh.

--
Marc Visconte
CSC
Lead RMS Developer
Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top