Hello,
Sometimes you might want to access a profile property in M2Doc, which contains multiple elements. That mostly works fine with just accessing the profile property in M2Doc AQL like {m:myObject.user_list_of_elements.name->sep(', ')} (here: as a comma-separated list of names).
In rare cases you might get an error "Couldn't find the 'aqlFeatureAccess(java.lang.Object[],java.lang.String)' service", together with an "[Ljava.lang.Object;" output.

The Attributes view in medini (Context menu of the object in Debug mode > Diagnose > What is this) would also show a value starting with "[Ljava.lang.Object;".
In this case you have a JavaScript Array in that profile property (Derived property with a JavaScript) instead of the normal Java List, which is used by native medini features. Such an array cannot be directly used in M2Doc. Instead, do either:
- If you created the profile property yourself and can modify its script, do not just return the array ("output" in this example), but convert it to a Java List as last step: java.util.Arrays.asList(output);
- If you cannot change the profile property (e.g. not your own code and you don't want to touch it), then change your access within the .docx M2Doc field (basically converting it on the fly):
- Instead of { m:myObject.user_assets }
- use this: { m:myObject.eval('java.util.Arrays.asList(self.user_assets);') }
I hope that helps.
Happy reporting,
Nils