WIJ 20002 Error
Post Author: jase4now
CA Forum: WebIntelligence Reporting
For the past two days, I have received the WIJ 20002 ERROR when I attempt to create an ad-hoc. This is sudden, as I have been able to create reports in the past.
Any help is greatly appreciated,
Joel
Post Author: scheperw
CA Forum: WebIntelligence Reporting
For posterity if not jase4now, with SP3 we have encountered WIJ 20002 errors with FireFox 2.0.0.12 combined with JRE/JDKs 1.5.0_14 and the 1.6.0_04 and 1.6.0_05.JRE 1.5.0_12 works without problems.
Similar Messages
-
When a webi report is refreshed or opened/edited I am getting this WIJ 20002 error. Using BO XI R2 SP3 pack.
I applied the changes to webi.properties file, changed the registry settings which didnot help.
When webi is restarted the problem appears to go for a short while and comes back after sometime.
Any other pointers to solve this issue?
ThanksHi,
try with below steps..
Increase the timeout to 20 minutes in http.conf file which present in installation directory of Apache.
Following is the location of http.conf file:-
C:\Program Files\Apache software foundation\Apache\conf
or
Log-in to Central Management Console(CMC).
Select "Servers"
Select "Service Categories"
Restart Web intelligence Processing Server.
Thanks,
Amit -
WIJ 20002 error on long running reports
When trying to run a long running report, an error message is received .
Quote:
*"The Web Intelligence Java Report Panel cannot connect to the server. Close
the report panel and try to connect again or see your BusinessObjects
administrator. (Error: WIJ 20002)"*
What happens next is you are advised to "close" (twice) and are then advised to close this window.
If you select Details on the first error message:
Server: https://test.i3access.iowa.gov:443/desktoplaunch/InfoView/CrystalEnterprise_Webi/cdzServlet?
java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 502 for URL: https://test.i3access.iowa.gov:443/desktoplaunch/InfoView/CrystalEnterprise_Webi/cdzServlet
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.businessobjects.wp.cpi.CPIConnection.postRequest(CPIConnection.java:437)
at com.businessobjects.wp.xml.XMLViaHttp.loadScript(XMLViaHttp.java:144)
at com.businessobjects.wp.xml.XMLViaHttp.getPromptList(XMLViaHttp.java:1284)
at com.businessobjects.wp.xml.XMLLoader.getPromptList(XMLLoader.java:279)
at com.businessobjects.wp.om.OMQuery.loadPromptsAndContexts(OMQuery.java:359)
at com.businessobjects.wp.om.OMQuery.getActiveContextCount(OMQuery.java:384)
at com.businessobjects.wp.tc.query.TCQueryPropertie.buildQueryContextFromUI(TCQueryPropertie.java:496)
at com.businessobjects.wp.tc.query.TCQueryTab.buildQueryContextFromUI(TCQueryTab.java:846)
at com.businessobjects.wp.tc.query.TCQueryTab.modifyQueryProperties(TCQueryTab.java:638)
at com.businessobjects.wp.tc.query.TCQueryTabManager.modifyQueryTabs(TCQueryTabManager.java:306)
at com.businessobjects.wp.tc.query.TCQueryPanel.modifyQueryTabs(TCQueryPanel.java:310)
at com.businessobjects.wp.tc.query.TCQueryPanel.load(TCQueryPanel.java:383)
at com.businessobjects.wp.tc.TCMainPanel.switchToQueryPanel(TCMainPanel.java:563)
at com.businessobjects.wp.tc.TCMainPanel.actionPerformed(TCMainPanel.java:506)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at com.businessobjects.wp.cpi.CPIConnection.postRequest(CPIConnection.java:441)
at com.businessobjects.wp.xml.XMLViaHttp.loadScript(XMLViaHttp.java:144)
at com.businessobjects.wp.xml.XMLViaHttp.getPromptList(XMLViaHttp.java:1284)
at com.businessobjects.wp.xml.XMLLoader.getPromptList(XMLLoader.java:279)
at com.businessobjects.wp.om.OMQuery.loadPromptsAndContexts(OMQuery.java:359)
at com.businessobjects.wp.om.OMQuery.getActiveContextCount(OMQuery.java:384)
at com.businessobjects.wp.tc.query.TCQueryPropertie.buildQueryContextFromUI(TCQueryPropertie.java:496)
at com.businessobjects.wp.tc.query.TCQueryTab.buildQueryContextFromUI(TCQueryTab.java:846)
at com.businessobjects.wp.tc.query.TCQueryTab.modifyQueryProperties(TCQueryTab.java:638)
at com.businessobjects.wp.tc.query.TCQueryTabManager.modifyQueryTabs(TCQueryTabManager.java:306)
at com.businessobjects.wp.tc.query.TCQueryPanel.modifyQueryTabs(TCQueryPanel.java:310)
at com.businessobjects.wp.tc.query.TCQueryPanel.load(TCQueryPanel.java:383)
at com.businessobjects.wp.tc.TCMainPanel.switchToQueryPanel(TCMainPanel.java:563)
at com.businessobjects.wp.tc.TCMainPanel.actionPerformed(TCMainPanel.java:506)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Please let me know what the solution is.Matt,
A namesake of yours is my client for this issue.
Coming to the problem, the customer says there is proxy configured between HTTP server and WebSphere. This proxy server times out for long running reports. If the HTTPServer is bypassed, things work fine.
A colleague of mine opened a case with BOBJ. I can get you the case# if you need it. We got this reply:
From: Takano, Hitomi
Sent: Tuesday, November 04, 2008 10:26 AM
Hi Matt,
I was away for the last two days, so I couldn't reply to you sooner.
Extending the timeout setting from Webi and Infoview in BOXI R2 will not
make the long running reports work as your proxy setting at the lower
layer than BOXI just allows 5 minutes and after that the connection will
be cancelled by the proxy. I'm not sure why this setting was effective
for https only or timeout out after 2 min. This is out of scope of BOXI
R2 and your network admin would be the best person to handle. You were
getting 502 error in Java Report Panel. I googled with "502 error and
ProxyTimeout", and I got the some articles returned which say when
backend doesn't answer on requests(because it timed out), it returns to
a client an error 502.
I'll close this thread as the n/w admin at the client are working things out.
Thanks for your support. -
Hi,
Our environment:
- XI 3.0
- Java Web AS environment
- OLAP Universes on both SAP BI & Hyperion Essbase
When using Web Intelligence Rich Client, we get the error "Unexpected error - If you cannot reconnect to the server, close Web Intelligence and start again. (WIJ 20002)". This does happens:
- when we chosing FileNew => Universe => Selecting a universe, next => then error
- for some universes (both sources, although not every universe - some universes work fine)
Workaround:
- create + save report in Web Intellience Web version
- import in WebI Rich Client
- Add Query => same selection of universe => now works fine
See also thread:
Expert Forums » SAP NetWeaver » SAP NetWeaver Administrator
Thread: WIJ 20002 Error in XI 3.1 .NET Environment
Is this a know issue?
Thanks!
Raf
Edited by: Raf on Jan 16, 2009 2:08 PMSorry, see 1205533 - Error: "WIJ 20002" when trying to open a universe in Web Intelligence
-
Package Load Failure message in VS 2005 and Error: WIJ 20002
After installing BusinessObjects Enterprise XI 3.1 .NET SDK when ever I open any project in VS 2005 I get the error message (the same happened on other system as well)
Package Load Failure
Package 'BusinessObjects.Enterprise.Vsip.BOEVsPackage, BOEVsPackage, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=... has failed to load properly (GUID = {...}). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.
I did try 'devenv /resetskippkgs' but still get this error. Any idea reagarding this.
Next issue using the code sample provided in the site to create webi document by passing the universe id gives error message :
"The Web Intelligence Java Report Panel cannot connect to the server. close the report panel and try to connect again or see your BO Administrator. (Error: WIJ 20002)."
The Java version I have is 6 and I checked the Universe is not locked.
Need help to identify the cause for both errors.Try the following as posted on another forum:
Two solutions:
1. -Go in to the Tools menu in .NET, and choose Import and Export Settings.
- From the dialogue box, choose Reset All Settings and follow the steps
2. If you have installed VS.NET to a drive other than the C drive, copy all files from the folder C:\Program Files\Microsoft Visual Studio 8\Common7\IDE to the same folder on the drive where .NET is installed, ie :
D:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Regards,
Jonathan -
Unexpected error.(WIJ 20002) in webi in infoview
hi all,
When ever I am runnig a WebI report it used to run for some time and after that gives an error message that "Unexpected error. If you cannot reconnect to the server, close Web Intelligence and start again. (WIJ 20002)"
https:/server/AnalyticalReporting/Webi/cdzServlet
Stack trace: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 505 for URL: https:server/AnalyticalReporting/Webi/cdzServlet at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) at com.businessobjects.wp.cpi.CPIConnection.postRequest(Unknown Source) at com.businessobjects.wp.xml.XMLViaHttp.loadScript(Unknown Source) at com.businessobjects.wp.xml.XMLViaHttp.processDPCommands(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommandsWithoutParseResult(Unknown Source) at com.businessobjects.wp.xml.XMLLovLoader.load(Unknown Source) at com.businessobjects.wp.om.OMLovLoader.load(Unknown Source) at com.businessobjects.wp.om.OMLovLoader.load(Unknown Source) at com.businessobjects.wp.tc.prompt.PromptDialog.init(Unknown Source) at com.businessobjects.wp.tc.prompt.PromptDialog.initComponents(Unknown Source) at com.jidesoft.dialog.StandardDialog.initialize(Unknown Source) at com.jidesoft.dialog.StandardDialog.pack(Unknown Source) at com.businessobjects.wp.tc.TCPromptHandler.displayPrompts(Unknown Source) at com.businessobjects.wp.xml.XMLOutputParser.parse(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommands(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommands(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.processCommands(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.runCommandOnDPs(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.runAllQueriesEx(Unknown Source) at com.businessobjects.wp.tc.thread.QueryRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at com.businessobjects.wp.cpi.CPIConnection.postRequest(Unknown Source) at com.businessobjects.wp.xml.XMLViaHttp.loadScript(Unknown Source) at com.businessobjects.wp.xml.XMLViaHttp.processDPCommands(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommandsWithoutParseResult(Unknown Source) at com.businessobjects.wp.xml.XMLLovLoader.load(Unknown Source) at com.businessobjects.wp.om.OMLovLoader.load(Unknown Source) at com.businessobjects.wp.om.OMLovLoader.load(Unknown Source) at com.businessobjects.wp.tc.prompt.PromptDialog.init(Unknown Source) at com.businessobjects.wp.tc.prompt.PromptDialog.initComponents(Unknown Source) at com.jidesoft.dialog.StandardDialog.initialize(Unknown Source) at com.jidesoft.dialog.StandardDialog.pack(Unknown Source) at com.businessobjects.wp.tc.TCPromptHandler.displayPrompts(Unknown Source) at com.businessobjects.wp.xml.XMLOutputParser.parse(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommands(Unknown Source) at com.businessobjects.wp.xml.XMLLoader.processDPCommands(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.processCommands(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.runCommandOnDPs(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.runAllQueriesEx(Unknown Source) at com.businessobjects.wp.tc.thread.QueryRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
how to solve this issue ? any idea ?
Regards,
Shanthakumar.Hi,
try with below steps..
Increase the timeout to 20 minutes in http.conf file which present in installation directory of Apache.
Following is the location of http.conf file:-
C:\Program Files\Apache software foundation\Apache\conf
or
Log-in to Central Management Console(CMC).
Select "Servers"
Select "Service Categories"
Restart Web intelligence Processing Server.
Thanks,
Amit -
user is not able to create a new webi report........ every time when he tries to create a new webi report he gets a error as below
the web Intelligence java report panel cannot connect to the server,close the reportand try to connect again or see your Businessobjects administrator (Error:WIJ 20002)"
tried mapping cdzisapi.wis nogo
tried to reduce the application execution level to low nogo
OS win 2000
IIS 5
tried all possible ways but refering Internal KB
requesting somebody to help me
thanks and advance
regards
PapThis sounds like a timeout error and can occur from any number of places - Application Server, Universe, Webi, Corba. Here are a few of the places to check... there are more, but require going into the registry.
Tomcat
ConnectionTimeout
Defines time, in milliseconds, before a request terminates. The default value is 60000 milliseconds. To disable connection timeouts, the connectionTimeout value should be set to -1.
o 1. Go to C:\Program Files\Business Objects\Tomcat\conf\
o 2. Edit server.xml
o 3. Look for the line that says "Connector on port 8080"
o 4. In this section modify connectionTimeout="20000" to connectionTimeout="-1"
Universes
Execution Timeout
Universe designers have the ability to limit the amount of time a query can run for before it is stopped. If the universe stops the query from running before all the data is returned you may receive an error.
To ensure that the report is not being limited on the amount of time it can run for, check the following:
o 1. Import the universe using Designer
o 2. Go to File->Parameters->Controls Tab
o 3. Increase 'Limit execution time to'
o 4. Save and re-export universe
Connection Timeout
The number of minutes before an idle connection to the Web Intelligence Report Server will be closed.
When a user launches the Java Report Panel, their CMS session is copied to a cadenza session, which is now controlled by this timeout switch.
o 1. Log into the CMC
o 2. Go to Servers->WebiReportServer
o 3. Set the Connection Time Out
WebI Report Timeout
WebI designers have the ability to set a limit on how long a query can be run on a database before the query is stopped.
o 1. Edit or create a new WebI report using the Java Report Panel
o 2. Choose Edit Query->Properties,
o 3. Now deselect or increase the 'max retrieval time' setting. -
WIJ 20002 If you cannot reconnect to the server, close Web Intelligence
Unexpected error. If you cannot reconnect to the server, close Web Intelligence and start again. (WIJ 20002), we are getting this error whenever we try to create a new report using WebI. Specific observations are this happens mainly with IE7 users. IE6 users can create reports without any issues. We have latest Java 6 version.
This error come specially when the number of objects selected are more than 10. We have Linux OS, version AS4 32 bit. Please let me know if anyone have any solution.
Thanks,
SubhasisHi Srini,
We are using BOXI R3.1 FP 1.8. We are still in testing phase. Our go live is getting postponed because of several issues out of which this is one.
Please let me know if you have any solution.
Regards,
Subhasis -
WIJ 20002 xml Parser Problem - Rich Client
Hi,
I have a problem with the rich client on a new installation:
Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
If I connect with the rich client "import document"is disabled.
if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
WIJ 20002
Version: null
Analisi dello stack:
java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
Have you any solution?The fixpack 3.5 client resolves the problem.
-
I am trying to import a WEBI report from Infoview that I created and keep getting the error: "Unexpected error. If you cannot reconnect to the server, close Web Intelligence and start again. (WIJ 20002)"
The details of the error are as follows:
Version:>12.2.4.507 Stack trace: java.lang.ClassCastException: com.businessobjects.wp.om.OMFilterSetOperator cannot be cast to com.businessobjects.wp.om.OMFilterObject at com.businessobjects.wp.tc.inputforms.InputFormManager.getFilterObject(Unknown Source) at com.businessobjects.wp.tc.inputforms.InputFormManager.getCurrentValue(Unknown Source) at com.businessobjects.wp.tc.inputforms.InputFormManager.setReport(Unknown Source) at com.businessobjects.wp.tc.inputforms.InputFormManager.setReport(Unknown Source) at com.businessobjects.wp.tc.TCStructurePanel.setActiveReport(Unknown Source) at com.businessobjects.wp.tc.TCReportManager.setActifReport(Unknown Source) at com.businessobjects.wp.tc.TCStructurePanel.selectCurrentReport(Unknown Source) at com.businessobjects.wp.tc.TCStructurePanel.editReport(Unknown Source) at com.businessobjects.wp.tc.TCMainContainer.selectTab(Unknown Source) at com.businessobjects.wp.tc.TCMain.initReportTabs(Unknown Source) at com.businessobjects.wp.tc.TCMain.initClient2(Unknown Source) at com.businessobjects.wp.tc.TCMain.initClient(Unknown Source) at com.businessobjects.wp.tc.thread.InitAppletRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Other reports seem to import fine. All the other copies I made of this report on my hard drive have the same error. Our SAP team cannot figure this out either. This is the second tiime I've taken an older copy of the report and rebuilt due to this error thinking it was a corrupt file issue.Hi Amy,
You are correct that it is probably not a Java issue if you are able to open and run other reports without a problem. The Java error you posted made me think it was Java. The version you have should be okay. It is just that I have had weird things happen when I was on a newer version of Java than the one supported by your BO version.
When you say you are importing the report, what exactly do you mean? Importing from repository to your local Rich Client? There is likely something about the report that is causing the issue. Something different from the other reports. Maybe it is using objects that no longer exist in the universe or invalid prompts or something along those lines. See if you can figure out what this report may be doing that the others are not.
Thanks -
Getting an Error WIJ20002 while trying to create a webi report in infoview
Hi,
We are getting an error " The Webintelligence Report Panel cannot connect to the server.Close the report panel and try to connect again or see your Business Objects Administrator ( WIJ20002)" only for a single universe.
Please suggest how can we fix this error.
Regards
ChaitanyaI am giving you couple of scenario based on which this error might occur.I include below a selection of what would seem to be the more relevant ones in your case. Please review these and try the suggested solutions and then let us know the outcome in each case.
Scenario1:
When creating a new document based on linked universes in InfoView 6.5.x, the following error message appears:
"The WebIntelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your BusinessObjects administrator. (Error: WIJ 2002)."
When you click on details, the following error message appears:
"java.lang.IllegalStateException: Cannot load DS; no ID set
at com.bo.wp.om.OMDataProvider.getDataSource(OMDataProvider.java:192)
at com.bo.wp.tc.TCMain.newDocument(TCMain.java:807)
at com.bo.wp.tc.TCMain.initDocument(TCMain.java:649)
at com.bo.wp.tc.TCMain.initClient(TCMain.java:1253)
at com.bo.w.tc.thread.InitAppletRunner.run(InitAppletRunner.java:82)
at java.lang.Thread.run(Unknown Source)"
Resolution:
In Supervisor, the user does not have the Import Universe right in the designer.
Enable the Import Universe right for the user, and ensure they have rights at the user and group level.
Scenario2:
In BusinessObjects version 6.5, when attempting to create a new WebIntelligence report using the Java Query Panel, one of the following error messages appears:
"The Web Intelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your Business Objects Administrator (Error: WIJ 20002)"
or
u201CWeb Intelligence cannot retrieve this document due to a server problem or an error in the document structure. See your Business Objects Administrator".
Also, the bottom of the Java applet window states Launching new document.
Resolution:
The error messages occur because either the universe file name contains an ampersand character (u201C&u201D) in the name or the .unv or .unw files used by the Java Query Panel have become corrupted.
To resolve the error messages
Navigate to <installation directory>:/Business Objects/BusinessObjects Enterprise 6/nodes/<server name>/<cluster name>/universes/.
Remove the .unv file for the derived universe.
Navigate to <installation directory>: /Business Objects/BusinessObjects Enterprise 6/nodes/<server name>/<cluster name>/universes/<universe domain name>/ucdz.
Remove the .unw file for the derived universe.
Remove the ampersand character ("&") from the universe name.
Scenario3:
Problem:
Error: "The WebIntelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your BusinessObjects administrator. (Error: WIJ 20002)" when you try to open the Java Report Panel.
Resolution:
****CONFIGURATION*****
WebIntelligence version 6.1b
Windows 200 Server SP4
IIS 5
JDK 1.42_03
**********SYMPTOMS******
You try to open the Java Report Panel and you receive the following error:
"The WebIntelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your BusinessObjects administrator. (Error: WIJ 20002)"
*********CAUSE*************
You do not have the correct permissions to access files from the wiasp virtual directory. The virtual directory and all sub-directories were initially configured to use "Scripts only" or "None".
*********RESOLUTION*****
Here are the steps to follow:
1. Open the Internet Information Services Manager Console.
2. Expand the "Default Web Site" and "wiasp" directories.
3. Right-click each of the following directories, and in Properties for each, set the respective value for Execute Permissions:
scripts = "Scripts"
viewers = "Scripts"
bin = "Scripts and Executables"
classes = "Scripts"
onlineguides = "Scripts"
help = "Scripts"
distribution = "Scripts" or "None"
Scenario4:
Problem:
Error: "WebIntelligence Java Report Panel cannot connect to the server (WIJ 20002)" when attempting to create a new report
Resolution:
****CONFIGURATION*****
WebIntelligence 6.5.x
**********SYMPTOMS******
You attempt to create a new report using the Java panel based on a universe. The universe list appears as expected, but upon selecting the universe you receive an error similar to the following:
"The WebIntelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your BusinessObjects administrator. (WIJ 20002)"
*********CAUSE*************
There is a connectivity issue to the universe and/or document domain. The universe list is still displayed because that information is cached.
*********RESOLUTION*****
Here are the steps to follow:
1. Log into Supervisor as a General Supervisor.
2. Go to Tools > Repository to open the Repository Management dialog where domain connections are listed.
3. Test the document and universe domain connections and update where needed to establish connectivity.
Scenario5:
Problem:
Error: "WIJ 20002" when launching the Java Report Panel on a Windows 2003 Server.
Resolution:
****CONFIGURATION*****
WebIntelligence version 6.5
Windows 2003
IIS 6
**********SYMPTOMS******
You launch the Java Report Panel on a Windows 2003 Server and receive the following error:
The WebIntelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your Business Objects administrator. (Error: WIJ 20002).
*********CAUSE*************
This error message appears because ISAPI (Internet Server Application Program Interface) extensions are disabled by default on IIS 6.
*********RESOLUTION*****
Here are the steps to follow to enable ISAPI extensions:
1. Click Start > All Programs > Administrative Tools > Internet Information Services (IIS) Manager.
2. Expand the "" beside the server name by clicking the "" icon.
3. Select "Web Service Extensions."
4. Select "All Unknown ISAPI Extensions" from the right pane and click "Allow."
5. Restart the IIS web server.
I know it's a bit long but i hope this will help you to some extent in troubleshooting WIJ2002 Error. -
Error when try to connect to universe
Hello Experts,
We have installed BOE XI 3.0 on the server. i have created the universe in designer. now when i tried to open that universe in WEBI INTELIGENCE, it showed me error
IF YOU CAN NOT RECONNECT TO THE SERVER, CLOSE WEBI INTELIGENCE AND RESTART AGAIN (WIJ 20002)
"" Version:>12.0.0.683 Stack trace: java.lang.NullPointerException at com.businessobjects.wp.om.OMDataSourceInfo.<init>(Unknown Source) at com.businessobjects.wp.om.OMDataProvider.getDataSourceInfo(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.checkNewDsOlapForQueryDrill(Unknown Source) at com.businessobjects.wp.om.OMDataProviders.checkNewDsOlapForQueryDrill(Unknown Source) at com.businessobjects.wp.tc.TCDocFactory.newDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.newDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.initDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.initClient2(Unknown Source) at com.businessobjects.wp.tc.TCMain.initClient(Unknown Source) at com.businessobjects.wp.tc.thread.InitAppletRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ""
Can any one tell me how to resolve the error ? i appreciate your help in advance.
Regards,
Komik SHahWebi seems to be very sensitive in regards to network/connectivity stability/timeouts etc
following are the circumstances that cause WIJ20002 :-
) Wireless LAN. Whenever possible try to run Webi over LAN rather than W-LAN on the client side
2) VPN. Experience a lot of issues when trying to run Webi over a VPN connection (Home office connected to enterprise network)
3) BO Authentication. My company uses Siteminder for SSO. Whenever Siteminder has a small hickup or not reachable when you try to save/refresh etc (a couple of seconds timeout for instance) it will return the WIJ20002 -
Error while trying to create new assignment with supervisor through API
Hi Experts,
I'am trying to create new assignment with supervisor for employee, but i'am facing this error:
=============================================================
ORA-20008: Error While Create new assignment..-20001
ORA-20001: The supervisor assignment that you have entered is invalid.
Please check that you have entered the supervisor,
that the supervisor assignment belongs to this supervisor and that the assignment is effective.
ORA-06512: at line 198
=============================================================
This is my script, (Oracle EBS 12.1.1)(DB 11):
DECLARE
v_user_id NUMBER;
v_res_id NUMBER;
v_res_appl_id NUMBER;
v_org_now_no_manager_warning BOOLEAN;
v_spp_delete_warning BOOLEAN;
v_other_manager_warning BOOLEAN;
v_tax_district_changed_warning BOOLEAN;
v_entries_changed_warning VARCHAR(4000);
v_person_id per_all_assignments_f.person_id %TYPE;
v_business_group_id hr_all_organization_units_tl.organization_id %TYPE;
v_people_group_id per_all_assignments_f.people_group_id %TYPE;
v_object_version_number per_all_assignments_f.object_version_number %TYPE;
v_special_ceiling_step_id per_all_assignments_f.special_ceiling_step_id %TYPE;
v_group_name pay_people_groups.group_name %TYPE;
v_ass_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
v_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
v_effective_end_date per_all_assignments_f.effective_end_date %TYPE;
v_assignment_id per_all_assignments_f.assignment_id %TYPE;
v_sup_assignment_id per_all_assignments_f.assignment_id %TYPE;
v_supervisor_assignment_id per_all_assignments_f.assignment_id %TYPE;
v_job_id per_jobs.job_id %TYPE;
v_grade_id per_grades.grade_id %TYPE;
v_location_id hr_locations_all.location_id %TYPE;
v_payroll_id pay_all_payrolls_f.payroll_id %TYPE;
v_pay_basis_id per_pay_bases.pay_basis_id %TYPE;
BEGIN
v_user_id := FND_GLOBAL.user_id ;
v_res_id := FND_GLOBAL.resp_id ;
v_res_appl_id:= FND_GLOBAL.resp_appl_id;
FND_GLOBAL.apps_initialize(v_user_id, v_res_id, v_res_appl_id);
BEGIN
SELECT organization_id
INTO v_business_group_id
FROM hr_all_organization_units_tl
WHERE name = 'Vision University'
AND language = 'US';
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20000,'Error While Retrieving (Business Group ID) Info...'||SQLCODE||' '||SQLERRM);
END;
FOR R IN (SELECT * FROM xx_assignment) LOOP
BEGIN
SELECT assignment_id , ass_f.object_version_number
INTO v_assignment_id , v_object_version_number
FROM per_all_assignments_f ass_f, per_all_people_f p_f
WHERE ass_f.person_id = p_f.person_id
AND ass_f.business_group_id = p_f.business_group_id
AND ass_f.business_group_id = v_business_group_id
AND p_f.employee_number = R.employee_number
AND TRUNC(p_f.effective_start_date)= TRUNC(ass_f.effective_start_date)
AND TRUNC(p_f.effective_end_date) = TRUNC(ass_f.effective_end_date);
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20001,'Error While Retrieving (Assignmet_ID) for employee..'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT job_id
INTO v_job_id
FROM per_jobs
WHERE trim(lower(name)) = trim(lower(r.employee_job))
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20002,'Error While Retrieving (Job_ID) Info...'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT grade_id
INTO v_grade_id
FROM per_grades
WHERE trim(lower(name)) = trim(lower(r.employee_grade))
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20003,'Error While Retrieving (Grade_ID) Info...'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT location_id
INTO v_location_id
FROM hr_locations_all
WHERE trim(lower(description))= trim(lower(r.employee_location))
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20004,'Error While Retrieving (Location_ID) Info...'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT payroll_id
INTO v_payroll_id
FROM pay_all_payrolls_f
WHERE trim(lower(payroll_name)) = trim(lower(r.payroll_name))
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20005,'Error While Retrieving (Payroll_ID) Info...'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT pay_basis_id
INTO v_pay_basis_id
FROM per_pay_bases
WHERE trim(lower(pay_basis)) = trim(lower(r.pay_basis))
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20006,'Error While Retrieving (Pay_Basis_ID) Info...'||SQLCODE||' '||SQLERRM);
END;
BEGIN
SELECT person_id
INTO v_person_id
FROM per_all_people_f
WHERE employee_number = r.supervisor_number
AND business_group_id= v_business_group_id;
SELECT assignment_id
INTO v_sup_assignment_id
FROM per_all_assignments_f
WHERE person_id = v_person_id
AND business_group_id = v_business_group_id;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20007,'Error While Retrieving (Assignmet_ID) for supervisor..'||SQLCODE||' '||SQLERRM);
end;
BEGIN
hr_assignment_api.update_emp_asg_criteria(p_effective_date => TRUNC(SYSDATE),
p_datetrack_update_mode => 'CORRECTION',
p_assignment_id => v_assignment_id,
p_validate => FALSE,
p_called_from_mass_update => NULL,
p_grade_id => v_grade_id,
p_position_id => NULL,
p_job_id => v_job_id,
p_payroll_id => null,--v_payroll_id,
p_location_id => v_location_id,
p_organization_id => v_business_group_id,
p_pay_basis_id => v_pay_basis_id,
p_segment1 => NULL,
p_segment2 => NULL,
p_segment3 => NULL,
p_segment4 => NULL,
p_segment5 => NULL,
p_segment6 => NULL,
p_segment7 => NULL,
p_segment8 => NULL,
p_segment9 => NULL,
p_segment10 => NULL,
p_segment11 => NULL,
p_segment12 => NULL,
p_segment13 => NULL,
p_segment14 => NULL,
p_segment15 => NULL,
p_segment16 => NULL,
p_segment17 => NULL,
p_segment18 => NULL,
p_segment19 => NULL,
p_segment20 => NULL,
p_segment21 => NULL,
p_segment22 => NULL,
p_segment23 => NULL,
p_segment24 => NULL,
p_segment25 => NULL,
p_segment26 => NULL,
p_segment27 => NULL,
p_segment28 => NULL,
p_segment29 => NULL,
p_segment30 => NULL,
p_employment_category => NULL,
p_concat_segments => NULL,
p_grade_ladder_pgm_id => NULL,
p_supervisor_assignment_id => v_sup_assignment_id,
p_people_group_id => v_people_group_id,
p_object_version_number => v_object_version_number,
p_special_ceiling_step_id => v_special_ceiling_step_id,
p_group_name => v_group_name,
p_effective_start_date => v_ass_effective_start_date,
p_effective_end_date => v_effective_end_date,
p_org_now_no_manager_warning => v_org_now_no_manager_warning ,
p_spp_delete_warning => v_spp_delete_warning,
p_entries_changed_warning => v_entries_changed_warning,
p_tax_district_changed_warning => v_tax_district_changed_warning,
p_other_manager_warning => v_other_manager_warning);
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20008,'Error While Create new assignment..'||SQLCODE||' '||SQLERRM);
END;
END LOOP;
COMMIT;
END;
Thank you & Best RegardsI think this is essentially saying that the Supervisor Assignment is wrong or no longer effective. Looking at your SQL to fetch the Supervisor Assignment there are a number of potential issues. This is what you've currently got:
SELECT person_id
INTO v_person_id
FROM per_all_people_f
WHERE employee_number = r.supervisor_number
AND business_group_id= v_business_group_id;
SELECT assignment_id
INTO v_sup_assignment_id
FROM per_all_assignments_f
WHERE person_id = v_person_id
AND business_group_id = v_business_group_id;
Potential Problems/Clarifications
1. What is r.supervisor_number, what does it contain and how is it derived? I can't see that anywhere else in the block...
2. Is there a chance that r.supervisor_number is referencing an employee who has left, ie, now an ex-employee?
3. The SELECT statement that fetches the assignment_id does not perform any date-effective restrictions, which means you might be lucky enough to fetch the person's current assignment. But you might also fetch an old or future-dated assignment.
4. The SELECT statement that fetches the assignment_id does not restrict the type of assignment, so if this manager has applied for a job (ie, they have an applicant assignment) or some other type of non-employee assignment you might be picking that up.
This would work better for you:
SELECT paaf.assignment_id
INTO v_sup_assignment_id
FROM per_all_people_f papf
,per_all_assignments_f paaf
WHERE papf.employee_number = r.supervisor_number
AND papf.business_group_id = v_business_group_id
AND nvl(papf.current_employee_flag, 'N') = 'Y'
AND trunc(sysdate) BETWEEN
papf.effective_start_date AND papf.effective_end_date
AND papf.person_id = paaf.person_id
AND paaf.assignment_type = 'E'
AND paaf.primary_flag = 'Y'
AND trunc(sysdate) BETWEEN
paaf.effective_start_date AND paaf.effective_end_date;
If it doesn't return a row it means that the supervisor (or whatever employee is returned by r.supervisor_number) is not active as at sysdate and cannot be used. Note that this SQL only applies for employees. If you can have Contingent Workers as supervisors in your implementation then this needs tweaking.
Does that help? -
BO Webi report giving WIJ 20003 exception
Hi,
I have a webi report which consists of some calculated fields based on Dataprovider SQL. A Report variable has been created to compare two columns and if they are equal then value is set to 1s otherwise, 0s. Based on the 1s I get, I want to display these rows only i.e. I have placed a filter where variable vaule is 1s. When I try to run the report, it gives me the following exception/error:
'Unable to get the first page of the current report WIJ 20003 and details :
Stack trace:
java.lang.RuntimeException: Empty result
at com.businessobjects.wp.tc.result.ResultXmlReport.displayPages(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.updateXmlDocument(Unknown Source) at com.businessobjects.wp.tc.TCMain.errorOnResultPage(Unknown Source) at com.businessobjects.wp.tc.thread.SubmitRSRunner.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Variable is Var Display=If([Var Col1]=[Var Col2];1;0)
and then using Filter Pane add this variable equal to 1.
Please advise.
Thanks
Sam.Not sure really if is it because of blank cells. I made a copy of the original report to identify what's the issue. what i observed was i refreshed the report successfully then it didn't give me any errors & i didn't see any #Syntax error in any column after i refreshed the report. But once i refreshed the report and saved it, then next time when you open the report in modify mode or schedule the report you will see this error.
Later i have opened the query in Modify mode & edited the query then i saw a pop up saying unresolvable objects error. Then i ran the query again and saved the report, closed it & reopened the webi report. Then i didn't see this error again. Also verified by scheduling the report, i was able to open the instance without any errors.
So the conclusion is, because you have some unresolvable objects in the query when you refresh the report and save it, the report gets corrupted and then when you reopen the webi report next time you will see this "ERR: WIJ 20003" error.
Hope this helps others saving their time..
Mark it as helpful/correct answer if this help anyone.
Regards,
Naveen -
Oracle type error using cygwin on windows to connect via sqlplus to oracle.
Hi,
Found already some information on the internet regarding this topic but wasn't able to solve it so far.
So all informartion, tips are more then welcome.
Scripts runs with admin account 'DBA_Services'
Sqlplus connection sqlplus sys/***@oracle_sid
Thx already
OWBrun Script (v2.0)
Enviroment : GAMMA
Hostname : pvspdb04
Database : sgviv5
Date : 05Nov2010
Time : 15:58:21
Schema : dwhins
RuntimeRep: OWBRUN
Mapping : INS_DLITE_CTRL_JOB_03
Location : DNA_STAGING_LOCATION
Type load : PLSQL
Custom par: ,
Identifier: INS_DLITE_CTRL_JOB_03_20101105155820
Logfile : /ING/DWH/ora_dwh_loader/log/dwhins/owbrun_dwhins_INS_DLITE_CTRL_JOB_03_20101105155820.log
=== Check DB connect ===
05-NOV-2010 15:58:22
DB connection test is OK (attemps=1)
=== OWB RUN ===
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Nov 5 15:58:22 2010
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options
SQL> SQL> SQL> SQL>
Session altered.
Elapsed: 00:00:00.00
SQL>
Session altered.
Elapsed: 00:00:00.00
SQL>
Session altered.
Elapsed: 00:00:00.00
SQL>
Session altered.
Elapsed: 00:00:00.00
SQL> SQL> SQL> SQL> SQL>
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
SQL> ++ Execute owbruntask dwhins.INS_DLITE_CTRL_JOB_03
SQL>
Stage 1: Decoding Parameters
| location_name=DNA_STAGING_LOCATION
| task_type=PLSQL
| task_name=INS_DLITE_CTRL_JOB_03
Stage 2: Opening Task
declare
ERROR at line 1:
ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
ORA-06512: at line 267
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options Exitcode = 33 Error : OWBRUN INS_DLITE_CTRL_JOB_03
Date : 05Nov2010
Time : 15:58:24This are the most important scripts:
DLITE_Sub1_201.ksh
#!/bin/ksh
#set -x
cp /ING/DWH/ora_dwh_loader/conf/stgins.cfg.sgviv5 /ING/DWH/ora_dwh_loader/conf/stgins.cfg
export FPATH=/ING/IIB/DNA/Interfaces/Scripts
export FINPATH=/ING/IIB/DNA/In/
export FOUTPATH=/ING/IIB/DNA/Out/
#load script into memory
autoload DLITE_fct_JS
#load script into memory
#autoload DNA_fct_JS_EXEC
JS_SCRIPT=`basename $0`
JS_ID=201
JS_TSK_ID=001;JS_TSK_NAM="FP_START_Remove_Files"
echo "\nstart subtask '${JS_TSK_NAM}"
cd /ING/IIB/DNA/Out
rm -f DLITE_CAPSIL_CODE_*.CSV
rm -f DLITE_CAPSIL_VAL_*.CSV
rm -f DLITE_VARIA_CODE_*.CSV
rm -f DLITE_VARIA_VAL_*.CSV
echo "\nend subtask '${JS_TSK_NAM}"
JS_TSK_ID=002;JS_TSK_NAM="F_DLITE_01_CODE_DESC"
cd /ING/IIB/DNA/Interfaces/Scripts
echo "\nstart subtask '${JS_TSK_NAM}"
ksh DLITE_owbrun.ksh -s dwhins -t PROCESS -m F_DLITE_01_CODE_DESC -l LOC_DNA_FLOW_STORE -c ","
JS_TSK_STA=$?
echo "\nverifying correct execution of subtask '${JS_TSK_NAM}"
if [ ${JS_TSK_STA} -ne 0 ] ; then
ksh DLITE_owbrun.ksh -s dwhins -t PLSQL -m INS_DLITE_CTRL_JOB_03 -l DNA_STAGING_LOCATION -c ","
exit 1
fi
echo "\nend subtask '${JS_TSK_NAM}"
JS_TSK_ID=002;JS_TSK_NAM="Check header/footer of files"
echo "\nstart subtask '${JS_TSK_NAM}"
ksh DLITE_CheckHeaderFooter.ksh
JS_TSK_STA=$?
if [ ${JS_TSK_STA} -ne 0 ] ; then
exit 1
fi
echo "\nend subtask '${JS_TSK_NAM}"
DLITE_owbrun.ksh
. /ING/IIB/DNA/Interfaces/Scripts/DLITE_ods_set_env.ksh
fout_melding()
echo "Error : ${1}" | tee -a ${LOGFILE}
echo " Date : $(date +%d%b%Y)" >> ${LOGFILE}
echo " Time : $(date +%H:%M:%S)" >> ${LOGFILE}
if [ -s ${LOGFILE:=/tmp/foutmelding} ]
then
cat ${LOGFILE} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
else
echo "Error : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Error OWB run ${SCHEMA} : ${MAPPING}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
fi
rm -f ${STATSFILE}
waarschuwing()
echo "Warning : ${1}" | tee -a ${LOGFILE}
echo " Date : $(date +%d%b%Y)" >> ${LOGFILE}
echo " Time : $(date +%H:%M:%S)" >> ${LOGFILE}
if [ -s ${LOGFILE:=/tmp1/foutmelding} ]
then
echo ${1} | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
else
echo "Warning : ${1}" | mailx -s "'hostname':${ORACLE_SID};'Enviroment' :${APPL_ENV} : Warning OWB run ${SCHEMA} : ${TABLENAME}" "${dstG_OWB_errors[*]} ${dstA_OWB_errors[*]}"
fi
USAGE="Usage : owbrun.ksh -s target_schema -t type -m mapping -l location -c custom_param -p system_param [-i ident]"
umask 022
ORVERSION=2.0
set -- `getopt s:t:m:c:p:i:l: $*`
if [ $? -ne 0 ]
then
echo ${USAGE}
exit 2
fi
while [ $# -gt 0 ]
do
case ${1} in
-s)
SCHEMA=${2}
shift 2
-t)
LOADTYPE=${2}
shift 2
-l)
LOCATION=${2}
shift 2
-m)
MAPPING=${2}
shift 2
-i)
IDENT=${2}
shift 2
-c)
CUSTPARAM=${2}
shift 2
shift
break
esac
done
export LISTFILENAMES=${*}
if [ "${SCHEMA}" = "" ]
then
fout_melding "Target Schema is mandatory"
echo ${USAGE}
exit 1
fi
if [ "${MAPPING}" = "" ]
then
echo "Error : Mapping is mandatory"
echo ${USAGE}
exit 1
fi
if [ "${LOCATION}" = "" ]
then
echo "Error : Location is mandatory"
echo ${USAGE}
exit 1
fi
MAPPING=$(echo ${MAPPING} | tr [:lower:] [:upper:])
if [ "${LOADTYPE}" = "" ]
then
echo "Error : Type (PLSQL/SQLLDR/PROCESS) is mandatory"
echo ${USAGE}
exit 1
fi
LOADTYPE=$(echo ${LOADTYPE} | tr [:lower:] [:upper:])
if [ "${LOADTYPE}" != "PLSQL" -a "${LOADTYPE}" != "SQLLDR" -a "${LOADTYPE}" != "PROCESS" ]
then
echo "Error : Illegal type ${LOADTYPE}"
echo ${USAGE}
exit 1
fi
export SCHEMA=$(echo ${SCHEMA} | tr [:upper:] [:lower:])
export UPSCHEMA=$(echo ${SCHEMA} | tr [:lower:] [:upper:])
# Call the Configuration script
. /ING/DWH/ora_dwh_loader/bin/config.ksh -s ${SCHEMA}
exitcode=$?
if [ $exitcode -ne 0 ]
then
echo "Error : during config.ksh"
exit ${exitcode}
fi
if [ "${IDENT}" = "" ]
then
IDENT=${MAPPING}_$(date +%Y%m%d%H%M%S)
CUSTPARAM=$(echo ${CUSTPARAM} | awk -f ${BASEPATH}/bin/owbrun.awk "datum=$(date +%Y%m%d%H%M%S)")
fi
if [ "${RUNREP}" = "" ]
then
fout_melding "Runtime Repository is mandatory (see ${SCHEMA}.cfg)"
echo ${USAGE}
exit 1
fi
export BPIDFILE=${TMPDRIVE}/owbrun_${SCHEMA}_${IDENT}_$$.pidlist
export LOGFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.log
export STATSFILE=${LOGDRIVE}/owbrun_${SCHEMA}_${IDENT}.stats
echo "OWBrun Script (v${ORVERSION})" > ${LOGFILE}
echo "Enviroment : ${APPL_ENV}" >> ${LOGFILE}
echo "Hostname : $(hostname)" >> ${LOGFILE}
echo "Database : ${ORACLE_SID}" >> ${LOGFILE}
echo "Date : $(date +%d%b%Y)" >> ${LOGFILE}
echo "Time : $(date +%H:%M:%S)" >> ${LOGFILE}
echo "Schema : ${SCHEMA}" >> ${LOGFILE}
echo "RuntimeRep: ${RUNREP}" >> ${LOGFILE}
echo "Mapping : ${MAPPING}" >> ${LOGFILE}
echo "Location : ${LOCATION}" >> ${LOGFILE}
echo "Type load : ${LOADTYPE}" >> ${LOGFILE}
echo "Custom par: ${CUSTPARAM}" >> ${LOGFILE}
echo "Identifier: ${IDENT}" >> ${LOGFILE}
echo "Logfile : ${LOGFILE}" >> ${LOGFILE}
echo " " >> ${LOGFILE}
echo "Hostname : $(hostname)" > ${STATSFILE}
echo "Database : ${ORACLE_SID}" >> ${STATSFILE}
echo "Schema : ${SCHEMA}" >> ${STATSFILE}
echo "Mapping : ${TABLENAME}" >> ${STATSFILE}
echo "Period : P${PERIOD}" >> ${STATSFILE}
echo "Type load : ${LOADTYP}" >> ${STATSFILE}
echo "Identifier: ${IDENT}" >> ${STATSFILE}
echo "Start : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
echo "=== Check DB connect ===" >> ${LOGFILE}
${BASEPATH}/bin/chk_db_connect.ksh >> ${LOGFILE}
exitcode=${?}
if [ $exitcode -ne 0 ]
then
fout_melding "Could NOT connect to database ${ORACLE_SID}"
exit ${exitcode}
fi
echo "=== OWB RUN ===" >> ${LOGFILE}
sqlplus 'system/*****' <<-EOF >> ${LOGFILE}
set timing on
set serveroutput on
alter session set sort_area_size=2621440;
alter session set hash_area_size=2621440;
alter session set skip_unusable_indexes=true;
alter session enable resumable timeout ${ResumableTimeout} name 'OwbRunTask ${UPSCHEMA}.${MAPPING}';
set pages 0
set timing on
set serveroutput on
WHENEVER SQLERROR EXIT SQL.SQLCODE
exec dbms_application_info.set_module('OWBRUNTASK','${UPSCHEMA}.${MAPPING}');
Prompt ++ Execute owbruntask ${SCHEMA}.${MAPPING}
declare
p_repos_owner varchar2(100):= '${RUNREP}';
p_location_name varchar2(100):='${LOCATION}';
p_task_type varchar2(100) :='${LOADTYPE}';
p_task_name varchar2(100) default '${MAPPING}';
p_system_params varchar2(100) default '","';
p_custom_params varchar2(200) default '${CUSTPARAM}"';
p_oem_friendly number default 0;
l_oem_style boolean := case (p_oem_friendly)
when 0 then false
else true
end ;
l_audit_execution_id number; -- Audit Execution Id
l_audit_result number := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE; -- Result Code
l_audit_result_disp varchar2(64) := 'FAILURE'; -- Result Display Code
l_task_type_name varchar2(64); -- Task Type Name
l_task_type varchar2(64); -- Task Type
l_task_name varchar2(64); -- Task Name
l_location_name varchar2(64); -- Location Name
l_return number ;
fout exception;
opgepast exception;
p_parameters varchar2(4000);
p_parameter_kind number;
l_anchor_offset number := 1;
l_start_offset number := 1;
l_equals_offset number;
l_comma_offset number;
l_value_offset number;
l_esc_offset number;
l_esc_count number;
l_esc_char varchar2(4);
l_parameter_name varchar2(4000);
l_parameter_value varchar2(4000);
begin
p_custom_params:=replace(p_custom_params,'~',' ');
execute immediate ('alter session set current_schema = ' || p_repos_owner) ;
-- Initialize Return Code
l_return := ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE;
-- Import Parameters
dbms_output.put_line('Stage 1: Decoding Parameters');
l_task_type_name := p_task_type ;
if UPPER(l_task_type_name) = 'PLSQL'
then
l_task_type := 'PLSQL';
elsif UPPER(l_task_type_name) = 'SQL_LOADER'
then
l_task_type := 'SQLLoader';
elsif UPPER(l_task_type_name) = 'PROCESS'
then
l_task_type := 'ProcessFlow';
else
l_task_type := l_task_type_name;
end if;
l_task_name := p_task_name ;
l_location_name := p_location_name ;
dbms_output.put_line('| location_name=' || l_location_name);
dbms_output.put_line('| task_type=' || l_task_type);
dbms_output.put_line('| task_name=' || l_task_name);
-- Decode Parameters
begin
-- Prepare Execution
dbms_output.put_line('Stage 2: Opening Task');
l_audit_execution_id := ${RUNREP}.wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
dbms_output.put_line('| l_audit_execution_id=' || to_char(l_audit_execution_id));
commit;
-- Override Parameters
p_parameters:=p_system_params;
p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_SYSTEM;
l_anchor_offset:= 1;
l_start_offset:= 1;
l_equals_offset:=0;
l_comma_offset:=0;
l_value_offset:=0;
l_esc_offset:=0;
l_esc_count:=0;
l_esc_char:=null;
l_parameter_name:=null;
l_parameter_value:=null;
begin
loop
l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
exit when l_equals_offset = 0;
l_start_offset := l_equals_offset + 1;
loop
l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
if l_comma_offset = 0
then
l_comma_offset := length(p_parameters) + 1;
exit;
else
l_esc_count := 0;
l_esc_offset := l_comma_offset - 1;
loop
l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
exit when l_esc_char != '\';
l_esc_count := l_esc_count + 1;
l_esc_offset := l_esc_offset - 1;
end loop;
if MOD(l_esc_count, 2) != 0
then
l_start_offset := l_comma_offset + 1;
else
exit;
end if;
end if;
end loop;
l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
-- Override Input Parameter
${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
exit when l_comma_offset >= length(p_parameters)-1;
l_start_offset := l_comma_offset + 1;
l_anchor_offset := l_start_offset;
end loop;
end;
p_parameters:=p_custom_params;
p_parameter_kind :=${RUNREP}.wb_rt_api_exec.PARAMETER_KIND_CUSTOM;
l_anchor_offset:= 1;
l_start_offset:= 1;
l_equals_offset:=0;
l_comma_offset:=0;
l_value_offset:=0;
l_esc_offset:=0;
l_esc_count:=0;
l_esc_char:=null;
l_parameter_name:=null;
l_parameter_value:=null;
begin
loop
l_equals_offset := INSTR(p_parameters, '=', l_start_offset);
exit when l_equals_offset = 0;
l_start_offset := l_equals_offset + 1;
loop
l_comma_offset := INSTR(p_parameters, ',', l_start_offset);
if l_comma_offset = 0
then
l_comma_offset := length(p_parameters) + 1;
exit;
else
l_esc_count := 0;
l_esc_offset := l_comma_offset - 1;
loop
l_esc_char := SUBSTR(p_parameters, l_esc_offset, 1);
exit when l_esc_char != '\';
l_esc_count := l_esc_count + 1;
l_esc_offset := l_esc_offset - 1;
end loop;
if MOD(l_esc_count, 2) != 0
then
l_start_offset := l_comma_offset + 1;
else
exit;
end if;
end if;
end loop;
l_parameter_name := LTRIM(RTRIM(SUBSTR(p_parameters, l_anchor_offset, l_equals_offset - l_anchor_offset)));
l_parameter_value := SUBSTR(p_parameters, l_equals_offset + 1, l_comma_offset - (l_equals_offset + 1));
-- Override Input Parameter
${RUNREP}.wb_rt_api_exec.override_input_parameter(l_audit_execution_id,l_parameter_name,l_parameter_value,p_parameter_kind);
exit when l_comma_offset >= length(p_parameters)-1;
l_start_offset := l_comma_offset + 1;
l_anchor_offset := l_start_offset;
end loop;
end;
-- Execute
dbms_output.put_line('Stage 4: Executing Task');
l_audit_result := ${RUNREP}.wb_rt_api_exec.execute(l_audit_execution_id);
if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
then
l_audit_result_disp := 'SUCCESS';
elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
then
l_audit_result_disp := 'WARNING';
elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_FAILURE
then
l_audit_result_disp := 'FAILURE';
else
l_audit_result_disp := 'UNKNOWN';
end if;
dbms_output.put_line('| l_audit_result=' || to_char(l_audit_result) || ' (' || l_audit_result_disp || ')');
-- Finish Execution
dbms_output.put_line('Stage 5: Closing Task');
${RUNREP}.wb_rt_api_exec.close(l_audit_execution_id);
commit;
dbms_output.put_line('Stage 6: Processing Result');
if l_oem_style
then
if l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_SUCCESS
then
l_return := 0;
elsif l_audit_result = ${RUNREP}.wb_rt_api_exec.RESULT_WARNING
then
l_return := 0;
else
l_return := l_audit_result;
end if;
else
l_return := l_audit_result;
end if;
dbms_output.put_line('| exit=' || to_char(l_return));
if (l_return = 3) then
raise fout;
elsif (l_return = 2 ) then
raise opgepast;
end if;
exception
when fout then
raise_application_error(-20002, 'Error during executing task');
when opgepast then
raise_application_error(-20003, 'Warning during executing task');
when no_data_found
then
raise_application_error(-20001, 'Task not found - Please check the Task Type, Name and Location are correct.');
end;
dbms_output.put_line('| exit=' || to_char(l_return));
end ;
EOF
exitcode=${?}
if [ ${exitcode} -ne 0 ]
then
echo "Exitcode = ${exitcode}" >> ${LOGFILE}
fout_melding "OWBRUN ${MAPPING} "
exit ${exitcode}
else
echo "OWBRUN succesfull" >> ${LOGFILE}
fi
echo "---------------------------------------------------------------------" >> ${LOGFILE}
echo "Date : $(date +%d%b%Y)" >> ${LOGFILE}
echo "Time : $(date +%H:%M:%S)" >> ${LOGFILE}
echo "Terminated succesfull" >> ${LOGFILE}
echo "---------------------------------------------------------------------" >> ${LOGFILE}
echo "Stop : $(date +%d%m%Y%H%M%S)" >> ${STATSFILE}
times >> ${STATSFILE}
#echo "Loader Statistics" >> ${LOGFILE}
#awk -f ${BASEPATH}/bin/loadstat.awk ${STATSFILE} >> ${LOGFILE}
#${BASEPATH}/bin/loadstat.ksh -s ${SCHEMA} -f ${STATSFILE}
exit 0
Maybe you are looking for
-
Problem with packet data with E5
Last night every thing was OK, I was able to connect to internet using my phone but today I tried to connect but I get this msg "packet data: packet data not available .check network services" I called the company and they sent me the configurati
-
Import Settings, Use error correction
I just read that the "Use error correction when reading Audio CDs" box in iTunes Import Settings should really be on, (even though it's slower). on this page http://www.kenrockwell.com/apple/itunes.htm It's copyright 2006 Is this really the case?
-
Deferred Tasks - Passing Variables into Workflow
Hi everyone I am experiencing difficulties with deferred tasks in IDM 8.1. I have managed to create a deferred task on a user, with the task name being Generate Email. I also passed in an attribute id, and these can be seen in the user view under
-
Syntax error in Define entitytype method in MPC class.
Hi, I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Ent
-
Can I read download Adobe light room and enter my serial code that way? And if so where can I download the program thank you in advance