Wednesday, April 20, 2022

Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))

Renaming the elements in Dynamics 365 finops results in this error in visual studio.



This might be due to a form design being open on the designer window. Just close the elements in designer window and the error will be gone.

Monday, April 18, 2022

Supressing/comment infolog in Dynamics 365 FinOps(D365FO)

 [ExtensionOf(classStr(ProjStatusType_ReportedFinished))]

final class ProjStatusType_ReportedFinished_Extension

{

    public boolean journalCheckStatus()

    {

        boolean ret;

        SysInfologLevel sysInfologLevel;


        sysInfologLevel = infolog.infologLevel();

        infolog.setInfoLogLevel(SysInfologLevel::None);


        ret = next journalCheckStatus();


        if(!ret)

        {

            infolog.setInfoLogLevel(sysInfologLevel);

        }

        return checkFailed(strfmt("<MyNewlabel>", projTable.ProjId, projTable.Stage()));

    }


}