CE1571 occurred when add the SNIP_Example snippet from TcBOMModule

0
Hi there,I was wondering if anyone has experienced this issue and found a solution.Steps performed:Added a page.Inserted the "SNIP_Example" snippet into the page and configured the parameter. At this point, there were no errors.Added the page to the Navigation, and then the following error appeared:CE1571:"No argument has been selected for parameter 'TcBOMHelper', and no default is available. Please select an argument manually."Has anyone encountered this before or knows how to resolve it?
asked
2 answers
0

Michele,

This page requires a TcBOMHelper object to be passed in order to open. When you call this page from navigation, Mendix needs to know what object to pass to the page. Since there is not likely to be an object available when you open this page from navigation, here is what I would do:

  • I am assuming TcBOMHelper is a non-persistable entity. If so, create a nanoflow that creates a TcBOMHelper object and returns that object in its end event. If TcBOMHelper is persistable, create a microflow that creates a TcBOMHelper object and returns that object in its end event.
  • Remove the TcBOMHelper paramater from your page
  • Add a Dataview to the page
  • Use either the nanoflow or microflow you created as the Data Source for the Dataview
  • Move the snippet inside the Dataview

That should eliminate your error and enable you to open this page from Navigation.


Hope that helps,

Mike


P.S. if you have any additional information or questions about this issue, post a comment here.

answered
0

Hi Mike,


Thanks. Your solution and the workaround I tried yesterday (calling the page from a microflow) both removed the CE1571 error.


But they also both ended up in the same run time 404 error:

404


I'm not sure whether the file is missing from the Marketplace download, but I suppose that's a separate issue to look into.


Thanks again for your help. I really appreciate it.

answered