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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Price list service

(0) ShareShare
ReportReport
Posted on by 6,609

Hello:

We're attempting to implement the PricePriceListService as an outbound port. The port activates without any errors but it does appear to activate within a second as I've seen inbound ports take nearly half a minute. With limited success, the queue manager is showing the messages we initiated and they're in a ready status, but the queue has not processed. The destination endpoint is blank in the queue manager and I'm not sure how to set it up. I haven't been able to find much information related to this specific service. Hoping someone can help.

Thank you.

*This post is locked for comments

I have the same question (0)
  • Malcolm Burtt Profile Picture
    1,475 on at

    Maybe post a screenshot of your port configuration in case we can spot something wrong there. Also, do you have both AX batch jobs running that process outbound messages? To get outbound messages processed, you need to have both of the following batch jobs running...

    AIFOutboundProcessingService

    AIFGatewaySendService

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    You shouldn't add any message to the queue if there is no eligible endpoint. Please review your implementation of canXMLBeSent() (you can find an example in Walkthrough: Deploying the Document Service in an Outbound Exchange [AX 2012]) and make sure that it gets called in your case.

  • bankk Profile Picture
    6,609 on at

    Hi Malcolm,

    Yes, I do have the batch jobs set up with both you indicated.

    Here are screenshots of my outbound port configuration.

    serviceop.jpg

    serviceop.jpg

    Though the documents checkbox is checked, the data policies form is blank. 

    Thank you.

  • Malcolm Burtt Profile Picture
    1,475 on at

    Hi

    The thing that immediately sticks out is that the port is not active (indicated by the red  cross next to the port name).

    Also, if you are not using data policies, I would untick that box. Have you checked that the AOS user account has permission to write to the C:\Temp folder?

    Do you get any more information if you enable logging and exception reporting.

  • bankk Profile Picture
    6,609 on at

    Hi Martin,

    I'm not explicitly coding anything which adds to the queue. I'm trying to get the OOTB price list function to work. For the customer price list feature it appears the service does not have a schema available.

    I read through the link you provided and it looks quite different than how price list electronic send is implemented on the CustTable form.

    Thank you.

  • bankk Profile Picture
    6,609 on at

    Malcolm,

    The port will start, I just have it deactivated. Write permission is there for the folder. Just turning on logging mode to original document with exception, I'm not seeing more details on the error; the queue manager and exception log both show ...

    The parameter schema could not be found for EndpointId: SendPriceList, ActionId: PricePriceListService.find, DocumentClassId: 13992.

    Previously, I walked through the service creation wizard to try and create another version of this service. I only added the .find operation before updating my outbound port configuration. Once through the wizard and port changeI find the AifSchemaStore has a schema for the Axd* class, the service has no errors, the port starts without error, but once I run the customer price list I get that endpoint error. I'm not quite making the connection between the service and the endpoint.

    Thank you.

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    I guess that your service adds messages to the queue by query. How exactly it's done doesn't matter too much; the fact is that there always is a piece of code adding messages to the queue (which can be debugged and adjusted).

    But now when you mentioned a specific error, that's what we should focus on. Notice that it mentioned your endpoint ID (SendPriceList), therefore it successfully found it. And you see that the batch starts processing the message - it fails during this processing. It disproves the previous theory that messages in the queue are ignored.

  • bankk Profile Picture
    6,609 on at

    Hi Martin,

    After some debugging I've managed get the electronic send to submit and process the message queue transaction, but only after using the service wizard to create a new service and adjusting the outbound port. The document it produces is unusable as it has no data related to the customer or prices. Still a lot of work if I want to use the newly created service.

    During the research I noted the problem with using the OOTB service PricePriceListService was it was missing an entry in the AIFPortActionPolicy table for the PricePriceListService.find operation. Is it possible to add the record?

    Thank you.

  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    If you don't have the record in AifPortActionPolicy, AIF won't find any eligible endpoint for the service. It means that there is no port for the given operation.

    The record is (or should be) added when you link a port with the service operation.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans