Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Navision 9 Webservice error

(0) ShareShare
ReportReport
Posted on by 165

Hi,

I am trying to use the webservice page 7004 - Sales Line Discount but i get an error.

Do anyone know how to fix this so i can use the webservice?

Service:
User:
Type: Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException
Message: Naming conflict within the Sales Line Discounts object. Fields "SalesCodeFilterCtrl" and "SalesCodeFilterCtrl" are both transformed to "SalesCodeFilterCtrl". Please find new a name for one of those fields!
StackTrace:
at Microsoft.Dynamics.Nav.Service.WebServices.MetaPage..ctor(PageDefinition page)
at Microsoft.Dynamics.Nav.Service.WebServices.MetaPage.GetPageMetadata(Int32 pageId)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceFormWsdlAdapter..ctor(Int32 formId, String serviceName)
at Microsoft.Dynamics.Nav.Service.WebServices.MetadataManager.FindWsdlAdapter(String fullName)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.MetadataFor(UrlParser relivantURLPart, Uri orginal, TextWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output, String sid)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<>c__DisplayClass5.<ProcessMessage>b__1()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<ProcessMessage>b__0(StreamWriter streamWriter)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Service.WebServices

I have a lot of webservice pages that work, but i get the same error on 9087 - Sales Line Details.

Any tips on how to fix this would be very helpful.

Thomas

*This post is locked for comments

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Navision 9 Webservice error

    hi,

    yes, according to the error it won't work. this should be fixed. the person (or the company), who will fix that needs a dev. license.

    if you do not have a developer license, give that issue to the dev/support team (your nav partner). if you do not have a nav partner, you should contact a nav partner in your region.

    if you really want to buy a dev. license, follow:

    community.dynamics.com/.../105602.aspx

    community.dynamics.com/.../141910.aspx

  • throha Profile Picture
    throha 165 on at
    RE: Navision 9 Webservice error

    So if i don't have a developer license the Sales Lines Discount page wont work?

    And if i get a developer license, do the people who are going to use the stuff i make also need a developer license to access the pages i make ?

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: Navision 9 Webservice error

    In a page each field should have a unique value. To view the page in design view follow the following youtube guide.

    www.youtube.com/watch

    msdn.microsoft.com/.../dd338806.aspx

    After you go to design view check is there any duplicate field names available? If so rename them and then check the service.

    As Jonathan said you need to have a developer license to do this. If not you have to contact your NAV partner.

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Navision 9 Webservice error

    in the development environment. to edit/change a page (or any other nav object) you need a developer license.

    in the dev.env. goto menu tools/object designer. in the object designer select tab "Page" and select the page with no. 7004. click on the button "Design" on the bottom/right corner. that opens the page in design mode. there you can change the page fields.

  • throha Profile Picture
    throha 165 on at
    RE: Navision 9 Webservice error

    Where can i check the fields on a page ?

    Thomas

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Navision 9 Webservice error

    hi,

    check the fields in page 7004. each field must have a unique name (value in column Name). name SalesCodeFilterCtrl is used twice. maybe field CurrencyCodeFilter (or an other field) has the wrong value in the name column.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans