# ERROR: Unable to properly load a script file

**URL:** <https://community.jenkins.io/t/error-unable-to-properly-load-a-script-file/3228>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [August 2, 2022, 1:46am UTC](https://community.jenkins.io/t/error-unable-to-properly-load-a-script-file/3228 "2022-08-02T01:46:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokcy](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@rokcy](https://community.jenkins.io/u/rokcy)\
**Post date:** [August 2, 2022, 1:46am UTC](https://community.jenkins.io/t/error-unable-to-properly-load-a-script-file/3228/1 "2022-08-02T01:46:04Z")

</div>

Hi Team,

```
 I'm encountering an issue with Jenkins, when I click the instantly build the project, it doesn't work, the error info below:

```

> ERROR: Unable to properly load a script file.

![jenkins-error](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/d/d8b3d37618f2a57b4d2444375cfec8ec0f51df40.png)

but I use the scanner branch method, it will build successfully, I use the Jenkins version is 2.361. please help me, What is the cause for this error…? How to fix this error. it disturbs me for a few days. I still can’t solve it.

I found the Jenkins log has some errors, but I am not sure if they relative this issue

```auto
 WARNING o.j.p.w.s.a.WorkspaceRunAction#getActions
java.io.IOException: test/backend/customer-filehandling-service/test #6 did not yet start
        at org.jenkinsci.plugins.workflow.job.WorkflowRun$Owner.get(WorkflowRun.java:977)
        at org.jenkinsci.plugins.workflow.support.actions.WorkspaceRunAction.getActions(WorkspaceRunAction.java:81)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
        at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
        at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
        at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
        at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:76)
        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:94)
        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265)
        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:101)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:101)
        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:265)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

```

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 2, 2022, 5:30pm UTC](https://community.jenkins.io/t/error-unable-to-properly-load-a-script-file/3228/2 "2022-08-02T17:30:30Z")

</div>

> [@rokcy](#):
>
> Unable to properly load a script file.

doing some searching for that message on github, I found [Config-Driven Pipeline](https://plugins.jenkins.io/config-driven-pipeline/)  
I’ve not heard of this plugin or have much experience with it but looking at the code brielfy, it looks like it spits out that error when it can’t parse the file provided. It should kinda indicate why in the jenkins system logs, have you looked there at all?

---

<div class="post-metadata">

**Author:** ![rokcy](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@rokcy](https://community.jenkins.io/u/rokcy)\
**Post date:** [August 3, 2022, 2:45am UTC](https://community.jenkins.io/t/error-unable-to-properly-load-a-script-file/3228/3 "2022-08-03T02:45:09Z")

</div>

thanks, I will look at all logs, your reply already gives me very useful information, thanks again.
