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

RE: Item arrival registration

$
0
0

Hi David,

Check if the below fixes works for you :)

Regards,

Girish

Posting a Product Receipt from an item arrival journal with batch controlled generates incorrect line quantities

AX 2012 R3 | Application update

KB4022370 released 7/11/2017

Product receipt doesn't post all lines of Item arrival

AX 2012 R2 | Application update

KB4035458 released 7/19/2017

Issue 3850642Product receipt doesn't post all lines of item arrival for serial tracked items

Hotfix KB4022370 has addressed this issue.


Item arrival registration

$
0
0

Hi,

After creating a purchase order of qty = 50 and try to register and post partially through Arrival overview and item journal, i found the following:

When doing registration from item arrival for qty = 20, post item arrival and trying to post product receipt for registered quantity, i found that AX give 9 serials only (out of 50)?!!

any idea?

kindly note that version is AX 2012 R3 CU12

Regards

Show or Hide the Data Based Enum Type In D365 Ax7

$
0
0

Hi friends,

           In General Journal , I need to show the data's which  belongs to the "ledgerjournaltype::CustomerPayment". But currently its showing the data's in grid based on the "LedgerJournalType::Daily". Please suggest me the solution.

Thanks & regards,

 padmapriya.v

RE: Mail sending through SMTPClient Dynamics AX through X++ code

Mail sending through SMTPClient Dynamics AX through X++ code

$
0
0

I am trying to write a job for sending mail through SMTPClient. I am using gmail server and I am using credentials of my gmail account that gmail gives us for sending email through a program. 

I am using these credentials in my dotNet Application and they are working fine. email is being sent.

BUT

Now I am working in X++ and have created a job for sending email and i am using same credentials. But I am getting an error on the line  with code:

mailClient.Send(mailMessage);

the error is: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. v2sm17359467wmd.24 - gsmtp

What is the issue and what is the possible solution ??

my complete code for the job is as following:

static void EmailThroughSMTPExperiment(Args _args)
{
// Set these variables.
str sender = '2011cs163@gmail.com';
str recipient = 'muhammad.g@coh.com';
str cc = 'muhammad.gulfam@coh.com';
str subject = 'Test';
str body = 'Testing';
str fileName = @'C:\test.txt';
str pwd;

List toList;
List ccList;
ListEnumerator le;

Set permissionSet;
System.Exception e;

str mailServer;
int mailServerPort;
System.Net.Mail.SmtpClient mailClient;
System.Net.Mail.MailMessage mailMessage;
System.Net.Mail.MailAddress mailFrom;
System.Net.Mail.MailAddress mailTo;
System.Net.Mail.MailAddressCollection mailToCollection;
System.Net.Mail.MailAddressCollection mailCCCollection;
System.Net.Mail.AttachmentCollection mailAttachementCollection;
System.Net.Mail.Attachment mailAttachment;

SysEmailParameters parameters = SysEmailParameters::find();
;

try
{
toList = strSplit(recipient, ';');
ccList = strSplit(cc, ';');

permissionSet = new Set(Types::Class);
permissionSet.add(new InteropPermission(InteropKind::ClrInterop));
permissionSet.add(new FileIOPermission(filename, 'rw'));
CodeAccessPermission::assertMultiple(permissionSet);

mailServer = SysEmaiLParameters::find(false).SMTPRelayServerName;
mailServerPort = SysEmaiLParameters::find(false).SMTPPortNumber;
mailClient = new System.Net.Mail.SmtpClient(mailServer, mailServerPort);

le = toList.getEnumerator();
le.moveNext();

mailFrom = new System.Net.Mail.MailAddress(sender);
mailTo = new System.Net.Mail.MailAddress(strLTrim(strRTrim(le.current())));
mailMessage = new System.Net.Mail.MailMessage(mailFrom, mailTo);

mailToCollection = mailMessage.get_To();
while (le.moveNext())
{
mailToCollection.Add(strLTrim(strRTrim(le.current())));
}

le = ccList.getEnumerator();
mailCCCollection = mailMessage.get_CC();
while (le.moveNext())
{
mailCCCollection.Add(strLTrim(strRTrim(le.current())));
}

mailMessage.set_Priority(System.Net.Mail.MailPriority::High);
mailMessage.set_Subject(subject);
mailMessage.set_Body(body);

mailAttachementCollection = mailMessage.get_Attachments();
mailAttachment = new System.Net.Mail.Attachment(fileName);
mailAttachementCollection.Add(mailAttachment);
//mailClient.set_EnableSsl=true;
pwd=SysEmaiLParameters::password();
mailClient.set_Credentials(New System.Net.NetworkCredential(parameters.SMTPUserName, pwd));

mailClient.Send(mailMessage);
mailMessage.Dispose();

CodeAccessPermission::revertAssert();

info("Email sent.");
}
catch (Exception::CLRError)
{
e = ClrInterop::getLastException();
while (e)
{
info(e.get_Message());
e = e.get_InnerException();
}
CodeAccessPermission::revertAssert();
}

}

RE: Creating an xml tag with a prefix

$
0
0

I don't think your above Sample XML is working. Try to save your above as XML format in Notepad and run it in IE.

It shows nothing.

What you gonna achieve by adding 'Root:' as prefix ?

RE: Error: Account number for transaction type Production offset account receipt does not exist.

$
0
0

Hi,

Can you check your accounting setup under inventory-setup-posting-posting?

At which production step is this error message triggered (Report as finished, ending)

Best regards,

Ludwig

Error: Account number for transaction type Production offset account receipt does not exist.

$
0
0

Facing error after upgradation CU8 in production module "Account number for transaction type Production offset account receipt does not exist."


Inventory report in AX 2012 R2

$
0
0

Hello! everyone

I am developing an inventory report in AX 2012. I want inventory opening balance, Purchase and Sale, closing balance of inventory(item wise).

I found the data of purchase and sale for inventory in INVENTRANS table but i cannot find the table for Opening and Closing balance.

Can anyone help me on this.

RE: Enterprise code filled!

$
0
0

Hello Hans,

In which form do you see those numbers? Can you provide some more details?

Many thanks and best regards,

Ludwig

Released Product Cost Per Site

$
0
0

Hi,

We are implementing one requirement where we need to calculate and store released product per site in table and display on form for reference so that user does not require to go each form and check.

But in implementation we are facing some issues. Cost price 

When we posted inventory transactions for one item and two different sites having various combination of warehouse and location.

Item P1- Site S1 -Warehouse W1 Location L1

Item P1- Site S1 -Warehouse W2 Location L2

Item P1- Site S2 -Warehouse W1 Location L1

Item P1- Site S2 -Warehouse W2 Location L2

Now if we see while only site dimension is checked, we will be able to see only 2 transactions on overview tab of On hand inventory form of that item.

Product P1- Site S1 

Product P1- Site S2 

Now if we go to on hand tab and see the cost price for each of two sites then it will be average of two transactions each.

Back end in inventSum table there are four entries with four different dimension ids. 

We have standard methods in which we initialize inventonHand based on item id and dimension id and calculate cost price using one of the below methods:

InventOnhand::newParameters(ProdId, Inventdim::find(''), inventDimParm); 

1. InventOnHand.inventSum().averageCostPrice(); Or

2. inventOnHand.costPricePcs();

It gives cost price for transaction posted means four above transactions based on dimension Id.

But we need to calculate for specific site that is it should include both the transactions for particular site. Since there is no dimension id specifically for specific site in InventSum hence we are unable to get the cost price for Site only.

Please suggest or provide some inputs.

Thanks !!

Regards,

Smit

RE: Assign Product Attribute Values to a Product

$
0
0

I think a better question would be: what is the point of assigning attributes to procurement categories now that they can no longer be used to search / refine product selection during the purchase requisition process as was previously the case in the Enterprise Portal in 2012? As far as I can see, attributes can no longer be used for this purpose during purchase requisition entry in Dynamics 365. The "Amazon style" purchase requisition entry was pretty slick and it seems like a great loss to the system

Assign Product Attribute Values to a Product

$
0
0

Hi

I was trying to assign attribute values to a product following the steps below but have not been successful:

 

Procedure: Assign Product Attribute Values to a Product

After you create attribute types and product attributes, you must assign the product attributes to categories. Next, you must assign the category to the product, and then you can define values for the product attributes. To assign a category and enter product attribute values, follow these steps:

  1. Open Product information management > Common > Products > All products and product masters.
  2. Select the desired product from the list to add product categories to, and then click Edit in the Maintain group of the Action Pane.
  3. Click Product categories in the Setup group of the Action Pane, and the Product categories form will open.
  4. Click New to create a new product category.
  5. Select the Category hierarchy.
  6. Select the Category.
  7. Close the Product categories form.
  8. Click Product attribute on the Action Pane.
  9. Select the attribute from the list.
  10. Enter or select a value for the attribute.
  11. Repeat steps 9 and 10 for each attribute.
  12. Close the Attribute values form.

It is possible to do that without to define the attribute values from retail module?

Best regards,

Mari Rojas

"Results. Function is not supported" - Data entity import error

$
0
0

Hello,

I'm getting error message "Results. Function is not supported." when I try to import "Bill of materials headers and versions" Excel.

I exported it and just made a change to BOMNAME field to see the update after import, but I'm getting this error message.

Does anyone experienced this error?

Thanks.

D365 - use prmisDefault method in extension


RE: Modify Mandatory property on existing Table field in extension

$
0
0

It doesn't work.

The property is changed on form data source, but the error is returned by the table(on saving data to table).

Modify Mandatory property on existing Table field in extension

$
0
0

Is there a way to to modify Mandatory property to No for an existing field in a extended table?

The property is disabled:

RE: GST Malaysian setup white paper

GST Malaysian setup white paper

$
0
0

Hi,

I need document for gst setup malayasian localization, please help.

I dont have customer/partner source login.

RE: Budgeting on inventory issuance

$
0
0

if an item purchased by one department but consumed by other department, how can we manage the departmental budget ?

Work Plan: Department normally give budget work plan wise for the year so they want to monitor the budget according to work plan, work plan examples are:

-office renovation

- printing and stationary

- etc

Viewing all 175888 articles
Browse latest View live


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