Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 73760 articles
Browse latest View live

Customized calculated amount for sales Invoice

$
0
0

Hi All,

I've customized the sales order form,

In sales line we've added new field called 'Total no.of Days', Net amount in line should be calculated as Total no.of days * Qty * sales Price(and also if any discount applied). I calculated as by the formula but if I confirm the sales order,it takes the amount by the formula as qty * sales Price. Also we've periodic invoice scenario, means we introduced from date ,to date in header. say From Date =1-Jun-17 ,to Date = 31-Jul-17. I want to invoice for june month. Total value of sales order is 12,000 means, For june month 6000 to be invoiced and for july month 6000 to be invoiced(two invoice to be done for same order).

I have two questions,

1. Where I've to calculate the amount by my way while confirm the sales order.

2. How can I invoice the sales order for above scenario?

Please give your inputs...


Query Object Not initialized when clicking Closing balance in Trail balance in ax 2012 r2.

$
0
0

Hi All,

 

I'm receiving the below error message when i click amount fields in trial balance form after GST upgrade in AX2012R2.

 

QueryBuildRange object not initialized.

Stack trace

(C)\Forms\LedgerTransAccount\Methods\init - line 234
(C)\Classes\SysSetupFormRun\init - line 3
(C)\Classes\xMenuFunction\create
(C)\Forms\LedgerTrialBalanceListPage\Designs\DesignList\EndingBalance\Methods\jumpRef - line 10
(C)\Classes\FormRealControl\mouseDown

 

I tried compiling all the above objects. Also done full compilation, Full CIl and DB Sync. also tried deleting Xppl folder also. nothing helped.

 

any suggestion please.

Dynamics 365 OData and SOAP service testing error - authority should be in Uri format

$
0
0

Has anyone faced the error - authority should be in Uri format - while testing the OData entities, SOAP services of Dynamics 365 for Operations? I have just downloaded the Github project to test OData entities and SOAP services from the following link.

https://github.com/Microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples/SoapConsoleApplication

I have also created Azure app registration in the Azure Active Directory.

Then I have substituted the Resource URI, Tenant ID, Application ID and Secret key in the solution

But still I am getting the following error - 'authority' should be in Uri format.

You can see the exception detail below. Has anyone faced this issue before?

How to create a Receipt for remaining delivery quantity without knowing the PO? AX 2012 R3

$
0
0

so my higher-up throw me this question as part of my probation period, I've looked online and found nothing alike.

How to cancel or correct "Return order invoice"

$
0
0

Hi, 

We have a "return sales order invoice" which is posted wrong date.  On the Return Sales Order,  Sales Credit Note button is passive so what can we do? Please help.

Allocate Freight Charges

$
0
0

Hi All,

My question is, how do we allocate freight charges only to the 3 on the first shipment and then on the remaining when shipped?

For instance, if we order 10 x bearings of the same kind / stock number, probably only 3 will be shipped and the other 7 on a later stage.

Thanks in advance.

DMF Preview source file error

$
0
0

dears,

please note that i am facing the following error when trying to preview source file in dmf.

System.serviceModel.Dispatcher.netDispatcherFaultException: The Formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:ShowPreviewResult.

Kindly advise if someone know how to fix it.

Regards,

Elie

Importing products from excel - enum error

$
0
0

Hi All,

i wish to import items to AX and setup in Data management entity Products for it.

Values in source file look like this:

So i wish to map it and i setup conversion for field ProductType:

When i run import i get error:

Invalid Enum Value

I tried to set values for conversion like 1, 2 based on enum IDs, tried add text "Item", "Service" but i always get the error above.

How to set mapping correctly?


How to link sub-project currency to default currency?

$
0
0

For Invoicing Purposes I use different currencies, for reporting I need to use default currency. Do you know how can I link sub-project currency to default currency? Is it ok if I use different currencies for one project and  for it's sub-projects?

Module has invalid reference to module

$
0
0

I'm involved in a migration from Ax2012 R3 CU10 to Dynamics 365 for Finances and Operations Enterprise (formerly Dynamics 365 for Operations, D3FO for now).

I cannot add AOT objects (specifically, class CustomerInvoiceSubledgerJournalTransferCommandExtension) to none of the models (option "Add to project" appears greyed). So I suppose I must manage something with models. Well, when I click Dynamics 365 - Model Management - Create model / Update model parameters, this message appears:
Module "ApplicationSuite" has invalid reference to module "Expense" that can cause circular dependencies. This is an indication thath model store is in a broken state.

Any ideas or advices to solve this?

Visual Studio 2013 Error while Creating New report using query

$
0
0

Hi All,

When i am creating a new report in visual Studio 2013 using query Dataset , following error is coming while selecting query

 

Regards,

Tanu

Overdelivery error: Overdelivery of line is 50.00 percent, but the allowed overdelivery is only 0.00 percent.

$
0
0

so while creating a receipt for a remaining partial delivery qty, this happens:

I've already specified the product purchase overdelivery percentage value to 100% even:

and also tick the checkboxes on the procurement and sourcing parameters:

yet the same error still occurs with the exact same infolog message. 

assist would be verymuch appreciated!

Print all picking routes together

$
0
0

In AX2012 R3 I’m using Shipments [templates] to group orders together for release to the warehouse.  For example, by Mode of delivery.  Once I Activate the Shipment I have multiple Picking Routes (one per order because of the Shipment template configuration.)  It only seems to be possible to print each Picking route individually.  Is there a way to print them all together, or can you suggest a different way of achieving all this?

showing different result from AX report

$
0
0

Dear all,

I have just applied kernel hotfix on our AX server and AX client as well, the version is 6.3.164.3669

If i open picking list report from Sale and Marketing in AX server itself the report is fine, showing enough information such as reference number, activation date, mode of delivery and so on but if i open the same report from a computer that have AX client then those information will be missing except company information as the image below

 Any suggestion is highly appreciated

Regards,

Mark

Fixed asset reason code

$
0
0

Hi,

I have a requirement, where I need to do mandatory for "fixed asset reason code". How can I make mandtory to fill the reason code while posting fixed asset journal. 

Thanks in advance


Model not found issue in ax 7

$
0
0

HI All 

I am facing the below error while running the report "Sales Quotation"

"The model with id '895572104" was not found. This can happen if the model id was changed. Perform a full build on its containing package 'Application Suite' to resolve the issue

While performing customization of "Sales Quotation Report" , i have created a new model with reference to application suite.

I have also build the model with database sync and also did a build with reference.Still i am facing the above error .Any help is appreciated !!

Regards,
Anna

Note on the algorithm for Standard lookup form filtering for fields connected through Natural Foreign Key relation

$
0
0

Hi,

I am currently modifying AX 2012 R3.  There is little documentation about Standard lookup form filtering for fields connected through Natural Foreign Key relation - the most informative I have found is here: https://msdn.microsoft.com/en-us/library/aa597861.aspx#Anchor_2. To cite the site under the link:

When you use the lookup to specify a record in another table, you must supply values for all the fields in the natural key. In addition, the field values must identify a valid record in the related table. To help you select a valid record, the value that you chose for the field that represents the first relation field restricts the values that you will see in the field that represents the second relation field. The same type of filter is applied to each subsequent member field of the natural key.

Let's consider standard AX address capabilities in this matter. If we open LogisticsAddresssCity [sic] table, then if we select a country, then the lookup form for states will filter all states by the selected country (which can be seen explicitly stated by opening the lookup form's query window by pressing Ctrl+F3 while on the lookup form - where we'll see a range setup for the country we chose). The same goes for the county field - when we enter a country and a state, only counties from this country and state will be shown. The chunk of bold text from the citation doesn't explain the peculiarity which is present in this algorithm, however. To show the idiosyncrasy let's consider adding a "Commune" administrative division, which slips between "County" and "City" address entities in AX address capabilities.

  1. We create table "LogisticsAddressCommune" (possibly by duplicating the LogisticsAddressCounty table).
  2. Using fields CountryRegionId, StateId, CountyId we create Natural Foreign Key relations to LogisticsAddressCountryRegion (only on the country field), LogisticsAddressState (country and state fields), LogisticsAddressCounty (all three).
  3. In table LogisticsAddresssCity we create a column "Commune".
  4. In the same table we create a Natural Foreign Key relation to our table "LogisticsAddressCommune" on the fields for country, state, county and the newly-created "commune".

From what the bold text reads it should be enough for the filtering to work, ie. if we open the LogisticsAddresssCity table and properly fill the country, state and county fields, the communes should be filtered by that. However, if we're unlucky during the automatic procedure of Natural Foreign Key relation lines generation (for which the code is unfortunately inaccessible), any number of them could be not taken into account as filters. The idiosyncrasy is that the applied filters on auto-generated lookup forms come only from those fields for which the relation lines are above the relation line coming from the new table (no matter their order). So, in this example, if have ended up with the relation properly defined as:

  • Relation LogisticsAddressCommune_FK
    • LogisticsAddresssCity.CountryRegionId == LogisticsAddressCommune.CountryRegionId
    • LogisticsAddresssCity.StateId == LogisticsAddressCommune.StateId
    • LogisticsAddresssCity.CountyId == LogisticsAddressCommune.CountyId
    • LogisticsAddresssCity.CommuneId == LogisticsAddresssCommune.CommuneId

then after filling country, state and county fields the filters under Ctrl+F3 on the lookup form will be:

TableFieldCriteria
CommunesCountry/Region<country we chose>
CommunesState<state we chose>
CommunesCounty<county we chose>

However, if we're unlucky and the automatic procedure of Natural Foreign Key relation lines generation ends up with:

  • Relation LogisticsAddressCommune_FK
    • LogisticsAddresssCity.CountryRegionId == LogisticsAddressCommune.CountryRegionId
    • LogisticsAddresssCity.StateId == LogisticsAddressCommune.StateId
    • LogisticsAddresssCity.CommuneId == LogisticsAddresssCommune.CommuneId
    • LogisticsAddresssCity.CountyId == LogisticsAddressCommune.CountyId

[Note that two bold bottom lines are switched from the proper order]

then we get:

TableFieldCriteria
CommunesCountry/Region<country we chose>
CommunesState<state we chose>
CommunesCounty 

[Note the empty county filter]

and we are returned all communes from all counties withing the chosen country and state.

And so, if we're the most unlucky and end up with:

  • Relation LogisticsAddressCommune
    • LogisticsAddresssCity.CommuneId == LogisticsAddresssCommune.CommuneId
    • LogisticsAddresssCity.CountryRegionId == LogisticsAddressCommune.CountryRegionId
    • LogisticsAddresssCity.StateId == LogisticsAddressCommune.StateId
    • LogisticsAddresssCity.CountyId == LogisticsAddressCommune.CountyId

[note the field coming from the new table is first]

we get:

TableFieldCriteria
CommunesCountry/Region
CommunesState
CommunesCounty 

[note all the criteria are empty]

and are returned all the communes in the database on the lookup form.

So to sum up: the relation line concerning the field coming from the new table has to go last in the AOT. To change the order of the lines (they can't be ordered by drag-and-dropping) use Alt+Up and Alt+Down, which move the current line up and down, respectively.

Recycled By Product Cost Logic

$
0
0

Hi,

I have set recycled by product as written in this blog.

https://blogs.msdn.microsoft.com/axmfg/2014/09/04/support-for-recycled-by-products-in-ax-2012-r3-cu8/

Now I have a scenario in a production order where I use recycled item as material and also produce recyled item. Suppose my recyled product has standard cost with rate $100. I consume 200 kg and produce 400 kg. What I don't understand, if I view from production costing, costing for my recycled item is $20000 which I'm guessing comes from (400-200) * $100. Shouldn't it be $40000 (400 * $100)? And then my main product costing should deducted from all posted material value with $40000? Is this the design? Could you help me explaining why production posting costing for my recycled item is $20000 and not $40000?

Thank you.

Jefry

Report Customization

$
0
0

Hi all,

Anyone tell me the X-Report SSRS Name in AOT.

ListPage filter controls FilterDataSource property and QueryBuildDataSource not initialised error

$
0
0

I've inherited a list page with a trio of filter controls that had their filtering implemented using custom code (as detailed in an earlier question).  It seemed to me at that point that using the FilterDataSource and FilterField properties on the controls was probably the correct way to get them working, but after initial testing and handover, the following error has been reported (and I can't work out why I didn't see this myself).

QueryBuildDataSource object not initialised.  Stack trace (C)\Classes\SysEPCustomFilter\applyFilter - line 31

I've found this thread which discusses the same error (from a different class, given that it's occurring in an SSRS report rather than a list page).  I don't understand why the table selected in the FilterDataSource property would not be part of the query picked up in the SysEPCustomFilter, but by debugging I can see that the line

queryBuildDataSource - query.dataSourceName(dataSourceName);

leaves the queryBuildDataSource variable null.  If I hover over the query variable it shows the name of the custom query that is the datasource of the list page, but the SQL therein doesn't seem to include the table on which I'm trying to filter.  I can't see any differences between (a) the properties of the tables I want to use, but aren't shown in the SQL and (b) the properties of the tables that are shown in the SQL, but aren't of interest for filtering.
Query variable from debugging:

Query LNProjTableWithDimensions object 21547410: SELECT FIRSTFAST * FROM ProjTable(ProjTable) ORDER BY ProjTable.ProjId ASC, ProjTable.Name ASC OUTER JOIN Recld, Party FROM CustTable(CustTable) ON ProjTable.CustAccount = CustTable.AccountNum OUTER JOIN Name, Name, Recld FROM DirPartyTable(DirPartyTable) ON CustTable.Party = DirPartyTable.Recld OUTER JOIN * FROM HierarchyLinkTable(HierarchyLinkTable) ON ProjTable.Tableld = HierarchyLinkTable.RefTableId AND ProjTable.Recld = HierarchyLinkTable.RefRecId OUTER JOIN * FROM Hierarchy (Hierarchy) ON HierarchyLinkTable.Hierarchyld = Hierarchy.Hierarchyld OUTER JOIN Person, Person FROM HcmWorker (Ref_HcmWorker WorkerResponsible) ON ProjTable.WorkerResponsib1e = HcmWorker.RecId OUTER JOIN Name, Recld FROM DirPerson(Ref_DirPerson_WorkerResponsible_DirPerson_FK) ON HcmWorker.Person = DirPerson.Recld WHERE (((projActiveAll(Ø))))

Datasource properties (HierarchyLinkTable included in the variable, LegalProjTableDimension1 not included)

Having seen this blog post on data source addition, I've tried modifying the init() method of the custom query to add the data sources on which I want to filter (see below), but to no avail.  Can anyone please advise whether/how I'm misusing the filter properties?

QueryBuildDataSource	qdbsProjTable, qdbpsLegalDim1, qdbpsLegalDim2, qdbpsLegalDim3;

super();

qdbsProjTable = this.query().dataSourceTable(tableNum(ProjTable));

qdbsLegalDim1 = qdbsProjTable.addDataSource(tableNum(LegalProjTableDimension1));
qdbsLegalDim1.addLink(fieldNum(ProjTable, ProjId), fieldNum(LegalProjTableDimension1, ProjId));

qdbsLegalDim2 = qdbsProjTable.addDataSource(tableNum(LegalProjTableDimension2));
qdbsLegalDim2.addLink(fieldNum(ProjTable, ProjId), fieldNum(LegalProjTableDimension2, ProjId));

qdbsLegalDim3 = qdbsProjTable.addDataSource(tableNum(LegalProjTableDimension3));
qdbsLegalDim3.addLink(fieldNum(ProjTable, ProjId), fieldNum(LegalProjTableDimension3, ProjId));


Viewing all 73760 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>