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

Infinite Loop Join Query

$
0
0

Hi Community,

i get an infinite loop on a query with three tables:

while select Table1

where Table1.RecId == 123456789

join Table2

where Table2.Voucher == Table1.Voucher

join Table3

where Table3.RecId == Table2.TransRecId

{

do something;

}


I ran the query manually, that is opened table browsers and entered the criteria from my query. I got three records from Table3.

When I debug I noticed that the query selects all existing records in Table3.

Can you help me on what I am missing on this query? is there some issue with flags that should be fixed?


Dynamics ax Ytd sales report issue

$
0
0

good morning,

Today i tried to open  Sales and marketing --> Reports --> customer --> Top customers by YTD sales report.

First it got logon error ..it is solved by changing in system administration --> analysis server.

Next new error that is.

=====================================================

Query(12,2) The Dimension '[Transaction date - fiscal calendar]'  was not find in the cube

when the string [Transaction date - fiscal calendar].[Year].[All], was parsed

=====================================================

i tried to Process the data analysis service database but still not working

AOT --> visual studio projects --> Analysis services project --> Dynamics ax --> Edit --> Vendcube.cube

there is no 'Transaction date - fiscal calendar' . I think that is error..

Can anyone guide me should i add new dimension or any other suggestions

I am a fresher..This is my first post.

Please guide me.

Regards.

How to display the list of all AOT forms

$
0
0

I want to display list of all forms form AOT Through job.

Suppose i am write a code in job and run this job, i want to print all forms one by one in info log

Form new permissions node

$
0
0

Hi All,

Could you please let me know in how permissions node are working in form level .
1. Why permissions node is introduced in to AX 2012?
2. What is the difference between Form Permissions node and AOT -- Security (Privileges, Duties, Roles) ?
3. How i will check these permissions are properly working OR not for new or existing form?

For example :

Please explain me in brief point wise.

Thanks!

Arpan Sen

Visual Studio SSRS filter expression on enum parameter

$
0
0

Hi all, so I want to make a filter based on enum parameters on my contract class

the condition:

I have customized Enum let say Custom1 has value 0 (Open), 1 (All) in class contract as parameter

and if Custom1 has value 0 (Open) then report only show record which has value SalesLine.SalesStatus == SalesStatus::Backorder

else show record with all SalesStatus value

so in the tablix filter I write:

Expression : =IIF(Parameters!Custom1_DynamicsParameter.Value = "Open", Fields!SalesStatus.Value, False)

Operator : <>

Value : Backorder

when i run the preview I got error :

"Cannot compare data types System.Boolean and System.String......"

what is the solution?

thanks in advance.

Can't get contract values in RDP class

$
0
0

Hi all,

I'm using the following code from Martin's blog to save a report through X++

SrsReportRunController          controller =new SrsReportRunController();
SysUserLicenseCountRDPContract  rdpContract =new SysUserLicenseCountRDPContract();
SRSPrintDestinationSettings     settings;
 
// Define report and report design to use
controller.parmReportName(ssrsReportStr(SysUserLicenseCountReport, Report));
// Use execution mode appropriate to your situation
controller.parmExecutionMode(SysOperationExecutionMode::ScheduledBatch);
// Suppress report dialog
controller.parmShowDialog(false);
 
// Explicitly provide all required parameters
rdpContract.parmReportStateDate(systemDateGet());
controller.parmReportContract().parmRdpContract(rdpContract);
 
// Change print settings as needed
settings = controller.parmReportContract().parmPrintSettings();
settings.printMediumType(SRSPrintMediumType::File);
settings.fileFormat(SRSReportFileFormat::Excel);
settings.fileName(@'\\share\UserLicenseCount.xlsx');
 
// Execute the report
controller.startOperation();

This code works fine. But when I replace the report, the contract class and the parm method with my objects, the contract class's value doesn't flow to the DP class. I'm not sure what could be the reason.

I have decorated my parm method with the DataMemberAttribute attribute.

My DP class refers to the contract class.

My report uses the DP class as its datasource.

What else can I be missing.

Security Policy Permission denied

$
0
0

Hello All,

We're currently running AX 2012 R3 and have been experiencing an issue with creating case cetegories. it's located under OA/ Setup / Cases / Case categories.

When we try creating new, we get this error:

"Cannot create a record in Case Category (CaseCategoryHierachyDetail). Security policy permission denied."

We added the proper role "Collections Manager", clear the cache, restarted the client session, but still get the error. Any ideas to help get this resolved?

thank you,

how to add the New discount percent field in purchase order in ax 2012 r3

$
0
0

i want to add the new discount percent field in purchase order working like discount percent in standard  ax

Example:

i am enter the purchase order line one item , quantity=10 and unit price =10 the net amount =100

Now i am enter 

discount percent =10

customized Discount percent =10

Now net amount = 80

how to add this?


AX 2012 R3 sales order invoice performance

$
0
0

hi All, 

we upgraded Ax from 2012 R1 to R3 recently, the kernel version is 6.3.164.0

When I tried to post multi sales orders that with same invoice account, I catch sql statement trace log, below statement using long query time and that cause our sales order invoicing performance very slow( on my instance, took above 26k query time for two sales orders, each order has 10-15 sales lines).

statement: 

select sum(EndDisc), sum(InvoiceAmount), sum(SalesBalance), sum(SumMarkup), sum(SumTax) from custInvoiceJour
where custInvoiceJour.RefNum == RefNum::SalesOrder
notexists join custInvoiceSalesLink
where custInvoiceJour.SalesId == custInvoiceSalesLink.SalesId
&& custInvoiceJour.InvoiceDate == custInvoiceSalesLink.InvoiceDate
&& custInvoiceJour.InvoiceId == custInvoiceSalesLink.InvoiceId
&& custInvoiceSalesLink.OrigSalesId != _salesTable.SalesId;

the statement above from class: MCRSalesOrderTotals, method: 

calcInvoicedExistMultiple(SalesTable _salesTable)

the statement seems to sum invoice amount, I tried to add info box to show what result calculated. it shows me huge amount that I believe sum almost whole table from CustInvoiceJour. and that is the reason this statement take long time.

does anyone using AX 2012 R3? if so, could you help to check if you have this class and method be hit while invoice sales invoice?

thanks in advance.

 

 

Loyalty Program accrued point use

$
0
0

Hello, all,

I am testing the Loyalty Program (Retail module) functionality in DAX R2.  The setup is pretty straightforward and it is well-documented.  However, there is not much documentation on how to use it.  I was able to figure it out how to accumulate/earn points, but I am struggling with using them to make a purchase or to apply it to a special Loyalty Program benefit.  I would appreciate any assistance or suggestions where to start and/or how to use it.

Regards,

Serguei Popovski

 

 

Accounts Payable Report with GL Account string included

$
0
0

Hello,

I have been tasked with trying to develop an SQL query that would list all outgoing payments (Check, ACH, EFT, etc.) with the associated GL expense account string.  I do not see any similar reporting available in AX 2012, and have been trying to determine which tables to use and how to build the query.

So far, I am have this:

select  VT.DATAAREAID, VT.ACCOUNTNUM, VT.TRANSDATE, VT.INVOICE, VT.TXT, VT.VOUCHER, VT.DOCUMENTDATE, VT.PAYMREFERENCE, VT.PAYMMODE, GJAE.TRANSACTIONCURRENCYAMOUNT, DAVC.DISPLAYVALUE

FROM

[DynamicsAXProd].[dbo].[VENDTRANS] VT,

[DynamicsAXProd].[dbo].[GENERALJOURNALACCOUNTENTRY] GJAE,

[DynamicsAXProd].[dbo].[DIMENSIONATTRIBUTEVALUECOMBINATION] DAVC

WHERE

VT.CREATEDTRANSACTIONID = GJAE.CREATEDTRANSACTIONID

AND GJAE.LEDGERDIMENSION = DAVC.RECID

AND GJAE.POSTINGTYPE = 14

AND VT.TRANSDATE BETWEEN'04-01-2016'and'04-30-2016'

AND VT.DATAAREAID ='8032'

ORDERBY    VT.DATAAREAID, VT.TRANSDATE, VT.PAYMMODE, VT.PAYMREFERENCE

It gets me close, but I am certain there is a missing piece.  Any help would be appreciated.

.I want to production multi color products by one production order . How it is make?

$
0
0

Hi all,

I want create a production order.
The inventcolor dimension is activated in my itemid.
I want to production multi color products by one production order .
How it is make?

Thanks..

table for sales order lines to update delivery address after posted...

$
0
0
I nee to update the sales order line item delivery address on the BACKEND...what table do I need to go into to update. i checked salestable and salesline and this does not work....anyone no how to update the line item delivery address in the table?

Change Access Level on the ''Delete'' button in the customer form

$
0
0

Has anyone know how to remove or change the acces level on ''Delete'' button in the customer form.  I removed the duty and privileges on the customer form so that a user cannot maintain the customers but the ''Delete'' button still appear and function as if there are no relation to the privilege that is linked to maintaining the cusotmer form.

Minimum Time for an email to stay in the Queue for Dynamics AX 2009

$
0
0

Hi,

I recently setup our Invoices & Statements to be emailed out directly from Dynamics.
I've just had a request come back to make the emails stay in the queue for an hour before they get sent out.

This is to give the users time to realize they made a mistake and locate the item in the queue and delete it before it goes out to the customer.

Does anyone know if this is possible? The email batch processing job doesn't have any sort of options around making sure the created time is at least 1 hour ago before running it (that I found anyway) I'm not even sure where I can go in X++ to control the behavior of the email batch processing job.

The easiest option is for the email batch to set the emails to go out at 6pm (1 hour after close of business), but that's not quite what was intended.

<insert lengthy pause as I just went and checked something and answered the question for myself>

Funny how simply the act of writing out your question can lead you to the solution. I was going to close this but then thought others might find it useful.

I found the class I needed to edit was called sysEmailDistributor.

Inside the run method there was a while select that ran over all of the emails to be sent.

I changed the where clause from ...(outgoingEmailTable.Status == SysEmailStatus::Unsent)...

to ...(outgoingEmailTable.Status == SysEmailStatus::Unsent) &&
                    (outgoingEmailTable.createdDateTime <= DateTimeUtil::addHours(DateTimeUtil::utcNow(),-1)) ...

Quick fix I know. I'll extend it by creating the -1 as a parameter and have it able to be set inside Dynamics rather than being just a magic number buried inside the code. But if anyone has a similar problem...  

Thanks,

Adam


how to make financial dimensions mandatory in purchTable form

$
0
0

open the purchase order in edit mode and user enter the financial dimensions in Header view or line view.

some times they are forget the financial dimensions and confirm the purchase order.

i want to make the financial dimensions mandatory.

suppose in my application, Account structure consists of Budgeting, Business unit,department, worker,project.

i want to make only business unit and department mandatory.

Error: Account payable cube cube not found or not processed

$
0
0

Hello Experts,

i got below error when running the "Top vendors by YTD" report on AP> Reports> Statistics > Vendor

Error: Account payable cube cube not found or not processed

Drop-down restriction

$
0
0

Hello,

I have two customized fields, asset category and locations in a form.

now Asset category can have (stock, FA, Main, Used) values

Location can have (X1, Y1) values

so when i open a form with these two fields, i'm getting the location drop-down only when the asset category is stock for rest other values location drop-down is not enabled.

where can find this restriction setup in form level?

thanks

No virtual transaction marked with stock transaction LOT-XXXXXX

$
0
0

Dear Experts,

I`m having trouble to do "Product Receipt" for one of the purchase orders related to a Project. For the first time I`m having a trouble with this kind of error message.

Any suggestions are welcome

Regards

V

How to create alerts in AX V7?

$
0
0

Hi All,

Can anyone let  me know how alerts are created in AX7. I see its not same as v6. 

Thanks for your help!

Thanks,

Bharath

Viewing all 46681 articles
Browse latest View live