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)

Query filter cannot be specified on a query that are split into multiple queries dues to 1:n fetch mode.

(0) ShareShare
ReportReport
Posted on by 120

Hi,

I would like to add  this field (ProdTable).modSalesIdRef to  this Report InventTransferReceive.report , I have added those two tables InventTransferLine , and  ProdTable  to the query  as the following in the shots :

InventTransfer.png

And the Fetch Mode  1:n has been set in both  tables ,and I am getting this error

"Query filter cannot be specified on a query that are split into multiple queries dues to 1:n fetch mode."

 after adding those tables to the Query  Report.

Best regards 

Jamil

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    So why not to set fetch mode 1:1 ?

  • On-Hand Inventory I want to Add to the Report ItemName  Profile Picture
    120 on at

    Hi ievgen,

    I have changed  set fetch mode 1:1

    the same result I am getting

    Best  Regards

  • Community Member Profile Picture
    on at

    Hi,

       I tried in my system. its not giving any error!

  • On-Hand Inventory I want to Add to the Report ItemName  Profile Picture
    120 on at

    Hi Suresh,

    What is the  set fetchmode in all the  tables in my system it is set to 1:n

    but this error is not occur in when I compile the query, it is occur when I run the report  of the transfer order  that is  InventTransferReceive.Report 

    Best regards

    Jamil

  • Zain Bokhari Profile Picture
    3,208 Moderator on at

    That is because you have added a parallel datasource in Query, you have added InventTransferLine besides InventDim under inventTransferJourLine.

    66434.Capture.PNG

    That means the query will be divided into two branches from this point so it will not allow you to add all of the filters.

    Please discuss with someone for what you actually need this query to do.

  • Community Member Profile Picture
    on at

    Hi,

          Still you are facing the error?

  • On-Hand Inventory I want to Add to the Report ItemName  Profile Picture
    120 on at

    Hi Zain,

    Actually I would like  to retrieve and  display sales order  that is   (ProdTable).modSalesIdRef field which is present in the prodTable

    and the  link between InventTransferLine table    And the InventTransferJourLine.TransferId   as  the following InventTransferJourLine.TransferId  ==  InventTransferLine.TransferId

    and the like between InventTransferLine table    and the ProdTable  as  the following:

    ProdTable.ProdId ==  InventTransferLine.ProdId

    That is   why I have to use InventTransferLine  Can I use the InventDim table with ProdTable and the relation between them as the following

    ProdTable.InventDimId==InventDim.inventDimId do you think it will work as I want it.

     

    Best Regards

    Jamil

  • On-Hand Inventory I want to Add to the Report ItemName  Profile Picture
    120 on at

    Good morrning Suresh,

    Yes still the report is giving error

    Thanks

    Jamil

  • Community Member Profile Picture
    on at

    Hi,

       Can you please explain some more about your question, if possible with screen shots. It will be easy to analyze. In my case it is not showing any error.

  • On-Hand Inventory I want to Add to the Report ItemName  Profile Picture
    120 on at

    Hi Suresh

    I  want to add Sales Order field from ProdTable   to  this Report InventTransferReceive.report as I have explain to Mr. Zain Bokhari's, when I add those two tables  InventTransferLine , ProdTable to the relation of the report I am getting this error

    InventTransfer2.png

    Best regards

    Jamil

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans