I need to do some changes in standard report, 1305 - 'Standard Sales - Order Conf.'. For that I converted this report from CAL to AL. But I am getting some errors regarding TempBlob. I am able to resolved few errors by Googling.
I am getting below error on PreDataItem:
'Codeunit "Temp Blob"' does not contain a definition for 'Blob'AL(AL0132)
Previously TempBlobWorkDescription was record, I changed it to codeunit.
Also getting second error :
It is difficult to bring in any advice because you do not show your code. Everything with blobs have been removed and replaced and as stated on breaking changes the way to resolve the issue is to use CU 4100. You can search for a variable containing CU 4100 in base application - and find a workable example.
Yes you get that error as the original fields are marked for deletion because of functional changes in the base application - so you have to rewrite your code.
Thanks for reply.
I have given the standard piece of code where I am getting error,
below is standard code,
Ahh, not quite.. There must be more to it than just 5 lines of code.
What is TempBlobWorkDescription (Object id)
The Header."Wotk Description" is have you calculated the value of that field beforehand?
On Error related trigger only given three line code is written. This report is standard report - 'Standard Sales - Order Conf.'. Till now I do not write any code, I am first resolving the errors.
Sorry, I am not getting which code you are expecting. Below is the complete AL converted code.
What you have done is just replaced a table with at codeunit - and ofcourse that does not work - You still have to use a table with the blob field or take a closer look at the new codeunit and try to find out how to use it.
Upgrading a report from CAL to AL is not an easy task you not the the basics of AL have been understood. You are going to spend quite a lot of time on this, and I would strongly urge you to get someone else to solve your problem - either by sitting next to you and train you in AL-development (the changes) or let the person do all the work for you.An other option would be to take a similar report in made with AL an copy that one a make the necessary changes on that copy.
Thanks for the reply Palle.
I agree. It's a common misunderstanding that Business Central and AL is just an upgrade to Dynamics NAV and C/Side.
It's a completely new way of developing. With NAV you could get around not really knowing how to program. With BC and AL you cannot!
And unless you have unlimited time (and already know many other programming languages than C/AL-C/Side), then it's not something I would recommend for self-learning. Take a course and save yourself 100's of hours.