Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
edward221096
Partner - Contributor
Partner - Contributor

QLIK REPLICATE - USER LEVEL ENDPOINTS

Hi Support,

We encountered this error while running a task


Not authorized to object BSPJRN in AFFJRNLIB.
RetCode: SQL_ERROR SqlState: 58004 NativeError: -443 Message: [IBM][System i Access ODBC Driver]SQL0443 - Not authorized to object BSPJRN in AFFJRNLIB.
Failed(retcode-1) to execute statement: 'SELECT sequence_number FROM TABLE (QSYS2.Display_Journal('AFFJRNLIB','BSPJRN')) as J LIMIT 1

We are wondering what could be the cause and resolution of this error, additionaly we would also like to know the correct user level access in DB2 for Task options apply changes, and store changes.

Thanks

Labels (2)
1 Solution

Accepted Solutions
Bill_Steinagle
Support
Support

Hello,

Thank you for the post to the Replicate Forums. From the display of the error this is the DISPLAY_JOURNAL query that gets sent to the iSeries Source and from the permissions failure you want to check with the DBA to ensure the Replicate User has the access to the Journal Name and Journal Library defined to the iSeries Source as shown below:

Bill_Steinagle_0-1657738915286.png

See link below for require permissions for the Journal and Journal Library you define to the iSeries Source:

https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/IBM%20DB2%20for%20iSeries/...

Regards,

Bill Steinagle

 

View solution in original post

3 Replies
Steve_Nguyen
Support
Support

@edward221096

 

Below is from user guide in term of permissions 

https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/IBM%20DB2%20for%20iSeries/...

 

if you still having issue, best to open support ticket for faster isolation of issue.

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!
lyka
Support
Support

Hello,

 

One way to verify if to run the failed query manually on the source database using the same Replicate user.

SELECT sequence_number FROM TABLE (QSYS2.Display_Journal('AFFJRNLIB','BSPJRN')) as J LIMIT 1

If the query fails, please check if all permissions were granted to the user. Please refer to the link that Steve shared.

 

Thanks

Lyka

Bill_Steinagle
Support
Support

Hello,

Thank you for the post to the Replicate Forums. From the display of the error this is the DISPLAY_JOURNAL query that gets sent to the iSeries Source and from the permissions failure you want to check with the DBA to ensure the Replicate User has the access to the Journal Name and Journal Library defined to the iSeries Source as shown below:

Bill_Steinagle_0-1657738915286.png

See link below for require permissions for the Journal and Journal Library you define to the iSeries Source:

https://help.qlik.com/en-US/replicate/November2021/Content/Replicate/Main/IBM%20DB2%20for%20iSeries/...

Regards,

Bill Steinagle