About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Question & Answer
Question
Web Query synonyms (metadata) may need to change as the definition of the underlying tables on the IBM i change. Why do I get a FOC1568 "DATASOURCE ... FOR SYNONYM IS NOT FOUND" when I try to refresh the synonym from the BI Portal?
Cause
Web Query allows one-part naming to define one set of "generic" synonyms for a set of tables that exist in more than one schema (library).
This centralizes development of Web Query reports, etc., as one only needs to update set of synonyms instead of the synonyms for each schema.
Since the beauty of one-part naming is that it is not "tied" to a particular schema, an attempt to refresh of a synonym may not be as easy as a right click and Refresh Synonym.
It is also problematic if a SQL Long Name is used for the synonym along with one-part naming.
You will need to use the system name (short name, 10 characters or less)
This is most likely the reason you are seeing this message.
Answer
You can use IBM i green screen command Create DB2 Web Query synonym (CRTWQSYN) to refresh a one-part name synonym, but most Web Query users can use the BI Portal or Developer WorkBench.
(Developer WorkBench does not have an option to refresh a one-part naming synonym)
Here's the BI Portal steps:
1) Sign on to the BI Portal

2) Find the Top Level Folder that has the synonym to refresh on the left hand tree view
3) Right click on the Top Level Folder name, Metadata -> New
4) A new window pops up - this called the 'reporting server console'.
5) Again find the Top Level Folder name that has the synonym.
Note that on this screen the Top Level Folder name may be slightly different.
- due to rename of the Top Level Folder, etc.
6) Expand DB2 cli
7) Right click on *LOCAL -> Create or Update Synonym
8) Enter the library name that has the table - to be used as the template for the synonym refresh
9) You are on now on the "Create Synonym for DB2 (*LOCAL)" screen
9a) You do NOT need to update 'One-part name' under Miscellaneous Parameters
9b) You do want to make sure under Customize data type mappings that your 'Application', 'Prefix', 'Suffix' values are set.
- This information is used to 'find' the correct Web Query synonym to update
9b) Still within Customize data type mappings, you must change the 'Update or Create Metadata' to Update.
9c) Finally find the correct table in the list provided at the bottom of this window
9d) Select Next when ready
10) You are now on the "Update Synonyms for DB2 (*LOCAL)" screen. Do not change anything on this screen, select Next.
11) You should arrive at the "Create Synonym for DB2 Status" screen and you should see a success message.
Note that if the table is the IBM i user's *CURLIB, the refresh will work.
(Parameter CURLIB on the CHGUSRPRF/CRTUSRPRF commands)
The Developer WorkBench instructions are similar:
a) Developer WorkBench -> yourIBMi -> Data Servers -> EDASERVE -> Applications
b) Find the Top Level Folder that has the synonym to refresh on the left hand tree view
c) Right click on the Top Level Folder name, New -> Synonym
d) A new dialog box pops up - 'Select adapter to configure or Select connection ...'
e) Expand the 'DB2 cli' folder if need be
f) Double click on yourIBMi again.
g) On the 'Select Synonym Candidates for DB2' dialog box, enter in the IBM i library name for the 'Library' parameter where your logical file (SQL View) or physical file (table) is located, select "Next"
h) On the 'Create Synonym for DB2' dialog box, expand "Miscellaneous Parameter" and select 'One-part name'. Do steps h, i, j together.
i) On the same 'Create Synonym for DB2' dialog box, change "Update or Create Metadata" from Create to Update. Do steps h, i, j together.
j) Still on the 'Create Synonym for DB2' dialog box, select the synonym to update. Do steps h, i, j together.
k) Select Next
l) A new dialog box 'Update Synonyms for DB2' pops up. Select what should be updated, select Next.
m) Another dialog box - it does not clearly state that it was successful - but does not give an error either
[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"DB2 Web Query","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}},{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Was this topic helpful?
Document Information
More support for:
IBM i
Software version:
Version Independent
Operating system(s):
IBM i
Document number:
666509
Modified date:
18 December 2019
UID
nas8N1020950
Manage My Notification Subscriptions