Steps to replicate the issue (include links if applicable):
- Go to an implementation page such as https://wikifunctions.beta.wmflabs.org/wiki/Z10019
- Enter valid values for the arguments in the Evaluate functions box (under Details) and click the Call Function button
What happens?:
Orchestration result
Evaluation result
Reference void
appears in the box below the Call Function button. Click the Show Error button
type: Error
error type: Argument type mismatch
type: Argument type mismatch
String Invalid argument type: expected Z4, got Z14
appears in the box below the Show Error button.
What should have happened instead?:
The function should have evaluated correctly (using this particular implementation)
Software version (skip for WMF-hosted wikis like Wikipedia):
Wikifunctions Beta https://wikifunctions.beta.wmflabs.org
Other information (browser name/version, screenshots, etc.):
This bug is not specific to any particular implementation or function. For example:
- Go to a function page such as https://wikifunctions.beta.wmflabs.org/wiki/Z10018
- Click the Details tab and follow the link to Create a new implementation https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject?zid=Z14&Z14K1=Z10018
- In the Current ZObject box on the Create a new ZObject page, change from Composition to Code
- The Current ZObject changes to include
"Z2K2": { "Z1K1": "Z14", "Z14K1": "Z10018", "Z14K3": { "Z1K1": "Z16", "Z16K1": { "Z1K1": "Z61", "Z61K1": "" }, "Z16K2": "" } },
- The Z2K2 for a Z14 at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/services/function-schemata/+/refs/heads/master/data/definitions/Z14.json begins
"Z2K2": {
"Z1K1": "Z4", "Z4K1": "Z14", "Z4K2": [ "Z3",
That is, a Z14 is currently defined to be a Z4. This also seems to be the case for a Z16. In any event…
- Go ahead and create a new implementation, like https://wikifunctions.beta.wmflabs.org/wiki/Z10078
- Executing the new implementation is likely to produce the same error.
- (Also, you don’t actually have to enter valid values for the function’s arguments; any values or none can produce the same error.)
- I got the same error after creating a new Composition https://wikifunctions.beta.wmflabs.org/wiki/Z10079?view=zobject-viewer.
- There seem to be three results possible when calling the function repeatedly from the function page with the same valid arguments. For 50 calls to https://wikifunctions.beta.wmflabs.org/wiki/Z10072
- Most often (22/50) a box saying “Performing orchestration, please wait” appears and then disappears with no result appearing.
- Sometimes (15/50) the correct result is returned.
- Otherwise, (13/50) the error is
“type: Error
error type: ZID not found
type: ZID not found
String Builtin validator "Z107" not found for "Z7". The Implementation used (if any) does not seem to be referenced in the Orchestration result object.