Adjust Cost Batch Job Job Queue Error

MGM08
MGM08 Member Posts: 41
Hi All,

I am on version 2009 R2.

I have the NAS installed and setup the Job Queue for the Adjust Cost Report (795).

I have removed the Window dialog box in the CU 5895.

But i am getting the error that "Dialog box cannot be Used".

Please do help.

Thanks.

Comments

  • ara3n
    ara3n Member Posts: 9,258
    Instead of using GUIALLOWED change them to false and run it manually from client see if any dialog opens up. My guess you missed one.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • arindom
    arindom Member Posts: 52
    I think you may missed option form also check message in adjust cost report coding.
  • MGM08
    MGM08 Member Posts: 41
    I had commented the function "OpenWindow" and had made request form to no but still getting the same error.

    While running the report i am not getting any windows opened. So bit confused where the triggering is happening.

    Please do help on the same thanks.
  • skulla
    skulla Member Posts: 140
    Did you restart your NAS, after making changes? Previously i have used GUIALLOWED statement in 5895 CU and used a new codeunit with following code


    AdjustCostEntries.USEREQUESTFORM(FALSE);
    AdjustCostEntries.RUN;
    CLEAR(AdjustCostEntries);

    and i had no issues. In the above code AdjustCostEntries is referencing "Adjust Cost - Item Entries" report.
  • MGM08
    MGM08 Member Posts: 41
    Yes restarted NAS. Still getting the same error.

    In the report property i have made UseReqForm to No.

    Also commented the whole window part in the Codeunit.

    In classic it doesn't open any windows or other dialog boxes.

    But NAS immediately throws the error.
  • ara3n
    ara3n Member Posts: 9,258
    Turn on NAS with debug option and see where it stops.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n