Hidden folders inside Ignition project repo causing compliation error

Hi Ignition Team,
In our Ignition Project repo we also have some hidden folders that contain database scripts, pipeline scripts etc .Issue is when we zip the contents of the repo to import it to Ignition, we are getting compilation errors. So every time we need to import into Ignition we need to manually delete these hidden folders and zip the contents and import it.
Is there any fix for this issue ? Let us know. Thanks.
Regards,
Shyam

First, can you explain exactly what you mean by 'hidden' folders? Hidden at the OS level? On what OS? Hidden files by the Unix convention (leading .) are ignored by the project system.
Second, what version of Ignition is this?
Third, "compilation errors" is extremely vague. Can you post the exact stacktrace of any/all errors you're getting?

We have added a few folders named like ".database" (DOT in name to identify it as hidden folder). We use this to keep SQL scripts and other scripts. The OS is Windows 10. Version is Ignition 8.1

Error shown by designer after importing and opening the project is

java.lang.IllegalArgumentException: com.inductiveautomation.ignition.common.project.resource.NameInvalidException: Name '.database' is invalid
at com.inductiveautomation.ignition.designer.project.ResourceTreeNode.addChild(ResourceTreeNode.java:252)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at com.inductiveautomation.ignition.designer.project.ResourceTreeNode.(ResourceTreeNode.java:61)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.createNode(DesignerProjectTreeImpl.java:144)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.lambda$createNode$7(DesignerProjectTreeImpl.java:141)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.createNode(DesignerProjectTreeImpl.java:142)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.lambda$new$0(DesignerProjectTreeImpl.java:74)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.(DesignerProjectTreeImpl.java:75)
at com.inductiveautomation.ignition.designer.IgnitionDesigner$StartupProjectDialogHandler.lambda$new$2(IgnitionDesigner.java:2047)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.inductiveautomation.ignition.common.project.resource.NameInvalidException: Name '.database' is invalid
at com.inductiveautomation.ignition.designer.project.ResourceTreeNode.addChildInternal(ResourceTreeNode.java:261)
at com.inductiveautomation.ignition.designer.project.ResourceTreeNode.addChild(ResourceTreeNode.java:250)
... 25 more

Ignition v8.1.22 (b2022110109)
Java: Azul Systems, Inc. 11.0.16.1

Try setting -Dignition.projects.ignoredFiles=.database:.whatever:.alsowhatever in the additional params area in ignition.conf. This will require a gateway restart to take effect.

(one or more folder names separated by ":")

1 Like

Thank you Kevin
Added the below in the ignition.conf as mentioned, restarted the gateway and tried to import the project via the designer but still getting same error

Java Additional Parameters

wrapper.java.additional.1=-Ddata.dir=data
wrapper.java.additional.2=-Dignition.projects.ignoredFiles=database:azure-pipeline-scripts

Any suggestions ?

It looks like the ignoredFiles setting is looking for file extensions. I don't see a dot in your configuration to signify a file extension.

wrapper.java.additional.1=-Ddata.dir=data
wrapper.java.additional.2=-Dignition.projects.ignoredFiles=.database:.someExtension:.otherExt

You need to tell the it the file types to ignore ie .sql. As per below, they are directories with the dots.

2 Likes

Not types, but explicit directories, but, the same applies - it looks like you're missing the leading .

2 Likes

Thank you Griffith and dkhayes
Unfortunately still experience the same error.
Created ticket https://support.inductiveautomation.com/hc/en-us/requests/75570