[Solved] Document could not be opened, user lacks privilege or object not found

Creating and using forms
Post Reply
Dalke55
Posts: 25
Joined: Sat Jan 19, 2019 11:08 pm

[Solved] Document could not be opened, user lacks privilege or object not found

Post by Dalke55 »

Thank you in advance for any assistance
Using Repots Wizard with Oracle Report Builder 1.2.1 to create a report from a query. The query runs with out error. There are four field from one table and three fields that are extract of YEAR, Month, Day from Date-Time field in the query. If i create a Report with the four fields from the table, the report will run. How ever when I attempt to add any of the extracted fields year, month or day into the report I receive the following error:
The document "TBL-ENTRY-Date sort" could not be opened.
user lacks privilege or object not found: TBL-ENTRY,YEAR in statement
SELECT "ENTRYID"
, "CUR-PAIR"
, "TRD-PLN"
, "ENTRY-DT:TM"
, YEAR( "ENTRY-DT:TM" ) AS "YEAR"
, MONTH( "ENTRY-DT:TM" ) AS "MONTH"
, DAY( "ENTRY-DT:TM" ) AS "DAY"
FROM "TBL-ENTRY" AS "TBL-ENTRY"
WHERE "CUR-PAIR" = 'EURUSD' AND "TRD-PLN" = 'Thin Orange 3 PT'
Last edited by Hagar Delest on Tue Jun 06, 2023 9:47 pm, edited 1 time in total.
Reason: tagged solved.
Apache OpenOffice 4.1.6 Windows 10
F3K Total
Volunteer
Posts: 1038
Joined: Fri Dec 16, 2011 8:20 pm

Re: Document could not be opened - user lacks privilege or object not found

Post by F3K Total »

Hello,
just tried that with one of my sample-.odb files, found no problems, see attached file, see Report R_DOB.
R
Attachments
DOB.odb
(56.31 KiB) Downloaded 196 times
  • MMove 1.0.6
  • Extension for easy, exact positioning of shapes, pictures, controls, frames ...
  • my current system
  • Windows 10 AOO, LOLinux Mint AOO, LO
Dalke55
Posts: 25
Joined: Sat Jan 19, 2019 11:08 pm

Re: Document could not be opened - user lacks privilege or object not found

Post by Dalke55 »

Thank you, I examined your example and I have deduced the error comes with trying to group the report by Year Month or Day.
Apache OpenOffice 4.1.6 Windows 10
Post Reply