Failed to import project/page that manually created from SDK

0
I used following code to create a page by Mendix Model SDK, But when I tried to read from Studio, Studio throws errors  My code is  JavaScriptSerializer.serializeToJs(page), following script was generated,    var layoutCallArgument1 = mendixmodelsdk_1.pages.LayoutCallArgument.create(model);     layoutCallArgument1.widgets.push(layoutGrid1);     var layoutCall1 = mendixmodelsdk_1.pages.LayoutCall.create(model);     layoutCall1.layout = model.findLayoutByQualifiedName("Atlas_UI_Resources.Atlas_Default");     layoutCall1.arguments.push(layoutCallArgument1);     var translation9 = mendixmodelsdk_1.texts.Translation.create(model); Exception Got from Studio Pro Mendix.Modeler.Utility.Progress.ProgressException ---> System.InvalidOperationException: An error occurred when trying to set the 'Parameter' property of a Layout call argument in a Page with ID dd8a9b69-29e3-4aa8-b77f-46f8dc6feff1. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: value    at Mendix.Modeler.WebUI.Forms.Widgets.FormCalls.LayoutCallArgument.set_ParameterId(LayoutParameterIdentifier value) in C:\jenkins-ci\workspace\AppStudio4.0-Build@3\modeler\Mendix.Modeler.WebUI\Forms\Widgets\FormCalls\LayoutCallArgument.Generated.cs:line 44    --- End of inner exception stack trace ---    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)    at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
asked
1 answers
0

About layoutParameter,If we using findLayoutParameterByQualifiedName function , We can get layoutParameter from qualifiedNameCache. But all layoutParameter isn't saved in qualifiedNameCache,so can’t get layoutParameter.

Is it ModelSDK bug?

answered