Quantcast
Channel: Mendix Forum Questions
Viewing all 83469 articles
Browse latest View live

Data from Flat File Export not sorting correctly in export file

$
0
0

I am using the Flat File export to export multiple records to a text file. Within the text file I am seeing that the data is not being put into the file in the proper sort order.  Here is some information to help:

 

1. I have created a relationship to the entity we want to use

2. We have a "RecordId" attribute that allows us to properly sort the data

3. The list we are returning is sorted and can be seen correctly in the variable debugger

 

What I am seeing is the reference set ID values are sorted differently everytime I run the export as seen in the picture below:

I need to ensure that the order of the data is in the proper sort order everytime because the consuming system needs it in that order. Any help is appreciated.

Thanks!


IDP.ALEXA.51 infection

$
0
0

During installation of the Desktop Modeller my Avast anti virus software detects an infection called IDP.ALEXA.51. What to do?

It is about software: Mendix-7.1.0-Setup

Storage location of pdf

$
0
0

Hi All,

What is the storage location of pdfs in Mendix?

Thanks in advance, Prachi

Download and store an image (in System.FileDocument) from service response

$
0
0

Hi All,

I am gettign Image URL as a service response and would like to store it in System.FileDocument. Can you please suggest me an option to do so?

 

Many Thanks,

Nagendran Sellaiah

Using MergeMultiplePdfsByCategory and getting error message saying appending PDF is encrypted but it is not encrypted

$
0
0

I'm using MergeMultiplePdfsByCategory and I'm getting an error message saying "Error: destination PDF is encrypted,  can't append encrypted PDF documents.".  None of the PDFs in the merge have been encrypted. I'm able to download and display the PDFs without using any passwords or decryption. Has anyone seen an issue like this? Any suggestions for how to approach a solution.

Thanks in advance for your assistance.

 

String to file download on premise

$
0
0

Hi,

My goal is to create a CSV file with the StringToFile java action and then download it with the common MX activity.

When I do this locally there is no problem, CSV (with custom name: 'Detailed_invoice_' + formatDateTime([%CurrentDateTime%],'yyyyMMddHHmmssSSS')
+'.csv') is downloaded and I can open it.

When I deploy this on premise at the customer I get the following message:

The file '' could not be found.-------- com.mendix.webui.WebUIException: File id or guid parameter should not be null
    at com.mendix.webui.requesthandling.FileRequestHandler.retrieveFileDocument(FileRequestHandler.scala:210).

So I do create it with a name and dont know where this message is coming from.

Does anyone have any ideas where this is coming from?

MxRuntimeSystem/user/dispatchSupervisor#-597435171]] had already been terminated.

$
0
0

We have an environment that once and a while just stops working. When checking running now one can see multiple system task with no details. In the logs we have the error below. Obviously a null pointer error. We do have a scheduled event running before this error occurs but that one has already been finished normally before these errors are thrown.

Anybody a guess why the scheduled event runner can throw such a null pointer execption?

Regards,

Ronald

 

Apr  4 20:27:15.325 - ERROR - ActionManager: Exception in execution of monitored action 'null' (execution id: 06b760c3-b4b6-4ffb-8bc2-51f912c01671, execution type: SCHEDULED_EVENT)
Apr  4 20:27:15.326 - ERROR - ActionManager: (1/17) akka.pattern.AskTimeoutException: Recipient[Actor[akka://MxRuntimeSystem/user/dispatchSupervisor#-597435171]] had already been terminated.
Apr  4 20:27:15.326 - ERROR - ActionManager: (2/17) #011at akka.pattern.AskableActorRef$.ask$extension(AskSupport.scala:132)
Apr  4 20:27:15.326 - ERROR - ActionManager: (3/17) #011at akka.pattern.AskableActorRef$.$qmark$extension(AskSupport.scala:144)
Apr  4 20:27:15.326 - ERROR - ActionManager: (4/17) #011at com.mendix.core.session.ActionDispatching.sendAction(ActionDispatching.scala:32)
Apr  4 20:27:15.326 - ERROR - ActionManager: (5/17) #011at com.mendix.core.session.ActionDispatching.handleAction(ActionDispatching.scala:27)
Apr  4 20:27:15.326 - ERROR - ActionManager: (6/17) #011at com.mendix.systemwideinterfaces.core.IMonitoredAction$class.monitor(IMonitoredAction.scala:28)
Apr  4 20:27:15.326 - ERROR - ActionManager: (7/17) #011at com.mendix.core.actionmanagement.ScheduledAction$ScheduledRun.monitor(ScheduledAction.scala:118)
Apr  4 20:27:15.326 - ERROR - ActionManager: (8/17) #011at com.mendix.core.actionmanagement.ScheduledAction$ScheduledRun.run(ScheduledAction.scala:128)
Apr  4 20:27:15.326 - ERROR - ActionManager: (9/17) #011at com.mendix.core.actionmanagement.ScheduledAction.execute(ScheduledAction.scala:116)
Apr  4 20:27:15.327 - ERROR - ActionManager: (10/17) #011at com.mendix.core.actionmanagement.ScheduledAction.run(ScheduledAction.scala:98)
Apr  4 20:27:15.327 - ERROR - ActionManager: (11/17) #011at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Apr  4 20:27:15.327 - ERROR - ActionManager: (12/17) #011at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Apr  4 20:27:15.327 - ERROR - ActionManager: (13/17) #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
Apr  4 20:27:15.327 - ERROR - ActionManager: (14/17) #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
Apr  4 20:27:15.327 - ERROR - ActionManager: (15/17) #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Apr  4 20:27:15.327 - ERROR - ActionManager: (16/17) #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Apr  4 20:27:15.327 - ERROR - ActionManager: (17/17) #011at java.lang.Thread.run(Thread.java:745)

 

 

Is it possible to add custom HTTP headers?

$
0
0

Hi community,

A security firm had conducted a penetration test on our application. They advised us to set the Content-Security-Policy (CSP) HTTP header to control (white-list) the externally loaded resources like script, fonts, style, etc. Is it possible to add custom HTTP headers in serving Mendix container?

Kind regards, Johan


Can ATS test a Google Captcha?

$
0
0

Hi all, I just received this question from a customer and thought I would post it, because more customers might have the same question: " In our app we use a Google captcha when creating accounts. We want to use ATS to create test account, but in order to that we need to pass the Google captcha. Is it possible to test a Google Captcha using ATS?" 

 

 

Sending files to Amazon S3 via AmazonS3 module from AppStore

$
0
0

I downloaded the Amazon S3 module that is available in the appstore (https://appstore.home.mendix.com/link/app/2074/Mendix/Amazon-S3-Connector) and tried to make this work in Mendix 6.9.1 but when trying to connect to Amazon S3 (for example when retrieving bucket information) I got the error that is shown in the stacktrace below. I already contacted the developer of the module but since it is under community support I thought I would try to ask if anyone has already succesfully made this module work in a Mendix 6 version. Any help would be greatly appreciated.

 

com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: DB9FF259B01F1058), S3 Extended Request ID: qRQjCC5bA6pALOH6nOextXw4RIr38NxPnu7YpABTmRea4RjJADf0zwkTgqV6rJo7I5L+6UKuJos=
    at AmazonS3Connector.DS_GetBuckets (JavaAction : 'JAV_GetBuckets')

Advanced stacktrace:
    at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: DB9FF259B01F1058), S3 Extended Request ID: qRQjCC5bA6pALOH6nOextXw4RIr38NxPnu7YpABTmRea4RjJADf0zwkTgqV6rJo7I5L+6UKuJos=
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:398)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: DB9FF259B01F1058), S3 Extended Request ID: qRQjCC5bA6pALOH6nOextXw4RIr38NxPnu7YpABTmRea4RjJADf0zwkTgqV6rJo7I5L+6UKuJos=
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: DB9FF259B01F1058), S3 Extended Request ID: qRQjCC5bA6pALOH6nOextXw4RIr38NxPnu7YpABTmRea4RjJADf0zwkTgqV6rJo7I5L+6UKuJos=
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40)

Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: DB9FF259B01F1058)
    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1160)
    at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:748)
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:467)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:302)
    at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3674)
    at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3623)
    at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:690)
    at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:698)
    at amazons3connector.actions.JAV_GetBuckets.executeAction(JAV_GetBuckets.java:41)
    at amazons3connector.actions.JAV_GetBuckets.executeAction(JAV_GetBuckets.java:22)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:172)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:390)
    at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:144)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:311)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:301)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Database Replication module: import associations from external database from an other Mendix project ?

$
0
0

Hi

We want to reuse data (entity’s, attributes and associations) from one Mendix project in an other Mendix project where we use the same domain model. We made a back up of the original project and imported the data in local postgres database. With the Database Replication module we can import the entity’s and attributes correctly. However, we are not able to import/restore the associations via the Database Replication module. We do see the associations in the local postgress database as relation tables. The documentation/steps we need to follow to get these associations in Mendix via the Database replication module are not clear to us. Can somebody give a hint on how to proceed ?

Deeplink configuration does not show new Entity

$
0
0

Hi,

I'm having some trouble with the deeplink configuration. When creating a new deeplink I want to select a newly created entity but it doesn't appear in the list.

I did a refresh in the Domain Object Browser (the MxModelReflection module) and the entity appears there. But it doesn’t make a difference for deeplink configuration.

Also security seems fine because the entity has the same access right as other entities that do show up in the deeplink configuration. Is there a way to refresh the entity list?

Thanks,

Rogier

Should I give an object back to the major mf or not?

$
0
0

hi guys,

 

in order to understand Mx more I am wondering what  the "official" way is of giving an object back to the MF from a subMF.

 

For example:

I store the aggregated info in a object, called Info. And I have 5 different subMF's wherein I count, which needs to store the aggregated integers in that object.

So I can give each time this Info object as a parameter to the submf AND submf could give it back as an updated Info" object at the end. The next sub MF could use for its parameter the Info" object and so on...

OR

The same without giving the object back at the end's of the subMF to the major MF.

 

I think the both are doing what it should.

 

But which is better and why?

 

 

The supplied maximum metamodel version '6.10.0' is lower than the metamodel version '6.10.4' of the working copy

$
0
0

I get an error in my Mendix SDK after upgrading a project to 6.10.5 and +.

I see that the SDK currently doesn't support any project with a version higher than 6.10.0

Do I need to update my SDK or wait for it to catch up with the latest Mendix versions?

[EDIT] The error is misleading btw. I've upgraded to version 6.10.5, not 6.10.4

Trying to get a Simple report on Funds Transfer.

$
0
0

Hi

I am new to reporting and please bear with me. I have an Entitiy named "Transfers" Which I use to Transfer funds between two user accounts. It has two associations to the administration.account, one for selecting the funds trasfer to and the other to select the funds transfer from. 

I have attached the Image of the Entity as you can see.

 

Now I have managed to get the transfer function working. But now I need to make a simple report on transfers. Selecting date etc. For that I need to create a dataset as I know. But I  am in a confusion how to get the OQL to get the Two names and the rest of the data such as amount and date. The amount and date is simple to get as I know that. 

This is what I have now:

Select Transfer_Amount as Amount, Date as Date, Notes as Notes
From MainModule.Tranfers

 

But can any one please help me on getting the two names, The select from name and select to name.

 

Please help

 

Regards

Dilan


Single Sine On - CAS

$
0
0

I work on an private Single Sign On pacakgewhich is based on CAS (https://www.apereo.org/projects/cas). The first part works so I have in mendix after succesful login trhe account details from CAS.

Now I would like to set/cceate Mendix account (and the CurrentUser object) to reflect this data. To create an account works, but in the current session I can't change a thing. As other SSO soutions work, it msut be possible to do but how?

 

Must this be done in JAVA or....

ChartJS widget not working after upgrade to 7.1

$
0
0

Hi all,

I've recently upgraded a client app to 7.1 and noticed the chartjs widget is not displaying and throwing the following error.

"Could not create widget ChartJS.widgets.PieChart.widget.PieChart"

On inspection in chrome I've found the following cause of the error

"Could not create widget ChartJS.widgets.PieChart.widget.PieChart TypeError: Cannot read property 'global' of undefined"

I've tried deleting the widget from my project directory and re-importing it with no success. Does the widget require upgrading?

 

404 Error while using Forgot Password Link

$
0
0

Hi,

 

I am using Email Template Module to send Emails and sending E-mails if user forgets the password with Password Reset URL (using Forgot Password Appstore Module). But, when a user clicks on the link and then it's giving an error

"404 - File or directory not found."

Can someone please help that what could be the reason?

 

Date Search over association not reliable

$
0
0

Hello,

I've found that in a Data Grid where one of the search parameters is a date over an association, the search results are unreliable.  Sometimes the results will be for the day after and sometimes they match the date searched.  Has anyone else found this?  

How to make a new "built-in" user, that will automatically be present when deploying a Project

$
0
0

When I deploy a Project, I want a special user "Application-Manager" directly present.

I don't want to create this user every time again when I deploy a new version of my Project, because then I have to implement his Security-roles again.

I want the user to exist just as a part of the Application. 

How can I achieve this?

Viewing all 83469 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>