Troubleshooting
A Result Too Large for Excel
An .xlsx worksheet holds 1,048,576 rows, one of which the column headings
take, so a drill-through can return at most 1,048,575 rows of data as an Excel
download. Asking for more shows a page saying so rather than downloading a
file, and nothing is sent: the download either arrives whole or does not arrive.
Download the results as CSV instead, which has no row limit, or narrow the point of view so that fewer rows come back. A report whose Hide column headers option is on can use the row the headings would have taken.
A result this large is often worth investigating rather than working around. It usually means a drill-through is reaching a level of detail that was not intended, which the Max rows option on the report can cap.
Using More Than One Essbase Java API Version
A server of type Essbase connects through the Essbase Java API, and a given release of that API works against a limited range of Essbase releases. Drillbridge used to carry one version of it, so working against a different Essbase release meant stopping the service, swapping the jars and starting it again, and from then on only that release could be reached.
Drillbridge now loads additional versions alongside the built-in one. Put a
version’s jar in drivers/essbase, named essbase-japi-<version>.jar, and
restart. The version then appears when editing an Essbase server, and servers
on different versions can be used at the same time.
The jar to copy is ess_japi.jar, taken from an Essbase installation of the
release you want to reach. It sits under common/EssbaseJavaAPI in the Essbase
or EPM System home; the rest of the path varies by release, so search the home
for the file name rather than following a fixed path. Rename the copy to carry
the release it came from, for example essbase-japi-21.8.0.jar. Nothing is
swapped or overwritten, so the version Drillbridge ships with stays available
and there is no procedure to reverse if the new one turns out not to suit.
Each version is loaded in isolation from the others, so they do not interfere despite defining the same classes. A server that names no version uses the built-in one, which is what every server did before this existed.
If a server names a version whose jar is not present, Drillbridge says so and lists the versions that are, rather than falling back to a version that may not work against that Essbase release.
Servers of type Essbase (REST API) and PBCS do not use the Java API and are unaffected.
Drillbridge Behind a Reverse Proxy
A reverse proxy or load balancer in front of Drillbridge, typically terminating
TLS, means Drillbridge is reached at an address it never sees: the browser asks
for https://drillbridge.example.com, and Drillbridge is handed a plain request
on port 9220. Anywhere Drillbridge has to write its own address, it writes the
one it was given, and the result is a redirect to http:// that drops the
session, or a drill-through definition carrying an address that does not work.
The proxy tells Drillbridge the original request through the X-Forwarded-*
headers, and Drillbridge reads them. Nothing has to be configured for
X-Forwarded-Host and X-Forwarded-Port; config/application.properties
names the other two:
server.tomcat.remoteip.remote-ip-header=x-forwarded-for
server.tomcat.remoteip.protocol-header=x-forwarded-proto
When the headers appear to be ignored
The headers are believed only when the request comes from a proxy that
Drillbridge trusts, and trust is decided by the proxy’s address. The default
covers the private IPv4 ranges and IPv6 loopback: 10.x, 172.16-31.x, 192.168.x,
127.x and ::1. A proxy anywhere else — a public address, or an IPv6 address
other than loopback — is not trusted, and its headers are discarded.
This is worth knowing because of how it fails. The proxy sends the header
correctly, Drillbridge ignores it, nothing is written to any log, and the only
symptom is that URLs come out as http://. It looks exactly like a proxy that
is not sending the header at all.
Name the proxy to fix it:
server.tomcat.remoteip.internal-proxies=203\.0\.113\.10|127\.\d{1,3}\.\d{1,3}\.\d{1,3}|::1
The value is a regular expression matched against the proxy’s address, and it replaces the default rather than adding to it, so keep any ranges you still need.
Checking it
Ask for a page that redirects and look at where it redirects to. Signed out:
curl -sI -H "X-Forwarded-Proto: https" http://drillbridge-host:9220/admin/reports | grep -i location
A trusted proxy gives a Location beginning https://. If it begins
http://, the header was discarded and the proxy’s address is not in internal-proxies.
The Code page of any report is the other place to look: the address in the drill-through definition it shows is built the same way, and the page says so when that address is not secure.
Seeing the Query a Report Generates
When a drill-through returns the wrong rows, no rows, or an error from the database, the first thing worth looking at is the query Drillbridge actually built, with the point of view substituted into it.
There are two ways to see it. On the report’s Test page, Run in debug mode does it for that one run without changing the report. The Debug mode option, on the report’s Options page under Debugging, does it for every run of the report until the option is turned off again, which is what to use when the drill-through has to come from Smart View or EPM Cloud rather than from the Test page.
Either way, the report prints a plain-text page instead of executing the query:
Transaction Detail
Generated query:
select TRANS_DATE, DOC_TYPE, DOC_NO, ACCOUNT_CODE, ACCOUNT_NAME, AMOUNT
from TRANSACTIONS
where SCENARIO = 'Actual'
and PERIOD = 'Jan'
and PRODUCT = '100-10'
and MARKET = 'New York'
and MEASURE = 'Sales'
order by TRANS_DATE, DOC_NO
Tokens:
Product : 100-10
Year : Jan
Measures : Sales
Market : New York
Scenario : Actual
Excluded Members:
Truncated Items:
HTTP Headers:
host : drillbridge:9220
user-agent : ...
cookie : JSESSIONID=...
Download file name (without suffix):
Transaction Detail
Model during execute query:
{ ... }
What each part is for:
Generated query is the finished SQL. Copy it into a database client and run it there: if it returns nothing in the client either, the problem is the query or the data rather than Drillbridge, which is usually the quickest way to tell the two apart.
Tokens are the values Drillbridge received from the point of view, after any expression on the token has been applied. A token that is missing here, or holds a member name rather than the alias you expected, explains a great many wrong-looking queries.
Excluded Members and Truncated Items report what was dropped before the query was built, such as members removed by a drillable member list or a list cut short by Max members on drill. A query that is missing members you expected is often explained here rather than in the query itself.
Download file name is what a downloaded file would be called, which is worth checking when a file name expression is involved.
Model during execute query is every variable available to the report’s header, footer and custom title, which is what to consult when one of those refers to something that turns out to be empty.
|
There is usually no need to turn the option on at all. The report’s Test page has a Run in debug mode button beside Build it! which does this for that one run and leaves the report alone, so there is nothing to set first and nothing to remember to unset. Use the option itself only when the request has to come from somewhere other than the Test page, such as a drill-through started from Smart View or EPM Cloud. |
|
The option stops the report returning data while it is on. The query is built and shown but never executed, for every output type: asking for Excel or CSV while it is on produces this same text rather than a file. Turn it off once you have what you need, or the report stays broken for everyone who runs it. The Run in debug mode button has no such catch, because it never changes the report. |
|
The output includes the point of view and the HTTP headers of the request, which carry the session cookie of whoever ran the report, and the query itself contains the member names drilled on. Treat a debug page like a log extract: check it before attaching it to a support ticket, and avoid leaving the option on for a report that end users are running. |
The other options in the Debugging group support the same work. Force plain
output sends HTML as text/plain so the browser shows the markup instead of
rendering it, which is how to see what a custom header or footer really
produced. Single line query collapses the generated query onto one line so
that it appears as a single entry in the log rather than spanning many. Sql
query delay waits the given number of seconds before running the query, which
is for reproducing what a user sees while a slow report is still running.
Tomcat unable to bind port (error in log file)
Occasionally if the Drillbridge server is not shut down properly it will leave a process running and using the port that Drillbridge wants to operate on. This can prevent Drillbridge from starting properly. To fix this on a Windows system, just start the Task Manager, look for a process named java.exe, and stop it. Then start up the Drillbridge server.
Class Unsupported Error
As of version 4.0.0, Drillbridge requires Java 17 or greater. If an older Java is on the PATH, or is otherwise set as the default version of Java to use, you may find an "Unsupported class file major version" or "Class Unsupported Error" message when attempting to start Drillbridge. To fix this you must upgrade Java.
Specifying a different Java than what is on the path
It may be necessary to specify a version of Java that is 17 or greater but is not located on the PATH. This might happen when you need to leave your default Java alone, but install Java 17+ for the purposes of running Drillbridge. This can be easily accomplished with a simple configuration change.
First, install Java onto your machine. The default directory on Windows
will usually be under the C:\Program Files directory structure. This
works but our preference is to install all JDKs underneath
C:\Java, such that there is C:\Java\jdk-17, C:\Java\jdk-21, and so
on.
With Java 17+ installed, next we need to edit the wrapper.conf file located in the Drillbridge config folder (this folder is in the folder where you installed Drillbridge). Edit the line with the setting marked 'wrapper.java.config'. By default, it will have a value simply of 'java'.
You may change this to a fully qualified java.exe location. For example, if you installed a Java 17 JDK and your install folder is the following:
# C:\Java\jdk-17
Then the Java executable will be in the following location:
# C:\Java\jdk-17\bin
And therefore, the full command to invoke this version of Java from any folder would be:
# C:\Java\jdk-17\bin\java
You can test this by tying this in a command prompt and verifying that Java runs:
# C:\Java\jdk-17\bin\java.exe -version
Once you verify that your specific command successfully runs Java, simply update your wrapper.java.command setting to reflect this:
# wrapper.java.command=C:\Java\jdk-17\bin\java.exe
Be sure you do not include the -v parameter as that is used purely to report the version. The command entered in the config file will now be used to launch Drillbridge.
Drill to Bottom on a dimension containing spaces in the name
Proper care has to be taken when setting up a drill-to-bottom token on a dimension containing spaces. In this case the "name" field on the token MUST match the dimension name and contain spaces. The variable name you reference inside the expression of the token, however, should be the dimension name but with all spaces replaced with underscores. If your drill-to-bottom dimension is named "Cost Centers" then the variable name would be #Cost_Centers
Java java.io.tmpdir Issue
Stack trace contains "The system cannot find the path specified" or "Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to create Tomcat tempdir. java.io.tmpdir is set to `C:\Windows\system32\config\systemprofile\AppData\Local\Temp\`" (or similar).
This seems to be an issue with the Windows security model. Drillbridge needs a temporary directory to run the web app in, but it is unable to write to the folder that Windows gives it. This can be fixed by manually specifying the temporary directory to use.
Stop Drillbridge, open up your wrapper.conf configuration file, and find this line:
# Java Additional Parameters
#wrapper.java.additional.1=
You can leave those two lines commented but add in a new line:
wrapper.java.additional.1=-Djava.io.tmpdir=D:/Drillbridge/drillbridge-X.Y.Z/tmp
Instead of D:/Drillbridge, though, change it to the path of your Drillbridge installation, and then create a new folder, /tmp, inside of it. Then try starting Drillbridge again. It seems that the problem itself is that the user running Drillbridge does not have write access to the normal Java temp folder, so we are just forcing it to a location that we know we have access to: a new folder inside the Drillbridge folder.