I have a Form based where I am using Insertrecord set to insert the data in to the temporary table,
But it when debugger comes to execution of this statement, AX doesn't respond and have to restart. What could be the problem...?
InventSum inventSum;
InventDim inventdim;
InventSerial inventSerial;
z_RentalOrderLine rentalLine;
maRentalSiteReconciliation reconciliation;
maItemsWithNoOpenRentalContracts temptable;
delete_from reconciliation;
delete_from temptable;
insert_recordset reconciliation (ItemId,InventSizeId,InventColorId,InventStyleID,InventLocationId,WMSLocationId,InventSerialId,z_ManufacturersSerial,z_NBV)
select ItemID from inventSum
join InventSizeId,InventColorId,InventStyleID,InventLocationId,WMSLocationId from inventdim
join InventSerialId,z_ManufacturersSerial,z_NBV from inventSerial
where inventSum.InventDimId == InventDim.inventDimId
&& inventSerial.InventSerialId == inventdim.inventSerialId
&& inventSerial.ItemId == inventSum.ItemId
&& inventSum.Closed == NoYes::No
&&(inventSum.PostedQty inventSum.Received - inventSum.Deducted inventSum.Registered - inventSum.Picked) - inventSum.ReservPhysical > 0
&& inventdim.wMSLocationId == "On Rent";