The first line does nothing because you don't do anything with the function result of the call. The second line assigning $myTempVolumeCol to a copy returns a regular collection (see documentation). The error is because you can't assign a regular collection to a shared collection (Storage.serverVolumes:=$myTempVolumeCol).
To duplicate an object or collection as a shared object/collection you have to iterate over all of the values and then recursively convert to shared any object/collection. John DeSoi, Ph.D. > On Mar 20, 2019, at 12:16 PM, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > New shared collection($myTempVolumeCol) > $myTempVolumeCol:=$volumeData.copy() > Use (Storage) > Storage.serverVolumes:=New shared collection > Use (Storage.serverVolumes) > Storage.serverVolumes:=$myTempVolumeCol > End use > End use > > This code gives me the following error. “Not supported value type in a shared > object or a shared collection” This seems to be preventing me from using the > Storage. I can just assign the variable as an interprocess variable but I was > trying to get away from using interprocess variables. Any suggestions? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************