Hi,
I’m facing a problem while inserting data into RecordSortedList. I have program which find the sales orders based on serial number. If the sales order is found, sales order details is inserted into RecordSortedList. Issue is, while inserting data into RecordSortedList, Ax throws error that ‘RecordSortedList’ insert should be called from server. Is any other way possible to insert data into RecordSortedList without running it on the server mode ?
Regards,
Raghav.
That’s by design (and documented [:)]). The logic you describe (… find the sales orders based on serial number …) should completely run on server - why would get all data to client and send them back? Move the whole thing to server and you will not only resolve the problem with RecordSortedList, but also get better performance and lower network traffic.
Hi Martin,
Insertion to RecordSortedList works fine if it is run under server mode. The input i.e., serial number is from a CSV file. When the class is run under server mode, Ax is unable to initialize CommaIO class. Hence the file is not read. How to read the file when the class is being run under server mode.
Regards,
Raghav.
Hi Martin,
I’m CommaTextIo to read CSV file. You are correct. I read the file (initialize CommaTextIo) on client side and sent the fiel to the server. It works fine.
Regards,
Raghav.