logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Ott  
#1 Posted : Tuesday, August 17, 2021 8:45:02 PM(UTC)
Ott

Rank: Member

Groups: Registered
Joined: 6/9/2017(UTC)
Posts: 29
Canada

Thanks: 1 times
Hello,

I am unable to get reports to run with the Scheduler using the Web Report Designer. Every time a report runs, it produces this error in the log:

Error executing configuration init script:
Object reference not set to an instance of an object.

I have a 'Report Execution Init Script' that captures the username, password, and connect string to connect the user with their own user account so the database security can be applied to make sure the user can only access authorized data. The database is an Oracle RDBMS, by the way.

It looks like the WebUserName, WebPassword are not getting passed to the Scheduler.

Yves
epf  
#2 Posted : Thursday, August 19, 2021 7:37:19 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 205 time(s) in 198 post(s)
Yes the WebUsername is not set when the report is invoked by the scheduler...

However the OutputToExecute (type ReportOutput) object of the report being executed contains:
UserName
UserGroups
UserCulture

that you may use to handle your security.

Edited by user Thursday, August 19, 2021 9:44:49 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.