what is LCS issue i did not understand please explain in detail how its possible and how ti fix it
RE: tax document shows wrong base amount
tax document shows wrong base amount
i have one sales order with 1500 qty and i do 2 invoices in 600 and 900 qty and add charges 0.33 per pcs but when i create invoice and in tax document basis amount is 600 qty is 6495 instead of 6198 bease as 0.33 charges will 198 of 600 but its takes charges of 1500 how to solve that its take charge 600 qty
RE: Cost Amount for Transfer Journal
Hi,
Overall inventory qty & value are correct. But the problem is that due to these transfer journals value is wrong in warehouse.
How to correct it now?
Can it be done by counting journal?
For some item qty is 0 is warehouse. How to make value also 0?
Regards,
Nisheet
RE: Invoice from SO: No lines for posting or quantity = 0
Hi
While cancelling the receipt I am getting the same error as well as following error
"Over delivery of line is 100.00 percent, but the allowed over delivery is only 0.00 percent."
This is a Import PO.
Please advise.
Ravi
Invoice from SO: No lines for posting or quantity = 0
Hi,
I try to create an Invoice from Sales Order but I receive 'No lines for posting or quantity = 0'
Any idea?
BR,
Michalis
PO Receipt Cancel : No lines for posting or quantity = 0
Hi
On cancelling Import PO receipt, system is giving following errors:
a) No lines for posting or quantity = 0
b) Over delivery of line is 100.00 percent, but the allowed over delivery is only 0.00 percent.
Please advice.
Thanks
Ravi
RE: Purchase Workflow
RE: Cost Amount for Transfer Journal
RE: Is the table GeneralJournalEntry an insert-only table?
Concerning the issue with RecIds possibly being out of order, I have a solution that I use for my personal queries, and it is very fast.
I have a script that creates a global temp table named ##LedgerDimensions, where the information is pivoted: each LedgerDimension (DimensionAttributeValueCombination record) has only a single row in the global temp table, with the 7 financial dimensions we use as separate columns. I run that script once in the morning, and then throughout the rest of the day all the queries I run that involve lookups of, and filtering on, ledger dimensions are nearly instant; all the hard work has already been done upfront.
However, I also have to update the table before running a query because new ledger dimensions can be added throughout the day; and that requires finding only new records. What I do is get the top 20,000 (I could set it to any number) LedgerDimension values (DimensionAttributeValueCombination RecIds) in my global temp table, in descending order; then among those find the min value; then select from DimensionAttributeValueCombination all RecIds that are greater than that minimum value but are not in the list of top 20,000 LedgerDimensions.
The thing is, even with 7 million rows in DimensionAttributeValueCombination, the entire 'find new rows' part completed in less than 1 second when there were 1,000 new ledger dimensions found.
DECLARE @TopX INT = 20000
DECLARE @MinTopXRecId BIGINT
IF OBJECT_ID('tempdb..#LedgerDimensionsTopX') IS NOT NULL
DROP TABLE #LedgerDimensionsTopX
SELECT TOP (@TopX) LedgerDimension
INTO #LedgerDimensionsTopX
FROM ##LedgerDimensions
ORDER BY LedgerDimension DESC
SELECT @MinTopXRecId = MIN(LedgerDimension)
FROM #LedgerDimensionsTopX
IF OBJECT_ID('tempdb..#RecIdsToProcess') IS NOT NULL
DROP TABLE #RecIdsToProcess
SELECT DAVC.RecId
INTO #RecIdsToProcess
FROM DimensionAttributeValueCombination DAVC
WHERE
DAVC.RecId > @MinTopXRecId
AND
NOT EXISTS (SELECT 'x'
FROM #LedgerDimensionsTopX LDTX
WHERE LDTX.LedgerDimension = DAVC.RecId)
The script then processes only the RecIds in #RecIdsToProcessI, in order to update the global ##LedgerDimensions table.
Is the table GeneralJournalEntry an insert-only table?
Hello!
I'm currently building a cube for a customer who uses AX2012. I'm using GeneralJournalEntry and GeneralJournalAccountEntry and copy rows into a staging table to make some calculations.
I would like to put an incremental copy to minimalize load each night but I fear that updates could take place on rows of those two tables.
Is it possible in AX2012 to update rows from these tables?
Thank you very much!
RE: Filterring Grid via code
I assume the grid is bound to a dataource.
You could use an event method (modified?) on the string edit control to call executeQuery on that datasource.
In executeQuery, before the call to super(),
depending on the circumstance,
clear all ranges on the datasource and create a new range for the appropriate field
clear the range on the appropriate field of the datasource
grab the value of the string edit control and use it as the argument for the value() method of the range
RE: Filterring Grid via code
Hi Rick,
Can you explain me your scenario completement?
RE: The given key was not present in the dictionary when calling 'GenerateDocument'
The error is still there. Full CIL and compile had no errors
The given key was not present in the dictionary when calling 'GenerateDocument'
Hi All,
I am getting below error while calling
Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper::GenerateDocument. It was running fine and out of no where it got stuck to this error. Same code is running fine in Test environment. Usually this error occurs when running CIL.
Can anyone help me on this? I have tried many things,
- Running FULL CIL
- Deleting XPPIL folder, restarting AOS and running Full CIL and DB Synchronization.
- Debugging didn't help much.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryFieldMetadataProxyExtensions.AsQueryFieldMetadata(QueryFieldMetadata queryFieldProxy, TableMetadata tableMetadata)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.QueryDataSourceProxyTransformer(QueryMetadata query, IQueryDataSourceMetadataProxy dataSource, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.QueryDataSourceProxyTransformer(QueryMetadata query, IQueryDataSourceMetadataProxy dataSource, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.AsQueryMetadata(IQueryMetadataProxy queryMetadataProxy, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadata.Deserialize(Object serializedQueryMetadata, QueryMetadata& serviceContract)
at Microsoft.Dynamics.AX.Framework.OfficeAddin.DynamicsAX.DynamicsPersistenceProvider.Deserialize(DataSourceManager dataSourceManager, String queryDefinitionXml, Boolean validateSchema)
at Microsoft.Dynamics.AX.Framework.OfficeAddin.DynamicsAX.DynamicsPersistenceProvider.Open(DataSourceManager dataSourceManager, DataSourceXmlPart xmlPart, Boolean shouldCache)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGenerator.GetDataSet(DocumentDataSource documentDataSource, DocumentXmlPart documentXmlPart)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGenerator.Create()
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper.GenerateOutputDocument(Uri outPath, AuthenticationType authenticationType, MemoryStream inputStream)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper.GenerateDocument(Uri inputPath, AuthenticationType inputAuthType, Uri outPath, AuthenticationType outAuthType, String tableName, String fieldName, String fieldValue, String company, String partitionKey, String aosHostAndWsdlPort)
RE: XDS security
Thanks for your response, now one question more, is that possible when i create new transfer journal from the same user(test Role) so in from site i just select only my filtered Site i.e XXX while to site the system show me all the site.
XDS security
HI experts, i have question regarding XDS , i want to restrict user to see only specific site inventory in ax R3, for
this i have worked around as under.
1.Create a Query and add data set Inventdim, added the range of that site regarding which i want to see data,
2. Then create a security policy and select primary table is InventDim, and query developed in step 1 assign to query property,add constrain table inventSum,
select role name, and assign my desired role, when i test the the policy with desired role it work fine.
But when i create new journal for item with same role , it give me error, "Inventory dimension is already created" and when i create Transfer journal from that role it give me error that item has no parameters for inventory.
Please guide me where i making the mistake, and is it possible to achieve all my requirement by creating single policy..if not then how it be possible ?
I am currently using Ax R3 2012.
RE: Filterring Grid via code
This is Answer:
public void lookup() { QueryBuildDataSource qbds; Query query = new Query(); SysTableLookup sysTableLookup; super(); sysTableLookup = SysTableLookup::newParameters(tableNum(Table1),this); qbds = query.addDataSource(tableNum(Table1)); sysTableLookup.addLookupfield(fieldNum(Table1, RelatedId)); sysTableLookup.parmQuery(query); sysTableLookup.performFormLookup(); }
2.Expand the StringEdit, right-click Methods, click Override methods, and then click modified.
public boolean modified() { boolean ret; ret = super(); Table1_ds.executeQuery(); return ret; }
3. Expand the Methods node of the form, right-click classDeclaration,
public class FormRun extends ObjectRun { QueryFilter queryFilter; }
4. Expand the Data Sources node, and then find the table that has the field that has the values that you will use to filter the list.
5. Expand the table node, right-click Methods, click Override method, and then click init.
public void init() { super(); queryFilter = Table1_ds.query().addQueryFilter(Table1_ds.queryBuildDataSource(),"relatedID"); }
6.In the same table, right-click the Methods, click Override method, and then click executeQuery.
public void executeQuery() { queryFilter.value(element.design().controlName("StringEdit").valueStr()); super(); }
Filterring Grid via code
RE: Disposition codes
Hello lally,
I am not aware of a blog post that details the ledger transactions created when item returns are posted.
You can check the technet and the MS docs sites but I believe that you have already done that.
This leaves you with the cumbersome tasks of testing the vouchers created for the different codes yourself.
Best regards,
Ludwig
Disposition codes
Hi ,
Disposition code is used to specify what action to perform for an item that is returned by the customer. There are many disposition codes available in AX.
The question is that do we have any document or blog that how the voucher entries will be generated for each disposition code against sales credit note?
Do we have the option to know disposition code against posted sales packing slip or posted sales invoice level?
Thanks in advance.