# "Your build scan could not be displayed." what does this mean?

**URL:** <https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302>\
**Category:** scans.gradle.com\
**Created:** [September 25, 2019, 3:57pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302 "2019-09-25T15:57:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukecwik](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lukecwik](https://discuss.gradle.org/u/lukecwik)\
**Post date:** [September 25, 2019, 3:57pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/1 "2019-09-25T15:57:09Z")

</div>

A few Apache Beam community members have mentioned that they get the same error when using --scan locally or when run via Jenkins.

Here is an example link:  
[https://gradle.com/s/mpfu3wpz2xfwe](https://gradle.com/s/mpfu3wpz2xfwe)

Is this a temporary issue or do we need to upgrade our version of Gradle that we use?

---

<div class="post-metadata">

**Author:** ![tim\_yates](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tim_yates/32/7849_2.png) [@tim\_yates](https://discuss.gradle.org/u/tim_yates)\
**Post date:** [September 25, 2019, 4:25pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/2 "2019-09-25T16:25:54Z")

</div>

Hi there!

Thanks for reporting this, it doesn’t look like a temporary issue, and we are investigating why the scan is failing to render 👍

In the mean time, can you try the build scan plugin 2.4.2? I _think_ you’re on 2.4 and there were some fixes in 2.4.2 for remote script handling

Thanks

Tim

---

<div class="post-metadata">

**Author:** ![lukecwik](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lukecwik](https://discuss.gradle.org/u/lukecwik)\
**Post date:** [September 25, 2019, 5:19pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/3 "2019-09-25T17:19:32Z")

</div>

I tried with the 2.4.2 plugin but still receive a failure, here is the new link [https://scans.gradle.com/s/xm4nfnkg425ky](https://scans.gradle.com/s/xm4nfnkg425ky)

---

<div class="post-metadata">

**Author:** ![tim\_yates](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tim_yates/32/7849_2.png) [@tim\_yates](https://discuss.gradle.org/u/tim_yates)\
**Post date:** [September 25, 2019, 5:30pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/4 "2019-09-25T17:30:16Z")

</div>

Thanks for trying… We will investigate.

---

<div class="post-metadata">

**Author:** ![Rene](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rene/32/8082_2.png) [@Rene](https://discuss.gradle.org/u/Rene)\
**Post date:** [September 25, 2019, 9:18pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/5 "2019-09-25T21:18:08Z")

</div>

I looked into the providing scan. That issue seems to be on the plugin side unfortunately. Is it possible for you to provide a reproducable example build we can use locally to narrow down the root cause?

---

<div class="post-metadata">

**Author:** ![Rene](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rene/32/8082_2.png) [@Rene](https://discuss.gradle.org/u/Rene)\
**Post date:** [September 25, 2019, 9:52pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/6 "2019-09-25T21:52:56Z")

</div>

at luke. from having a deeper look my initial hunch is that this is related to the spotless plugin you’re using. Would you mind trying your build without this plugin being applied? As said a reproducable example bulid would be golden for use narrowing down this issue quickly.

thanks again!

cheers,  
René

---

<div class="post-metadata">

**Author:** ![lukecwik](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lukecwik](https://discuss.gradle.org/u/lukecwik)\
**Post date:** [September 25, 2019, 10:08pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/7 "2019-09-25T22:08:32Z")

</div>

git clone [https://github.com/apache/beam.git](https://github.com/apache/beam.git)  
cd beam  
git checkout 04dc3c3b14ab780e9736d5f769c6bf2a27a390bb  
./gradlew compileJava --scan

---

<div class="post-metadata">

**Author:** ![lukecwik](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lukecwik](https://discuss.gradle.org/u/lukecwik)\
**Post date:** [September 25, 2019, 10:50pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/8 "2019-09-25T22:50:06Z")

</div>

I tried 3.24.3 (latest) and 3.17.0 (previous version we were using) of the spotless plugin and both of them had the same error.

---

<div class="post-metadata">

**Author:** ![lukecwik](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lukecwik](https://discuss.gradle.org/u/lukecwik)\
**Post date:** [September 26, 2019, 4:38pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/9 "2019-09-26T16:38:44Z")

</div>

I created [https://github.com/lukecwik/incubator-beam/commit/1f026c9b94e3f8afc0cd472350b77c1eeef30a83](https://github.com/lukecwik/incubator-beam/commit/1f026c9b94e3f8afc0cd472350b77c1eeef30a83) which removed spotless and I was able to successfully view the build scan [https://scans.gradle.com/s/665zarmdoixh6](https://scans.gradle.com/s/665zarmdoixh6)

Any suggestions on how to keep the spotless plugin and also have build scans working?

---

<div class="post-metadata">

**Author:** ![tomd](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tomd/32/1973_2.png) [@tomd](https://discuss.gradle.org/u/tomd)\
**Post date:** [October 2, 2019, 7:58am UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/10 "2019-10-02T07:58:33Z")

</div>

Hi Lukasz!

Thanks for reporting this. It’s caused by the spotless plugin resolving build script configurations in an unexpected place, which is why removing spotless from your build fixes the issue.

We will include a fix to handle the unexpected data more gracefully in the next version of Gradle Enterprise and will of course update [scans.gradle.com](http://scans.gradle.com) when the fix is available.

In the meantime your options are to remove spotless as you have done here, or downgrade the build scan plugin to version 2.3. The latter means that you won’t collect / view the new dependency data that 2.4 [enables](https://plugins.gradle.org/plugin/com.gradle.build-scan/2.4), but it also won’t fall over before the bug is fixed.

Hope that helps!

Regards

Tom

---

<div class="post-metadata">

**Author:** ![rhart](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rhart/32/2932_2.png) [@rhart](https://discuss.gradle.org/u/rhart)\
**Post date:** [October 16, 2019, 11:59am UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/11 "2019-10-16T11:59:20Z")

</div>

Hi Lukasz,

FYI the fix to handle the unexpected data more gracefully is now released to [scans.gradle.com](http://scans.gradle.com).

Cheers,  
Rus

---

<div class="post-metadata">

**Author:** ![ajamato](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ajamato](https://discuss.gradle.org/u/ajamato)\
**Post date:** [June 25, 2020, 11:45pm UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/12 "2020-06-25T23:45:19Z")

</div>

Hi, I just wanted to mention that I am seeing the same issue as well today using build scan plugin 2.4.2. I also saw it on a few other versions, 2.3, 2.0.2.

I can give removing spotless a try as well.

---

<div class="post-metadata">

**Author:** ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)\
**Post date:** [June 26, 2020, 5:54am UTC](https://discuss.gradle.org/t/your-build-scan-could-not-be-displayed-what-does-this-mean/33302/13 "2020-06-26T05:54:21Z")

</div>

Hi @ajamato,

We have limits in place at [scans.gradle.com](http://scans.gradle.com) regarding:

- the total size of the build scan
- individual parts of this data

When such limits are reached, [scans.gradle.com](http://scans.gradle.com) rejects the build scan, and you see ‘Your build scan could not be displayed’ when you try to access the build scan.  
We plan to improve the user experience here, by providing more information when that happens, but I can’t commit to any date yet.

Please note that when using a licensed Gradle Enterprise instance, these limits are configurable to suit your needs.

Also, we optimized the storage of some captured build scan data in recent Gradle Enterprise Gradle plugin versions, and some builds that were exhibiting these symptoms with older version of the plugin will now work fine. Could you upgrade to a more recent version of the plugin and try ?  
If it still fails, you can also give me the build scan URL and I will look exactly which type of data is causing the problem, to give you more context.

It is also possible that this message is shown when there is a genuine error processing the build scan data, but I can’t know for sure unless you give me a build scan URL.
