Unknown predicate function expression type of second parameter: NULL - xPath constraints

0
Hello guys,  After checking Log files, I have found the following error: Jul 11 12:01:10.125 - ERROR - ActionManager: (92/276) #011XPathTextGetRequest (depth = 0, amount = 1): //Beheer.Bevindingtype[Beheer.Bevindingtype_Verhuurder = 3096224743818417] [NULL = empty or starts-with(NaamPopulair,NULL)] Jul 11 12:01:10.125 - ERROR - ActionManager: (93/276) #011at Opname.BevindingBeforeCommit (RetrieveByXPath : 'Retrieve Bevindingtype from database') Jul 11 12:01:10.125 - ERROR - ActionManager: (94/276) #011at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[{}],"type":"EventExtendedAction"} Jul 11 12:01:10.125 - ERROR - ActionManager: (95/276) #011at Opname.BevindingKopieren (Change : 'Change 'NewBevinding' (Bevinding__Eenheid, Bevinding__Elementtype, Bevinding_Bevindingtype, Bevinding_Dekkingssoort, Bevinding_Opname, Bevinding_BevindingEerdereOpname, Bevinding_OpnameRuimte, Bevinding_OpnameElement, Uitgevoerd, Bevinding_Servicecontract)') Jul 11 12:01:10.125 - ERROR - ActionManager: (96/276) #011at Opname.BevindingenKopieren.nested.4e7fc1d9-e988-4265-8931-5fb8205cf446 [4 of 19] (SubMicroflow : 'BevindingKopieren') Jul 11 12:01:10.125 - ERROR - ActionManager: (97/276) #011at Opname.BevindingenKopieren (NestedLoopedMicroflow : '') Jul 11 12:01:10.125 - ERROR - ActionManager: (98/276) #011at Opname.OpnameDefinitiefMaken (SubMicroflow : 'BevindingenKopieren') Jul 11 12:01:10.126 - ERROR - ActionManager: (99/276) #011at Opname.OpnameBeforeCommit (SubMicroflow : 'OpnameDefinitiefMaken') Jul 11 12:01:10.126 - ERROR - ActionManager: (100/276) #011at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[{}],"type":"EventExtendedAction"} Jul 11 12:01:10.126 - ERROR - ActionManager: (101/276) #011at Opname.OpnameOpnamestatusDefinitief (Change : 'Change 'Opname' (Opname_Opnamestatus)') Jul 11 12:01:10.126 - ERROR - ActionManager: (102/276)  Jul 11 12:01:10.126 - ERROR - ActionManager: (103/276) Advanced stacktrace: Jul 11 12:01:10.126 - ERROR - ActionManager: (104/276) #011at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143) Jul 11 12:01:10.126 - ERROR - ActionManager: (105/276)  Jul 11 12:01:10.126 - ERROR - ActionManager: (106/276) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):  Jul 11 12:01:10.127 - ERROR - ActionManager: (107/276) #011XPathTextGetRequest (depth = 0, amount = 1): //Beheer.Bevindingtype[Beheer.Bevindingtype_Verhuurder = 3096224743818417] [NULL = empty or starts-with(NaamPopulair,NULL)] Jul 11 12:01:10.127 - ERROR - ActionManager: (108/276) #011at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:176) Jul 11 12:01:10.127 - ERROR - ActionManager: (109/276)  Jul 11 12:01:10.127 - ERROR - ActionManager: (110/276) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):  Jul 11 12:01:10.127 - ERROR - ActionManager: (111/276) #011XPathTextGetRequest (depth = 0, amount = 1): //Beheer.Bevindingtype[Beheer.Bevindingtype_Verhuurder = 3096224743818417] [NULL = empty or starts-with(NaamPopulair,NULL)] Jul 11 12:01:10.127 - ERROR - ActionManager: (112/276) #011at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:40) Jul 11 12:01:10.127 - ERROR - ActionManager: (113/276)  Jul 11 12:01:10.128 - ERROR - ActionManager: (114/276) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):  Jul 11 12:01:10.128 - ERROR - ActionManager: (115/276) #011XPathTextGetRequest (depth = 0, amount = 1): //Beheer.Bevindingtype[Beheer.Bevindingtype_Verhuurder = 3096224743818417] [NULL = empty or starts-with(NaamPopulair,NULL)] Jul 11 12:01:10.128 - ERROR - ActionManager: (116/276) #011at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.java:53) Jul 11 12:01:10.128 - ERROR - ActionManager: (117/276)  . . Jul 11 12:01:10.128 - ERROR - ActionManager: (118/276) Caused by: java.lang.RuntimeException: Unknown predicate function expression type of second parameter: NULL Jul 11 12:01:10.143 - ERROR - ActionManager: (272/276) #011at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) Jul 11 12:01:10.143 - ERROR - ActionManager: (273/276) #011at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) Jul 11 12:01:10.143 - ERROR - ActionManager: (274/276) #011at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) Jul 11 12:01:10.143 - ERROR - ActionManager: (275/276) #011at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) Jul 11 12:01:10.143 - ERROR - ActionManager: (276/276) #011at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Jul 11 12:01:11.038 - ERROR - Connector: An error has occurred while handling the request. [User 'jvdriel@woonbron.nl' with session id '761e58ea-d3d2-48a9-9d0b-294b51c9d918' and roles '__OpnamesVerversen, __BeschikbaarNieuweVerhuurDefinitief_AlleenLezen, _Cartotheek_Cartotheek, _WerkopdrachtAdministratie, _OpzichterBevindingsets, _VerblijfsobjectKenmerk, Opzichter, _Opname_Opnames, _Annotatie, __VooropnamerapportKosten, _TussentijdseOpname']   Here is xPath query (Bevinding isn't empty): [Beheer.Bevindingtype_Verhuurder = $Opname/Opname.Opname_Verhuurder] [$Bevinding/Naam = empty or starts-with(NaamPopulair,$Bevinding/Naam)]   I have found an explanation for this in this ticket, but I would like to know what is the impact of this error and is there any solution to avoid it? I would appreciate additional explanation and advice what should be done in order to avoid it.  Thank you in advance.   
asked
1 answers
0

$Bevinding/Naam is empty which causes an error in the string function.

You can solve this by checking if the $Bevinding/Naam is empty in your microflow and replace it with an empty string '' . Then change your xpath to [$Bevinding/Naam = '' or starts-with(NaamPopulair,$Bevinding/Naam)]

answered