Searching were is one specified Codeunit (64825) used in Sys

thyvonen
thyvonen Member Posts: 7
Hi,

We are having problem, because we have one specified codeunit 64825 that should not be used anymore.. How made this deleopment orginally is not possible to get contact (not living anymore) / documentation is missing. There has been changes after that so it should not be used, but we just cannot delete this object (If it is still in use something is it part off B2B interface). according to documentation what found from object.

I know that i can go object by object and check C/AL Globals / C/AL Locals, we have now checked 30 objects were we think that might be used... also we have made Debuggint but that is taking lot off time..

Does anobody know program / util that can scan all objects and find if somewhere is used this special codeunit and list them.. or is that only way one by one.

Thanks in advatange...

Comments

  • thyvonen
    thyvonen Member Posts: 7
    Also would be possible that if there is program / util that can open all objects and list all variables / C/AL Local and C/AL Global / C/AL Code
    example in Text file, where can be find or using search to find all marks for this codeunit etc...
  • ara3n
    ara3n Member Posts: 9,258
    delete the object, then compile all the objects. Filter on marked only. This should catch all objects that have errors.
    Some are com reference errors, which you can ignore.
    Find the ones that error, that this object does not exists and fix them.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSter
    DenSter Member Posts: 8,307
    You can export the objects as test files and search it there.

    I always use the developer toolkit for doing where used analysis. As long as the codeunit is declared as a variable it works very well.