Microflow called in nanoflow: u is not a function error

0
Hello, I have a button which call a nanoflow. This nanoflow needs some data so it calls a microflow. In the logs, the microflow correctly reads the data, parses it (the last log message is successfully printed in console). The microflow returns the parsed JSON as a list of objects. At this moment, the error appears : """ mxui.js?638872527469828569:59  [Client] Error: An error occurred while executing an action of DataProcessingAutomation.SNP_BulkControls_Cardholders.actionButton32: u is not a function Nanoflow stack: "Call microflow: FsdjTsf1rVGxzWRvxa+sLA" in nanoflow "DataProcessingAutomation.ACT_LoadCardholdersFromSiPass"    at mxui.js?638872527469828569:61:173102    at ye (mxui.js?638872527469828569:19:6830)    at i (mxui.js?638872527469828569:19:6731)    at k (mxui.js?638872527469828569:59:5099) """   An other similar microflow works well (get data, parse data and return data as list of objects). The only difference is that the object that causes an error has references (other objects related to itself). Could that cause the error ? All are objects not commited to database.   Thanks Kevin
asked
4 answers
1

Hi Kevin,

this can happen due to caches but,

As you mentioned you have associated objects, so there might be case some entities does not have proper access rules defined. Microflows does not automatically enforce entity access but nanoflow does.

 

All the best!

answered
0

Thanks.

 

Prasanna Karvande:

Cleaning browser cache does not work, I also tested on InPrivate window: same result.

 

Ajay Kumar Chinni:

I don't have more error details, only this on browser (nothing on server side):

"""

[Client] Error: An error occurred while executing an action of DataProcessingAutomation.SNP_BulkControls_Cardholders.actionButton32: u is not a function

Nanoflow stack: "Call microflow: FsdjTsf1rVGxzWRvxa+sLA" in nanoflow "DataProcessingAutomation.ACT_LoadCardholdersFromSiPass"

  at mxui.js?638872468312209718:61:173102 

  at ye (mxui.js?638872468312209718:19:6830) 

  at i (mxui.js?638872468312209718:19:6731) 

  at k (mxui.js?638872468312209718:59:5099)

"""

 

If I convert the nanoflow to a microflow, I works smoothly.

Regards,

Kevin

answered
0

Hello Kevin,

Can you please check if any function you have used in your NF which doesn't supported by NF?

or if the returned object by your MF doesn't supported to be used in NF input?

Anything might be cause of this issue occurred.

Thanks.

 

answered
0

I have an other MF which is exactly the same as the one not working.

But this one is working in NF.

The only difference is that the returned object has references: I think this is not supported by the NF.

 

I succeeded to make it work by using a MF instead of a NF.

But now, my loading percentage is no longer updated on UI while the MF is running because it is a non persistable entity (not commited to DB).

It is only updated when the MF is finished.

 

How can I make my loading percentage updated again ?

Thanks

answered