Iโm using the action: โadd a row to another table using values from this tableโ and the record is failing due to the Valid If statement. In the case below, I have a record Iโm trying to insert that has a Cart Weight of 2561. The expression should allow the record being inserted is function: SCALE_RECV. The expression seems to not recognize the function and enforces the validation. I could really use some help with the right expression.
The following is the Valid If Expression:
IFS(
[function]=โSCALE_RECVโ,[_THIS]>0,
AND([function]=โWHSE_RECVโ,[Cart Material].[name]=โTrashโ),AND([_THIS]>0,[_THIS]<3000),
AND([function]=โWHSE_RECVโ,[Cart Material].[name]=โClothesโ),AND([_THIS]>0,[_THIS]<1000),
TRUE,[_THIS]>0,
)
I also tried:
IFS(
CONTEXT(View)=โScale Receiving Detailโ,[_THIS]>0,
AND([receiving_id].[Function]=โWHSE_RECVโ,[Cart Material].[name]=โTrashโ),AND([_THIS]>0,[_THIS]<3000),
AND([receiving_id].[Function]=โWHSE_RECVโ,[Cart Material].[name]=โClothesโ),AND([_THIS]>0,[_THIS]<1000),
TRUE,[_THIS]>0,
)
Here is the action that inserts the record.
ERROR REFERENCE:
โErrorsโ: โError: Perform DataAction โcreate_scale_carts_clothesโ failed because Row having key โc311532aโ in table โCartsโ containing value โ2940โ in field โCart Weightโ failed โValid_Ifโ condition. Error: Perform DataAction โcreate_scale_carts_clothesโ failed because Row having key โc311532aโ in table โCartsโ containing value โโ in field โCart Barcodeโ failed โRequired_Ifโ condition. Error: โAdd Rowโ Data action โcreate_scale_carts_clothesโ failed with exception Collection was modified; enumeration operation may not execute. .โ,
Does a Valid If expression of just TRUE
work?
The Valid If is required if the recordโs function = โWHSE_RECVโ.
Just tried:
IF([function]=SCALE_RECV,FALSE,
IFS(
[Cart Material].[name]=โTrashโ, AND([_THIS]>0,[_THIS]<3000),
[Cart Material].[name]=โClothesโ,AND([_THIS]>0,[_THIS]<1000),
)
)
Andโฆ
IF([function]=SCALE_RECV,FALSE,
IFS(
[Cart Material].[name]=โTrashโ, AND([_THIS]>0,[_THIS]<3000),
[Cart Material].[name]=โClothesโ,AND([_THIS]>0,[_THIS]<1000),
)
)
User | Count |
---|---|
37 | |
30 | |
29 | |
20 | |
18 |