LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Meta Check node - Expected Fields contain comma

    Employee
    Posted 07-03-2015 07:59

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: dtigue

    Hi,

    I am using the Meta Check node to identify if the source data is in the correct format before using it.
    To do this I am using the "Expected Fields" parameter. This requires a list of expected fields that is comma seperated.
    However, some of my field names include commas, therefore the node errors because it is seperating at each comma instance.
    I have tried various methods of ignoring the comma within a field name but have not yet succeeded.
    I would rather not have to treat the source data prior to using the Meta Check node (e.g. by using the Replace node), so any suggestions would be much appreciated.

    Thanks


  • 2.  RE: Meta Check node - Expected Fields contain comma

    Employee
    Posted 07-06-2015 06:27

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: lnason

    Hi - I'm not seeing anyway around your issue either when using the Meta Check node. Another option would be to build your own MetaCheck equivalent that checks for certain required fields and then acts accordingly depending on what is present on the input.

    I've attached a simple example of how you can do this. In this example, I've written the node so that it looks for a ";" as the delimiter for the list of fields you want to validate against. The node uses the abort operator to throw an error when one of the required fields is missing.

    If you want to get more sophisticated and build something that is closer to the what the MetaCheck node does, have a look at the help documentation for the "setSuccessReturnCode" operator. This allows you to implement the same type of functionality that is driven by the "SuccessAction" and "TerminusAction" parameters in the Meta Check node.

    Luke

    Custom Meta Check.brn

    In case you are not familiar with a ".brn" file, it's just a set of nodes saved to a file....you can either cut and paste all of the file contents into the BRE canvas....or you can just drag the file itself onto the BRE canvas.