LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Project from Template can't be created because something exceeds path length of 255 characters

I've created a set of LabView code with example application as a project template in the following location:

 

\\Mac\Home\Documents\LabVIEW Data\ProjectTemplates\Source\HAF\

That path is 62 characters long.

Under the directory \HAF\ I have various single-level folders containing the code.  The longest subdirectory is \AbstractResourceEnumerator\ bringing the character count up to 89.

In that directory, the longest filename is AbstractResourceEnumerator giving a total path length of 116 characters.

 

When I try and create a project using that template LabVIEW starts to create it and then throws error: 

Screenshot 2023-10-10 at 18.14.59.png

 

I'm creating the project that uses the template as:

C:\LabView\Projects\Measure using Waveform

That path is 42 characters.

 

I've even tried C:\x

 

I thought creating a new project from a template, copied the template contents into the new projects directory?  If it created references, it still seems to be short enough.

 

Something is happening in regards to using a Project Template that I can't figure out.  Can someone point me at a paper that explains what happens when I select a template or maybe explain it?  Is there a way of finding out which file or folder path is too long?

 

My template is made from a Project containing LVOOP classes and VIs within a Library file and three VIs that reside outside the library file.  As far as I can tell it is set up correctly: I followed the instructions in the NI white paper for this and the dialog for creating a project from a template progresses properly.

 

 

0 Kudos
Message 1 of 2
(428 Views)

Having done some more (lot more) investigation, it would seem that this error is misleading.  The problem turned out to be nothing to do with path lengths and everything to do with having the template directory stored in a home folder mapped from my MacOS host as \\Mac\Home\....  It didn't like that network path.  That path is also mapped as Y: and changed my default data directory from the former to the latter fixed the problem.

 

 

0 Kudos
Message 2 of 2
(375 Views)