Flow not working - 2 different references.

Aram Sosa
Tera Expert

Hello there folks!

I am working on a Flow that handles the request process of a TRM Record. When doing the process, I get an error after approving it, instead of the product being created (Screenshot 1).

In reviewing the logs, I could tell that the error seems to be in some reference to the “sys_domain_path” field. The full log message:

Operation(TRM Software Product Request F failed with error: com.snc.process_flow.exception.InValEvaluationException: sys_domain_path is not a valid dot-walk for record sn_apm_trm_product_request

Using the Flow engine - Execution Details tool, reviewing the executions, I can notice that the Flow has the error in the action 5: Look up Record (Screenshot 2)

I get into the table “sn_apm_trm_standards_product” that appears in the error message, and I entered the record of the Product that I used in this example “.NET”. Here inside the record, I used the option “Show XML” and here inside, I could notice that the product ID that appears in the Flow executions tool does NOT appear. That is, the tool shows “product=4e7bac489731315046bbf4c11153afa2” (the sys_id of the .NET product, or what it should be). BUT going directly into the .NET Product from the sn_apm_trm_standards_product table, this sys_id does not exist or appear anywhere in the product XML. (Screenshot 3).

 

It seems that the Flow is taking this sys_id from the Record created in the “sn_apm_trm_product_request” Table. Since when entering the record in this table of the request that I created initially, reviewing the XML of this record, it DOES appear the sys_id “4e7bac489731315046bbf4c11153afa2”. More specifically, in the XML appears: <samp_sw_product display_value=“.NET”>4e7bac489731315046bbf4c11153afa2</samp_sw_product> (Screenshot 4).
So, the error must be that it is looking in the sn_apm_trm_standards_product table for the sys ID that does NOT exist in that table, but exists in the Product request table.
I also attach a picture of this Look Up in my Flow (Screenshot 5)

As extra information, in the specific case of the Product used in this “.NET” test, in the table “sn_apm_trm_product_request” the field “samp_sw_product” has as value “4e7bac489731315046bbf4c11153afa2”. (screenshot 6)
However, in the table “sn_apm_trm_standards_product”, the field referring to the id “u_product_id” has as value “4051”. (Screenshot 7).
As it is visible, they are two different fields, with completely different values, but both refer to the same “.NET” product.

How can I fix this? 

I can add more images of what you think is necessary to solve this. Any help is appreciated!

3 REPLIES 3

jcmings
Mega Sage

Can you lay out the process that is supposed to happen for me please? I'm having trouble following and bouncing back and forth between screenshots (if you could embed those as images rather than files that would be great). Based on my initial read through, it sounds like you are trying use the flow to look up the product that you just tried to create, but it isn't created yet, and that's why you're running into issues. The trigger is the creation of the product. Is that correct?

The idea of the process is simple: In this case, I made the request and approved it myself, in order to perform the testings.
The request for a TRM Product is created, the type of product is selected (Software or Hardware, in this case we are in Software, since there is a flow for each type) once created it needs approval. Once approved the TRM Product should be created, but instead of that, it raises the error.
The Trigger is “TRM Product Request Created, where Type is Software.

I will gladly add the screenshots again with photo format, sorry it was confusing the first time.

Screenshot 1Screenshot 1Screenshot 2Screenshot 2Screenshot 3Screenshot 3Screenshot 4Screenshot 4Screenshot 5Screenshot 5Screenshot 6Screenshot 6Screenshot 7Screenshot 7

In your screenshot of the flow, where is the creation of the TRM record? I see Ask for Approval, and then a plugin check, a series of If statements, and then Look Up Record. Where is the creation happening?