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

to get purch id

$
0
0

i want that whenever a invoice is posted against a PO, then a field in vendor named "qualification status" changed to approved. so on clicked method of post , i m writing the code but unable to pick the current record

so plz tell me how to pick the purchid to do the task in this code

select InvoiceAccount from infotable where infotable.purchid == infotable.PurchId;
InvoiceAccount = infotable.InvoiceAccount;

select forUpdate QualificationStatus from vend where vend.AccountNum == InvoiceAccount;
{
vend.QualificationStatus = QualificationStatus::Approved;
vend.update();
}


Retail bar code

$
0
0

Hi,

I have configured the bar code setups in retail.

Specified the bar code setup on retail hierarchy under 'basic product properties' fast tab for the hierarchy.

When i create new item and link it to the retail hierarchy, it doesn't default the bar code from the retail hierarchy to the item master.

Did anyone come across this problem?

Thanks

Label files not exportet to model

$
0
0

Hi,

In my build process (which is identical to the one I used for R2) for  AX 2012 R3 i'm importing labels from file using the startupcmd aldimport. However the labels doesn't end up in the final model.

I have tried syncing, flushing the labels and restarting the AOS to try to retain the labels but nothing helps. I'm using the same build process as for R2 which imports the labels into a model after creating the model and importing the combined xpo.

Any hints on this would be greatly appreciated.

Thanks

Error while printing Sales Invoice

$
0
0

Hi

I am getting following error while printing Sales Invoice in AX 2012 R3:

The query could not be processed. The field(s) SalesInvoiceHeaderFooterTmp.1.CompanyBranch_TH do not exist in the report provider table SalesInvoiceHeaderFooterTmp.

Copy Custom field from PO to Invoice

$
0
0

Hello

I need to copy some custom fields from PO to invoice when a new invoice is created. I cannot seem to find the code where the data is copied to the vendor invoice from PO. I was looking into the PurchFormLetter_.. classes but couldn't find it. please help.

Thanks

[AX 2012 R3] Inventory Movement Last Put Directive Code

$
0
0

Hi,

Can someone help me how to do inventory movement from one location to other specific location but destination location is directed by system? If I go to work template and choose work order type as inventory movement and I only make a pair of pick and put, but last put work template line won't allow me to fill directive code. I can fill last put directive code if my work order type is sales orders, but not if inventory movement.

I already make a new mobile device menu item for movement which parameter directed by is "user directed", so if I create inventory movement work from location, I can access work movement from mobile device. What I need is a mobile device that is able to suggest a destination location. Since I can't fill last put directive code in my last line of inventory movement work template, is there a way to do it?

Thanks.

Print Management: Print Packing slip

$
0
0

When I'm trying to print a packing slip for an order, The item no, description, size are coming in one page and rest of details like quantity ordered, remaining quantity are going to other page and header and footer are coming on next page as well.

How can we have all the details to be on same page? Some of the fields are empty. Please advise

Documentation Installation & Configuration Dynamics AX 2012 R3 in Azure Virtual Machine

$
0
0

Hi All

I'm new user in Dynamics AX and Azure. Currently I want to try install Dynamics AX 2012 R3 in my own Azure VM (already create VM Windows Server 2012 Datacenter OS)

Question :

1. Do I need create another VM for SQL Server or I can use existing one ?

2. Anyone have detail documentation about this installation ? I found this article, but still confuse : https://community.dynamics.com/ax/b/microsoftdynamicsaxintegration/archive/2013/08/13/microsoft-dynamics-ax-2012-in-windows-azure-iaas.aspx

3. I try install .NET Framework 3.5 Features but get error :(

Kindly need your help & advice for this

Regards

Maya


Send email with X++ and a free SMTP server

$
0
0

Has anyone had any success with using a free SMTP server like smtp.gmail.com or smtp.live.com to send email in Dynamics AX? 

I have a normal (not business) gmail account that I enter into the email parameters form. I use smtp.gmail.com and tried ports 587 and 465. I’ve tried with and without NTLM. We've also tried Hotmail and outlook email accounts. 

We have tried this in AX 4 and AX 2012. We run a job like the ones below; the job runs, gives no error, but no email is sent. We've checked spam folders and tried different addresses as receivers. We've pinged the smtp servers and that works from the aos server and client. 

My guess is that it does not work because there is no option to enable TLS, which both the live and gmail servers require. Is there a way to overcome this? 

 

Are we missing anything obvious? Has anyone every used a gmail/Live smtp to send email from AX?

 

-----------------------------------------------------------------------------------------------------------------------

 I don't think the problem is with the code, but I'll add it anyway. We've tried a number of ways to send email via X++, here are two of the main ones:

 

SysMailer mailer = new SysMailer();

SysEmailParameters parameters = SysEmailParameters::find();

;

if (parameters.SMTPRelayServerName)

{

mailer.SMTPRelayServer(parameters.SMTPRelayServerName,

parameters.SMTPPortNumber,

parameters.SMTPUserName,

SysEmailParameters::password(),

parameters.NTLM);

}

else

{

mailer.SMTPRelayServer(parameters.SMTPServerIPAddress,

parameters.SMTPPortNumber,

parameters.SMTPUserName,

SysEmailParameters::password(),

parameters.NTLM);

}

 

mailer.fromAddress("someoneElse@gmail.com");

mailer.tos().appendAddress("someone@gmail.com");

mailer.body("Hallo");

mailer.sendMail();

 

We have also tried System.Net.Mail:

System.Net.Mail.MailMessage mailMessage;

System.Net.Mail.SmtpClient smtpClient;

System.Net.Mail.MailAddress mailFrom;

System.Net.Mail.MailAddress mailTo;

str smtpServer;

;

mailFrom = new System.Net.Mail.MailAddress('sender@contoso.com',"Sender name");

mailTo = new System.Net.Mail.MailAddress('recipient@contoso.com',"Recipient name");

smtpServer = SysEmaiLParameters::find(false).SMTPRelayServerName;

mailMessage = new System.Net.Mail.MailMessage(mailFrom,mailTo);

mailmessage.set_Subject('This is email subject');

mailmessage.set_Body('This is email body');

 

smtpClient = new System.Net.Mail.SmtpClient(smtpServer);

smtpClient.Send(mailmessage);

mailMessage.Dispose();


 

Error when deploying offline POS database: "The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables."

$
0
0

We are working on setting up offline databases for our R2 POS Retail clients, and every time we try to create the offline database on any Retail POS client (both test and production environments) the following error occurs in the Retail Database Utility log and the process stops without completing:

INFO   , RetailDatabaseUtility, 4, 10/07/2014 18:16:05:278, ----- Deprovisioning sync objects on Database 'POSOffline' -----

VERBOSE, RetailDatabaseUtility, 4, 10/07/2014 18:16:05:278, Connecting using string: Data Source=localhost\sqlexpress;Initial Catalog=POSOffline;Integrated Security=True;Persist Security Info=False;Pooling=True;Encrypt=True;TrustServerCertificate=True
ERROR  , RetailDatabaseUtility, 4, 10/07/2014 18:16:05:299, The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables. Exception: Microsoft.Synchronization.Data.DbNotProvisionedException: The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables.
   at Microsoft.Synchronization.Data.SqlServer.SqlManagementUtils.VerifyRuntimeAndSchemaVersionsMatch(SqlConnection connection, SqlTransaction trans, String objectPrefix, String objectSchema, Boolean throwWhenNotProvisioned)
ERROR  , RetailDatabaseUtility, 4, 10/07/2014 18:16:05:299, Caught exception: Microsoft.Synchronization.Data.DbNotProvisionedException: The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables.
   at Microsoft.Synchronization.Data.SqlServer.SqlManagementUtils.VerifyRuntimeAndSchemaVersionsMatch(SqlConnection connection, SqlTransaction trans, String objectPrefix, String objectSchema, Boolean throwWhenNotProvisioned)
   at Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeDeprovisioning.DeprovisionStore()
RetailDatabaseUtility.exe Error: 0 : DBUtilityCore<ProvisionDatabasesForSynchronizationAsync>b__7: The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables.

 

Has anyone seen this before?  Has anyone been able to provision an offline POS database in R2?

Thanks in advance for any advice.

djz

Non-stocked items/services cost posting

$
0
0

I am using AX 2012 R2 CU6 with Adeaca FR10.2 v5 Advanced projects installed. The issue I am facing is not related to Adeaca. I believe I have selected the appropriate parameters; I have the item set to accrue upon product receipt, create item requirements and consume items immediately in the projects, and have PO's create committed costs.

My understanding of non-stock items in AX is that since we are not taking stock, these items are expensed immediately upon receipt. I cannot get non-stocked items to post an actual cost and create a project transaction until we invoice the items. However, when I run the exact same scenario for items with a model group 'stocked' the actual costs are posted to the project upon receipt of the item, regardless of the invoicing. Does anybody know why the costs are not posting at receipt with the non-stocked items, and if there is a way to fix this?

Issue with the AX user when renaming the user in the AD profile

$
0
0

Hi.

It appears that I am not the first one to experience issues with AX users linked to AD profiles.

My problem is with a user which had his name and email address changed in AD.

When the name was changed, AD changed the user Log On which now no longer matches the AX alias.

I guess that the auth. to AX works based on the user's SID (which remained unchanged) as the user is still able to log in to AX.

My problem is that the AX account is behaving strangely. We recently made some changes to a security role which apply as expected to all users except for the one that had the name changed.

I tried to delete the user in AX, re-import his account and potentially modify his user ID in AX (for backwards audit consistency).

Unfortunately, I get stuck here.

AX returns the following errors:

1. when trying to delete the user

Stack trace: The company  does not exist.

Stack trace

(S)\Data Dictionary\Tables\SysUserInfo\Methods\Delete - line 21

2. When trying to update the user (i.e. disable the account)

The Active Directory user or group does not exist. Contact your network administrator.

3. When trying to update the user's options (i.e. modify the email settings)

Error in getting SID (although querying the DB shows that the SID in the AX user profile = SID in AD)

 

This is getting really frustrating. I have other users that will potentially experience the same issues when their names will change (i.e. someone getting married).

I thought of updating the user's alias directly on the DB and try to repeat the steps for deleting the user - however I'm not comfortable in experimenting such changes.

Does anyone have any suggestions on how to fix this?

 

 

Cannot create a record in Activity parent links (smmActivityParentLinkTable). Primary link: Yes, Business relations. The record already exists.

$
0
0

hi,

in crm>business relation details>activities,

I have created a new activity by giving attendees. While saving it is showing me the error as below:

Cannot create a record in Activity parent links (smmActivityParentLinkTable). Primary link: Yes, Business relations. The record already exists.

wat does this mean? pls suggest

The manufacturing orders do not flow. AX shows some msj:

$
0
0

Hello,

I am traying to make manufacturing orders, but I cannot. Once I Finish it, system send me next massages:

1- Main Account 1100805

2.- The convination was not validated beyond the financial dimension Department.

3.- Dimension values were validated with Balance accounting structure.

 The odd is that I have already set my dimensions on general accounting. Also for the income statement the system is configurate on the 2 dimentions ( Depto and Cost Center ) as all values. 

I don't know if someone face this trouble before, thank you for your advices =P

Regars, Aida Ba 

Customer Aging report SQL error after CU7 update to AX2012 R2

$
0
0

After I applied a CU7 update to our AX2012 R2 installation, One of the users reported this error to me.

Cannot edit a record in Customer or vendor account number (CustVendTransAging).

The SQL database has issued an error.

SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]String or binary data would be truncated.

SQL statement: UPDATE T1 SET NAME=T3.NAME,RECVERSION=? FROM tempdb."DBO".t12143_065EB03A5044473883A01845DF64A84A T1 CROSS JOIN CUSTTABLE T2 CROSS JOIN DIRPARTYTABLE T3 WHERE (T1.PARTITION=?) AND (((T2.PARTITION=?) AND (T2.DATAAREAID=?)) AND (T1.ACCOUNTNUM=T2.ACCOUNTNUM)) AND ((T3.PARTITION=?) AND (T2.PARTY=T3.RECID))

 

It turns out that the Name field on the table CustVentTransAging has an extended data type of Name which is 60 characters  however it was being assigned a value from DirPartTable.Name which has an extended Data Type fo DirPartyName which is 100 characters. 

 

So I changed the extended data type on CustVentTransAging  from Name to DirPartyName and the RESOLVED the issue.

 

If you do not like that solution, you can go to \Classes\CustVendAgingCalculation and inspect the method insertCustVendData maybe you can re write the update code there to meet your needs.

Thanks,

Keep sharing the knowledge.

-Albert.


autorun.hta is not a valid win32 application

I can log in to AX 3.0 but after a few seconds it crashes

$
0
0

One of my companies child companies was on Axapta 3.0 SP4 KR1 about 5 years ago and has since changed ERP's and is now on NAV. The server that use to have Axapta is on the way out and right now it's only on for this company to log into Axapta when a customer needs sales history more than 5 years old, so it's not used very often. We would like to get Axapta off this server and on to another server so we can get rid of the old server that is on it's way out.

I tracked down a disc with Axapta 3.0 SP4 and installed everything on to the new server. Created a back up of the sql database and restored it to the new server. i was getting some errors at first about kernels not matching (31/30) and i figured out that i need to install kernel rollup 1 but can't find it so i changed the SYSTABVERSION to 30 in the database to bypass this just to see if i could log in. Once I did that i could get the log in screen to pop up and i'm able to use my credentials to log just like the old system. Then the menu pops up for our default company but i can't click on anything and then i get a not responding/check online for solutions box and it crashes.

We have a RDS setup with the Axapta client installed (3.0 SP4 KR1) so i changed the SYSTABVERSION back to 31 and tried logging in from there after creating a new config to point at the new server and i get the same thing. I noticed that in the lower right corner of the Axapta window it shows PC icon and a database icon and a green arrow constantly going back and forth between the 2 which i assume means it's trying to talk to the database but it's not happening? When i change the config back to the original config pointing to the old server the pc/greenarrow/database thing happens for a second and then it's done.

i figured that i should put on a trace to see what it's trying to do and from what i can tell it's constantly trying to run some stored procedures over and over. i did the trace on the working version and it only does this once.

I have zero knowledge on installing Axapta as it was installed before i worked here and at the time they hired a consultanting firm that we no longer use to install it. If you need more information i will try my best to retrieve it for you. 

Thanks for any help.

Transaction reorganizing in AX 2009

$
0
0

In the process of trying to modify the payment schedule on a vendor invoice in AX 2009, I've noticed the Transaction Reorganizing button found by going to Vendors > Functions > Open Transaction Editing is inactive for Purchase Order invoices but active for invoices entered through the Invoice Journal.  Is this just how the standard functionality works or do we have an issue that is preventing Transaction Reorganizing on transactions generated through the Purchase Order invoicing process?  Any insight is appreciated!

Subcategories in Project R3 dont appear when booking expenses although subcat is set up

$
0
0

When setting up a category and a subcategory in Projectcategory, i cannot make these subs available in expensejournals. Only the categories can be chosen.

Sales Unit Price in AX2012 R3 Projects

$
0
0

Hi

I have setup a new project with a number of new categories.  I have associated a cost and sales price with these.  When I created my WBS and added my tasks which have a category associated with them - only the cost unit price is pulling through.  Can anyone tell me if the Sales Unit Price should default through?

 

Cheers

Viewing all 72043 articles
Browse latest View live


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