web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)
Suggested Answer

Client Callbacks issue with Page Web Services

(0) ShareShare
ReportReport
Posted on by

Hi All,

I'm working on NAV 2013.

Creating unit test on the basis of web services in Visual Studio, that is created by exposing the Page as WS.

I have exposed page "FileShipmentModCard" as a WS, and writing the unit test.

I have created PortClient obj and FileShipmentModCard instance to work with it

so while creating new FileShipmentModalCard, getting the error in dotnet as bellow

Code is as bellow:

//File Shipment Mod. Card
FileShipmentModCard.FileShipmentModCard_PortClient fileShipmentModCardService = new FileShipmentModCard.FileShipmentModCard_PortClient();
FileShipmentModCard.FileShipmentModCard newFileShipmentModCard = new FileShipmentModCard.FileShipmentModCard();

fileShipmentModCardService.Create(ref newFileShipmentModCard); // Error comes here


Can anyone any idea how to fix this issue? Thanks!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Attached screenshot doesn't appear.

    Error Message:

    Microsoft Dynamics NAV Business Web Services attempted to issue a client callback to run page 2028490 New Model File as modal. Client callbacks are not supported on Microsoft Dynamics NAV Business Web Services.

  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    Please perform the steps manually and check whether there is any window opening in any case..

    those kind of scenarios are not possible in WS.

    You need to hide them

  • Community Member Profile Picture
    on at

    yes when we create new file shipment mod. card, it opens transport types from which we need to select transport type and proceed with rest of the information.

  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    You cannot use interactive windows like that. If you need to input a dynamic value you have to figure out a way to have that value previously to the webservice call and send it through at call time, not have the user decide while the webservice call is happening. 

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    means that a message/error/confirm is called and invisible shown. a user interaction is needed.

    so check the code and everywhere you find a message/error/confirm add a GUIALLOWED to check if a standard client is the caller.

  • Community Member Profile Picture
    on at

    How to handle message/error/confirm dialogues in cal code? can you please suggest a link write here?

  • Suggested answer
    Mohana Yadav Profile Picture
    61,204 Super User 2026 Season 1 on at

    Did you check GUIALLOWED functions?

  • Community Member Profile Picture
    on at

    When I click on New button on the Page "File Shipment Mod. Card" it opens transport type page, after selecting transport type page it redirects me to the "File Shipment Mod. Card". So the error occurred in code fileShipmentModCardService.Create(ref newFileShipmentModCard);. for that which object should I look for to disable the GUIALLOWED function or any dialogue to be hidden? As I'm new to NAV, not able to figure out, Pls. suggest me the root cause. Thanks.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    did you try the nav 2013 test toolset for testing ?

    blogs.msdn.com/.../application-test-toolset-for-microsoft-dynamics-nav-2013.aspx

    for usage of the web service: check the oninsert trigger of the published page for commands message, error,... if you find one then replace e.g.

    message(...

    by

    if guiallowed then

     message(...

  • Community Member Profile Picture
    on at

    Hi Archer,

    Thanks for the guidance, FYI I'm not using toolset for testing, rather we're working on VS2013 to write unit test over published WS. but yes we can change C/AL code in code units or page as needed. so in dev. envt. can we refer the code for page too? if yes pls. suggest how?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans