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

Loop over form data sources that only appear on form design,

$
0
0

I need to loop  over form data sources that only appear on form design,FormRun.form().dataSourceCount() get all data sources appear in the  data sources query regardless  it is design data sources or not ?


RE: Unable send email to out side domain in AX 2012

$
0
0

Hi ,

Issue resolved by resetting the SMTP password.

Unable send email to out side domain in AX 2012

$
0
0

Hi,

I have gone through different blogs and forums and didn’t solve my issue.  Can some suggest me on this.. 

Error while sending email :-

1. Getting below error when I am using  System.Net.Mail.SmtpClient, System.Net.Mail.MailMessage  classes

“Mailbox unavailable. The server response was: 5.7.54 SMTP; Unable to relay recipient in non-accepted domain”

2. Getting below error when I am using  "SysMailer" classe:

 

“Method 'send' in COM object of class 'CDO.Message' returned error code 0x8004020F (<unknown>) which means: <unknown>.”

 

Note :- We have existing code for RFQ and written by other developer and it is work fine and it was written by using “System.Net.Mail” and with the same code when I am trying to send email getting above errors.. Tried by implementing same logic in different places like jobs, classes and forms and getting same error.

I have implemented the similar kinds of logic in multiple projects but didn’t face much issues..

Any quick response should be appreciated.

Regards,

KVNKK

RE: Error While Creating a New Project - Error executing code: xRecord (object), method validateWrite called with invalid parameters. Stack trace (C)\Classes\xRecord\validateWrite (C)\Forms\ProjTableCreate\Methods\canClose - line 26 (C)\Classes\FormRun\c

RE: Purchase agreement and the project module

$
0
0

Hi Zubair Alam,

What AX2012 version do you operate?

If I remember it correctly then a new functionality that became available with the lasted updates should solve this issue.

Best regards,

Ludwig

Import Item Price with Inventory Dimension

$
0
0

Hi,

I am trying to import standard cost with inventory dimensions using Excel. I am not able to generate the Dimension No. 

Kindly help me.

Thanks and Regards,

Selva

Runtime Metadata error

$
0
0

hi all,

i am  trying to deploy a custom deployableable package through LCS as i am getting an error -

Exception calling "CreateRuntimeProvider" with "1" argument(s): "Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies. \nFirst 10 conflicting names: ________________. \nSee metadata events for complete list."

I went inside the code could not fix it as the particular model is not fully deployed  from the package. So full build is not helping

Is there any other way i can fix it?

RE: Purchase agreement and the project module


RE: With One click at sales Invoice report I want three copies of SSRS Reports Original,duplicate,Triplicate

$
0
0

I called report two times in controller class main method.

//first call

if (TaxSolutionScopeIntegrationUtil::isCompanyEnabled()

&& !TaxableDocumentDescriptorFactory::getTaxableDocumentDescriptor(common).skipTaxDocument()

&& !custInvoiceJour.salesTable().CustomsExportOrder_IN)

{

salesInvoiceController.parmIsGSTInvoice_IN(true);

 

// Print the second report

// formLetterController = new SalesInvoiceController();

//formLetterController.parmArgs(_args);

formLetterController.parmReportName(ssrsReportStr(GSTInvoiceReport_IN, pwc_creditnote));

formLetterController.parmShowDialog(false);

formLetterController.startOperation();

//second call

if (TaxSolutionScopeIntegrationUtil::isCompanyEnabled()

&& !TaxableDocumentDescriptorFactory::getTaxableDocumentDescriptor(common).skipTaxDocument()

&& !custInvoiceJour.salesTable().CustomsExportOrder_IN)

{

salesInvoiceController.parmIsGSTInvoice_IN(true);

 

// Print the second report

// formLetterController = new SalesInvoiceController();

//formLetterController.parmArgs(_args);

formLetterController.parmReportName(ssrsReportStr(GSTInvoiceReport_IN, pwc_creditnote));

formLetterController.parmShowDialog(false);

formLetterController.startOperation();

.....

 

same report is generating with two times.But data is coming in first report,in second copy threre is no data only design is coming..

Any thing I am missing?

crossCompany from update_recordset

$
0
0

Hi

How can i use crossCompany from update_recordset? I want to update my temptable record with custTrans table
My temptable, I already inserted records using crosscompany.

Relation
MyTempTabel.voucher == custTrans.voucher

I nead to update MyTempTabel.invoiceid=custTrans.Invoice

both tables I need to get all crosscompany records. I used the following script but I am getting blank 


ttsBegin;
while select crossCompany custTrans

{
changecompany(custTrans.dataAreaId)
{
TmpTaxTransactionRDP = null;

select forUpdate TmpTaxTransactionRDP
where TmpTaxTransactionRDP.voucher == custTrans.Voucher;
if (TmpTaxTransactionRDP)
{
TmpTaxTransactionRDP.SourceInvoiceNo=custTrans.Invoice;

TmpTaxTransactionRDP.update();
}
}
}
ttsCommit;

Thanks & Regards

Avinash Moosa

RE: On-hand is incorrectly pegging planned batch orders before production lines in master planning

$
0
0

I don't fully understand your comment about negative days and coverage.

Have you tried reducing that own to a few days and using dynamic negative days which will then pick up the LT?

.Note if the demand comes for stock replenishment for min max, or for an internal production order then the LT used will be from the item, not from the vendor.

On-hand is incorrectly pegging planned batch orders before production lines in master planning

$
0
0

We are experiencing an issue where on-hand is incorrectly pegging future planned batch orders (formula lines) before pegging firmed production lines that lies more closer in time.

Coverage code is set to Requirement, where coverage time fence=365, positive days=365 days, negative days=365. Planned batch orders are firmed approximately 90 days before production start for an order but it can differ.

I have no safety stock (minimum) setup and the parameter is set to consume on-hand before all other inventory.

If I set positive days= 90 days the problem "disappear" since the planned batch orders starting 90 days from now will not be able to "reach" the on-hand  stock anymore. However, this solution is not good enough. I want the positive days to remain as long as the coverage time fence (to be able to use the on-hand stock full coverage time fence) but at the same time I want the on-hand stock to peg the production lines more close in time before pegging future planned batch orders.

Any ideas?

We are working in AX 2012 R3 CU11.

RE: On-hand is incorrectly pegging planned batch orders before production lines in master planning

$
0
0

The planned order is a planned order, it makes no real sense that this is simply taking the on-hand stock and pegging it to future planned orders when you have actual orders closer requiring the stock. The planned orders are re-generating looking at your screen shots and there is no standard ability to prioritise customers etc. This means that the planned order must be driven by a higher level requirement that is actually due prior to the other planned orders, meaning the chain of the initial demand is prior to the other orders.

Look at what is driving planned order SE13-001749399. Follow this up the chain - what is the date of the real initial demand? You never answered the action messages question, are there any?

I am assuming this is a vanilla planning system with no customisations to planning?

RE: Cannot open AX 2012 environment during upgrade. Insufficient rights

$
0
0

Hi Team, 

I have the same issue on AX 2012 during running Data upgrade checklist on AX 2012 R3. 

Deployed Developer license, post which we get the message " insufficient rights" while opening AX client and clicking on Data Upgrade checklist.

Tried using the SQL query to obtain Admin rights to my ID. No Luck!

Could you help us?

Cannot open AX 2012 environment during upgrade. Insufficient rights

$
0
0

I was in the middle of upgrading from AX4 to AX 2012 R3.

I had some issues, and had to restart the 2012 AOS service. It seems like the UserInfo table has been already loaded from AX4 during the Bulk Copy jobs, but something must be missing in the security roles, because I can't access the environment now. When I open the AX client, it says "Insufficient rights"

 

I don't want to start the upgrade process from scratch, so I need a way to open the client and continue upgrade.

In SQL Server, I can see that My user's SID is in the Admin user of UserInfo table. Is there anything I can do in SQL so that my user is assigned the "System administrator" role?


RE: Using crossCompany with update_recordset

$
0
0

Hi Ievgen,

I am trying with your code but my table is not updating

    ttsBegin;

while select crossCompany  custTrans

{

   changecompany(custTrans.dataAreaId)

   {

       TmpTaxTransactionRDP = null;

       select forUpdate TmpTaxTransactionRDP

       where TmpTaxTransactionRDP.voucher == custTrans.Voucher;

       if (TmpTaxTransactionRDP)

       {

        TmpTaxTransactionRDP.SourceInvoiceNo=custTrans.Invoice;

           TmpTaxTransactionRDP.update();

       }

   }

}

     ttsCommit;

Using crossCompany with update_recordset

$
0
0

I have this script , i want use update_recordset. How can i use crossCompany from update_recordset? 

while select forUpdate crossCompany  Table
            where Table.dataAreaId  == _dataArea
            &&    Table.ItemId      == Table.ItemId
        {
            changecompany(Table.dataAreaId)
            {
                Table.Stopped = false;
                Table.update();
            }
        }


RE: With One click at sales Invoice report I want three copies of SSRS Reports Original,duplicate,Triplicate

$
0
0

Should I write down my code like below.

//fisrt call In Controller main class

 PwC_TaxExportInvoiceController_IN formLetterController = new PwC_TaxExportInvoiceController_IN();

   formLetterController.printReport(_args);

   formLetterController.parmReportName(formLetterController.getReportName());

   formLetterController.parmDialogCaption('Export Invoice');

   formLetterController.parmShowDialog(true);

   formLetterController.startOperation();

//second call

  formLetterController = new PwC_TaxExportInvoiceController_IN();

   formLetterController.printReportCopy(_args);

   formLetterController.parmReportName(formLetterController.getReportName());

  // formLetterController.parmDialogCaption('Export Invoice');

   formLetterController.parmShowDialog(false);

   formLetterController.startOperation();

AX client error after upgrading kernel

$
0
0

Hello All,

Recently we installed new kernel binaries to our Ax 2012 R3 environment (we updated all clients (remoteApp - 4 boxes) and AOSes(we have 2 user AOSes)) - new version is 6.3.6000.4431. Our application version is 6.3.2000.323.

After the upgrade we deleted auc and kti files from user folders. We did not clear Usage data as this might be painful for the users. The problem is that after one day from the upgrade some users started facing client issues. 

In english this would be:

The text for the following task was not found:
...
This could be due to an error or an outdated version of the kernel text file.

And when user tries to open a form some other error appears. This looks like cache issue.

To fix that problem we are removing auc and kti files one more time but it helps only for some time. Usually next day they have similar issue. But removing cache files everyday is not a good option.

Strange thing is that the issue is for limited number of users, and only for the ones using DE language.

Best regards,

Maciej

Report Design Not showing added field

$
0
0

HI,

I  added  new field in temporary table, which is a datasource of the report .  report  is  deployed  already .  when  i want  to  add  newly  created  field  into report  design it adds it ,  but doesn't  show  in preview and in  ax  too.  if i close  visual studio  and  open again  newly added field is gone. it doesn't save in design.  Do  you know  what is happening?

  

Field  marked on  this  photo.  if i close  visual studio  and  open again  field will not be there . 

Viewing all 175888 articles
Browse latest View live


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