07-07-2023 08:14 AM
The G Web App I've been working on will build a package causes an error "the .nipkg file is not valid" when the .nipkg file is imported into the NI Web Server via the webvihost app. The lvdist is configured for an Output Type of Package, the Build Target is set to Default Web Server, and the package build does succeed without warnings or errors. In the WebApp.gcomp file, the main gviweb is set as the top level vi, with other sub-vi's (gviweb files) included, along with some images (png files) and types (gtype files). The Web App uses the File/FileTasks/Uppy.gcomp components that were provided by NI elsewhere. The size of the generated nipkg file is:
2.37 MB (2,490,368 bytes)
I've used a prototype with these File/FileTasks/Uppyg comp's and had it import successfully with webvihost, and run. Is there any more visibility into the cause of this import error? I attached a screenshot of the error. The G Web version I'm using is:
2022 Q3
Build number 9.5.0.49854
Solved! Go to Solution.
07-07-2023 09:32 AM
What's the name of the main webvi? It only accepts a handful of names. I swear there was a KB about it but it's eluding me at the moment.
07-07-2023 09:50 AM
Thank you, that was it. I changed the name to the name I had for the prototype that worked (index.gviweb) and it loaded and worked. It would be nice if the error was a little clearer. Thank you very much for responding!
07-07-2023 10:07 AM
It sure would be 😉