I am getting the below error when trying to deploy to cloud. This app runs fine locally. ERROR: System.Xml.Schema.XmlSchemaException: Base complex type has different content type TextOnly. Related schema item SourceUri: , Line 174, Position 4. at System.Xml.Schema.ValidationHandler.RaiseValidationEvent (System.Xml.Schema.ValidationEventHandler handle, System.Exception innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender, System.String sourceUri, XmlSeverityType severity) [0x00000] in :0 at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message, System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender) [0x00000] in :0 at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateComplexBaseDerivationValidExtension (System.Xml.Schema.XmlSchemaComplexType baseComplexType, System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateContentModel (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateBaseXmlSchemaType (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaElement.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaSequence.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaSequence.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.CollectContentTypeFromComplexExtension (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.CollectContentTypeFromContentModel (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.FillContentTypeParticle (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateBaseXmlSchemaType (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateBaseXmlSchemaType (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateBaseXmlSchemaType (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateBaseXmlSchemaType (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaElement.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaSequence.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.ValidateParticle (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchemaComplexType.Validate (System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema) [0x00000] in :0 at System.Xml.Schema.XmlSchema.Validate (System.Xml.Schema.ValidationEventHandler handler) [0x00000] in :0 at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000] in :0 at Mendix.Modeler.Integration.SchemaImporter.ImportSchemas (IEnumerable`1 schemaContents) [0x00000] in :0 at Mendix.Modeler.Integration.WsdlDescription.get_Schema () [0x00000] in :0 at Mendix.Modeler.Integration.OperationInfo.get_ResponseBodySchemaElement () [0x00000] in :0 at Mendix.Modeler.Integration.OperationInfo.get_ResponseBodyElement () [0x00000] in :0 at Mendix.Modeler.Integration.OperationInfo.get_OptimizedResponseElement () [0x00000] in :0 at Mendix.Modeler.Integration.OperationInfo.get_IsOneWay () [0x00000] in :0 at Mendix.Modeler.Integration.OperationInfo.GetResultKind (IOperationInfo operationInfo) [0x00000] in :0 at Mendix.Modeler.Integration.WebServiceCallResultHandlingConfig.GetPrimitiveReturnType () [0x00000] in :0 at Mendix.Modeler.Integration.WebServiceCallResultHandlingConfig.GetReturnType (Boolean storeInVariable, Mendix.Modeler.Integration.ImportMappingCall importMappingCall) [0x00000] in :0 at Mendix.Modeler.Integration.ResultHandling.get_VariableDataType () [0x00000] in :0 at Mendix.Modeler.Integration.WebServiceCallAction.get_VariableDataType () [0x00000] in :0 at Mendix.Modeler.Microflows.VariableSourceUtil.GetVariableDefinition (System.Object obj) [0x00000] in :0 at Mendix.Modeler.Microflows.ActionActivity.get_Variable () [0x00000] in :0 at Mendix.Modeler.Microflows.VariableSourceUtil.GetVariableDefinition (System.Object obj) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectInternal obj, System.Collections.Generic.Dictionary`2 infos, IEnumerable`1 incomingScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectInternal obj, System.Collections.Generic.Dictionary`2 infos, IEnumerable`1 incomingScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectInternal obj, System.Collections.Generic.Dictionary`2 infos, IEnumerable`1 incomingScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectInternal obj, System.Collections.Generic.Dictionary`2 infos, IEnumerable`1 incomingScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectInternal obj, System.Collections.Generic.Dictionary`2 infos, IEnumerable`1 incomingScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables (IMicroflowObjectCollection collection, System.Collections.Generic.Dictionary`2 infos, System.Collections.Generic.List`1 currentScope) [0x00000] in :0 at Mendix.Modeler.Microflows.ScopeAlgorithm.CalculateScopeVariables () [0x00000] in :0 at Mendix.Modeler.Microflows.MicroflowBase.Postprocess () [0x00000] in :0 at Mendix.Modeler.Projects.Postprocessor+<>c.b__0_0 (IPostprocess obj) [0x00000] in :0 at Mendix.Modeler.Storage.StorageUtil+<>c__DisplayClass7_0`1[Mendix.Modeler.Projects.IPostprocess].b__0 (IStorageObject a) [0x00000] in :0 at Mendix.Modeler.Storage.Operations.TypeWalk.ForEachObjectDo (IStorageObject root, System.Func`2 work, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Storage.Operations.TypeWalk.ForEachObjectDo (IStorageObject root, System.Func`2 work, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Storage.Operations.TypeWalk.ForEachObjectDo (IStorageObject root, System.Func`2 work, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Storage.Operations.TypeWalk.ForEachObjectDo (IStorageObject root, System.Func`2 work, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Storage.Operations.TypeWalk.ForEachObjectDo (IStorageObject root, System.Func`2 work, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Storage.StorageUtil.ForEachStorageObjectDo[IPostprocess] (IStorageObject obj, System.Func`2 action, Boolean skipExcludedObjects) [0x00000] in :0 at Mendix.Modeler.Projects.Postprocessor.Postprocess (IStorageObject root) [0x00000] in :0 at Mendix.Modeler.Projects.ProjectUtil.PostprocessProject (IProject project) [0x00000] in :0 at Mendix.Modeler.ModelerCore.SetProject (IProject project, Boolean isNewProject) [0x00000] in :0 at Mendix.MxBuild.ProjectLoader.Load (System.String mprFilePath, Boolean useLooseVersionCheck, Boolean forceFullDeployment) [0x00000] in :0 at Mendix.MxBuild.BuildRunner.Execute (IBuildOptions options) [0x00000] in :0 at Mendix.MxBuild.BuildRunnerMode.Run (IList`1 args) [0x00000] in :0 at Mendix.MxBuild.ApplicationRunner.Run (IEnumerable`1 args) [0x00000] in :0 at Mendix.MxBuild.Program+<>c__DisplayClass1_0.b__0 (IApplicationRunner a) [0x00000] in :0 at Mendix.CommandLine.Shared.ProgramHelper.InitializeAndRun[IApplicationRunner] (System.Func`2 program) [0x00000] in :0
↧
Error building package to deploy to cloud node
↧
Differences between Data Grid and Data View
I'm new to Mendix, I'm starting to study the platform and I've been reading the concepts of Data Grid and Data View. Is it correct to state that the difference between the two components is that the Data Grid is for a list of objects and Data View is for just one object? Is that the only difference? When to use one or the other? Thanks for the help.
↧
↧
Issue with sorting order of images
So i have a data grid that works just fine, and next to it i have a data view which is listening to the data grid, and this data view has an image viewer. I would like to get it to where, when i click the name of one of the columns in the data grid to sort the grid according to that attribute, the images from the data view associated to the objects in the data grid to also sort themselves. and i just havent been able to figure out a way to get this to work..
↧
ATS Actions Parameters Improvements
The improvement that would be good for the tool is the option to copy the parameters. This improvement need to be created on Function / Settings / Input Parameters. Here the Copy action could be added so we could have "duplicate" variables on the section.
↧
Restore backup to other environment cloud v4
Is there another way to restore a backup from Production to Test in the new cloud v4 than to download a fullbackup and then upload it again?
↧
↧
How to add object id to mapping
I have this json format: { "id": "id", "uuid": "uuid", "label": "label", I want to map "id" to the Mendix object id in my map, but it's not in the list of entity attributes. How can I get the id in my json string anyway?
↧
Cancel button: different behaviour based on selected tab?
I have a pop-up with a dataview with parameter Photo. In the dataview is tabcontainer with two tabs: tab 1 just has attributes of the Photo-object, tab 2 has information on its parent, an Activity-object. The pop-up has two buttons, a default Save button and a default Cancel button (note, these are outside of the tabcontainer). If I click 'Cancel' when viewing tab 1, only the Photo is rolled back If I click 'Cancel' when viewing tab 2, both the Photo and the Activity are rolled back Is this expected behaviour (not for me obviously or I wouldnt have asked:))? I would not expect the Cancel button to behave differently depending on which tab you currently have opened.
↧
Felix error message when starting first app.
Trying to start my first app and getting the following error message. Does anyone have any ideas. ERROR: felix configuration template is not a readable file: /srv/mendix/AppName/runtimes/7.0.2/runtime/felixconfig.properties.template Best i can tell the file does not exist. Where does this file come from or how does it get created.
↧
Email Notification
I am working on Email Notification using SMTP. I am not able to see the SMTPEmailModule.Administration. I am working with version 7.11. After selecting ModuleLayout(SMTPEmail) as navigation layout. should I select Blank page option?
↧
↧
Including PDF Document in Domain Model
Hello, I am building an application and want to somehow include a pdf file in the domain model. This is for a student review application. The PDF will contain personal remarks and assessments to back up the assessments they make elsewhere in the program and it will be uploaded. How do I appropriately go about doing this? Is there a workaround or different approach needed? Any suggestions would help and thank you for taking your time to read this.
↧
Help regarding notification in Mendix
We are building an application which is operated by an Admin and some users. Admin and users have different dashboards using the same login. We need help to send notification from Admin dashboard to a user dashboard. Please help us giving directions to perform this activity.
↧
Unable to run locally on Mendix
It has a problem while running locally on Mendix. Here is the details, and I tried to change runtime port from 8080 to 8000 in project settings, but it still cannot work. So what's the problem of this?
↧
Standard Excel export from grid -> possible to change filename of output document?
Is there a way to change the name of the output file from the standard Export to Excel button on data grids? Obviously there is the option to use the Excel Exporter module, but I would like to avoid using an extra module.
↧
↧
Webservice Overrise Location
I am consuming a webservice and based on selection I need to change the location. EX: I have an application deployed in 3 servers and I need to update the Logging Level for given Log Category. http://prdwas01:9081/ http://prdwas02:9082/ http://prdwas03:9081/ User has option to select server name in Medix application. if user is selects prdwas01 server then at run time I need to generate the URL with port number and invoke the webservice. Can anyone provide an example on how to implement this feature?
↧
Where to put transition classes using mobile features?
Hi, given the mobile features widget, when you place the transition class (i.e. slide-right) to a button, then your mobile app will show the transition effect between pages. Where do you put the transition class when you do not have a button available, i.e. click on list-view item? Regards, Wilfried Edit: I found it already. You need to add the transition class to container within list view row.
↧
Database Connector Query with Quote and Double Quote
Hi, I make connection to a SQL Server database with the database connector module. However I would like to trigger a stored procedure by clicking a button. This stored procedure allready exists because the old application that is being rebuilt in Mendix is being triggered by a similar button. This stored procedure needs 3 variables, a date and 2 strings. The problem is the old function that was used to execute the stored procedure uses both single and double quotes to provide these variables, hence escaping single quotes because problematic. Does anybody know how best to escape the quotes and build the query so I can provide the correct statement to execute the stored procedure. How far I got: The old function call was:
With CurrentDb.QueryDefs("sp_StoredProcedure")
.SQL = "EXEC sp_StoredProcedure
@dateStart='"& Format(txtFromDate.Value, "yyyy-mm-dd") &"',
@customerName='"& txtCustName.Value &"',
@siteName='"& cboSite.Value &"'"
.Execute How far I got to transform this was, I simply removed the single quotes and used the mendix formatDateTime function, but that also gives syntax errors. (near &):
'"EXEC sp_StoredProcedure
@dateStart="&'+formatDateTime($Planner/Date,'yyyy-MM-dd')+'&",
@customerName="&'+$Planner/Customer+'&",
@siteName="&'+$Planner/Site+'&""' I keep having a feeling it has something to do with escaping the characters but I am not sure how and what. I cannot find the correct syntax.
↧
How to customize the login behaviour?
Hello, I'm trying to create/login users based on if they exsist in a different database outside of mendix. To achieve this i need to be able to send a few queries to the external database and let the mendix application know If it should create a new internal database user or not. I've found this in the reference guide: https://docs.mendix.com/refguide/login-behavior#customizing-login-behavior But it doesn't really explain how to make the java action compatible or where to register the java action in mendix. I hope someone can point me towards right direction to achieve something like this :).
↧
↧
Mendix console log level persistance
Hi, While in Mendix console I can set the log level for different nodes (info, trace, etc.) for display and file logs, but after the console restart the log levels are reset to the info level. Is there a way to keep my settings persistent? I haven't found any at the moment.
↧
Login account role check based on enum
What is the best way to check an account when a user tries to login and redirect them a page that's based on their account role? Such as account with role 'IT' must only see a page of Management and 'secretary' must only see a page for financial stuff. My entity are the following: Account [Entity 1] - Username - FullName -Email - AccountRoles(Enum) Password[Entity 2] - PasswordOld -PasswordNew -PasswordConfirm Does anybody know how to fix this? Because I can't figure it out and search the whole web about mendix with no result.
↧
Issue when I click on Run/Run Locally button to deploy the Build
Hello Team, Whenever i click on Run/Run Locally I am getting the below error message, "The server failed to start" More Details : Exception in thread "main" java.lang.VerifyError: Uninitialized object exists on backward branch 209 Exception Details: Location: scala/collection/immutable/HashMap$HashTrieMap.split()Lscala/collection/immutable/Seq; @249: goto Reason: Error exists in the bytecode Please help me to resolve this issue
↧