Skip to main content
12-Amethyst
May 9, 2025
Question

Load a pvz from Thingworx dynamically with public access

  • May 9, 2025
  • 1 reply
  • 1641 views

I have an issue that is happening in 1 of 2 servers.

I would like to dynamically load a model from a file repo thing in Thingworx on public mode.

In 1 server, it works correctly but on the other it does not and prompts me for a login instead of loading the file.

 

I have checked and the permissions seem to be correct, as do the app keys. I was successfully able to get a property to display correctly and to trigger a service on the file repo thing to show a string  without it prompting me for a login but when I try to load the pvz dynamically it prompts me for a login.

 

The FileRepo Thing permissions are correct, as are the datatable and the standard permissions needed.

 

Is there an additional back end permission required to download a pvz? 

1 reply

12-Amethyst
May 9, 2025

To add: The same thing happens when I use GetFileListingWithLinks. 

 

 

21-Topaz I
May 12, 2025

Hello @JR_10569306 ,

I checked that in the current version 9.25 Studio and ES 9.23 (not latest but also not so old)to see if there an issue

- so one point I remember that possibly have the TWX data stability is the setting of the option on ES nohttp2”: true

in previous releases it was documented in PTC Vuforia Studio Help for the Camera widget. I could not find it in the current Help there and possibly is not required or set by default. On my ES 9.23 is that option not set but it still work

please see 

https://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/Fixed_Issues_in_Vuforia_Studio_9_23_0_0.html

saying:

nohttp2 Flag Needs to Be Added Manually
An issue was resolved where a nohttp2 flag had to be manually added to the configuration.json file to enable communication between the Experience Service and ThingWorx. Therefore, beginning in 9.23.0, you will no longer need to manually add the flag to your configuration.json file.

and

https://www.ptc.com/en/support/article/CS439719

so means that sinse Experience Service Version9.23 we do not need to set this option

But what I think is more relevant point is to add the used  TWX services in the Vuforia Studio External data section. I tested it with different services and it will not work (also when all TWX permission are set correctly ) when the called services are not added in the Studio External data section:

2025-05-12_12-15-21.jpg

anyway when you follow the suggested techniques described in Vuforia Studio Help : Create an Experience with Dynamic Model Loading it should work

21-Topaz I
May 12, 2025

Another point I remember if you connect to 2 different TWX objects  and you are using services with the same name -e.g. myTestSrv  - when you have this case and you added  services 2 times from different objects  - it internally Studio will rename the second service as myTestSrv_2 or _3 when 3 times ans so on .. but Vuforia Studio will display myTestSrv - so you need to call the correct service in that case.myTestSrv_2 in the JS code or in complete service all.