Hey,
so Ive ran into a weird problem recently and cant seem to fix it.
I wonder if you guys might have a solution.
So this is my patch function that I call when somebody scans a product in the app.
Patch(
'dbo.ClearedProducts';
Defaults('dbo.ClearedProducts');
{
AKID: Clearing_AKID_Value.Text;
EAN: Clearing_EAN_Value.Text;
EE: MA;
CUSTOMER: KdNr;
LP: If(
IsBlankOrError(
LookUp(
'Inventory';
AKID = Clearing_AKID_Value.Text;
'Storage space'
)
);
"XXXX";
LookUp(
'Inventory';
AKID = Clearing_AKID_Value.Text;
'Storage space'
)
);
articleNumber: If(
IsBlankOrError(
LookUp(
'Inventory';
AKID = Clearing_AKID_Value.Text;
'Article number'
)
);
"tbd";
LookUp(
'Inventory';
AKID = Clearing_AKID_Value.Text;
'Article number'
)
);
EXEC: Now()
}
);
It works perfectly 99% of times.
Though every now and then the App inputs "tbd" into the "Clearing" table although all products in the "Inventory" table do have an article number.
Its even weirder since this does not happen with the "storage space" field (They are both strings by the way).
If this matters in any way, we use an azure cloud database for this project.
Do you guys have any idea on how to solve this?