Adjust Cost Batch Job Job Queue Error

MGM08MGM08 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

  • ara3nara3n Member Posts: 9,256
    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
  • arindomarindom Member Posts: 52
    I think you may missed option form also check message in adjust cost report coding.
  • MGM08MGM08 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.
  • skullaskulla 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.
  • MGM08MGM08 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.
  • ara3nara3n Member Posts: 9,256
    Turn on NAS with debug option and see where it stops.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.