I am attempting to create a template that SUMS up list of the SKUs made for a specific Lot. I have tried several iterations of the Start expression with no luck.
* Error 1 : 'New process 2' task 'New Task 2' Body template. Expression 'UNIQUE(SELECT([Related Packagings][Id],(AND([Product]=[_THISROW].[Product],[Lot#]=[_THISROW].[Lot#]),TRUE)))' is invalid due to: Error in expression '[_THISROW].[Product]' : Unable to find column 'Product'.
* Error 2 : 'New process 2' task 'New Task 2' Body template. Start expression 'UNIQUE(SELECT([Related Packagings][Id],(AND([Product]=[_THISROW].[Product],[Lot#]=[_THISROW].[Lot#]),TRUE)))' should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the 'Key' column of the referenced table.
* Error 3 : The document body is empty
Basically when I trigger the workflow on the parent table [Lot#] I want to sum up the quantities of the child table [related packagings] by [Product] (which is unique to [related packagings]), for which there are multiple entries. For example there may be 8 related packaging entries for only two [products].
Let me know if something is not clear
I also tried this version, of the Start statement, same issue
A slice on the child table “Packaging”. Slice called say “SumQuantities” with row filter expression [ID]=MINROW(“Packaging”,“_ROWNUMBER”, AND([Product]=[_THISROW].[Product],[Lot#]=[_thisrow].[Lot#]))
A rev ref VC called say [RelatedSumPackagingQuantities] in the parent table “Lot#” based on slice in 1) above. VC expression REF_ROWS(“SumQuantities”, “Lot# table Key”)
A VC in the “Packaging” table called say [SumQuantitiesbyProduct] with expression
SUM(SELECT(Packaging[E_QTY_EA], AND([Product]=[_THISROW].[Product], [Lot#]=[_THISROW].[Lot#])))
The report template could look like something below