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

How to View results from a container method

$
0
0

I have the following code to return the electronic email address of all vendors but having a hard time viewing the results.  How can i add an info log or view the results for this method?

public container getRemittanceContacts()
{
container remittanceEmailAddresses;
DirPartyTable dirParty;
LogisticsElectronicAddress electronicAddress;
DirPartyLocation dirPartyLoc;
ContactPerson contactPerson;

//find all of the vendor contact email addresses that are currently active
while select * from contactPerson
where contactPerson.ContactForParty == contactPerson.Party &&
contactPerson.Inactive == NoYes::No
join RecId from dirParty
where dirParty.RecId == contactPerson.Party
join Location, Type, Locator FROM electronicAddress
EXISTS JOIN Location, Party FROM dirPartyLoc
WHERE electronicAddress.Location == dirPartyLoc.Location && dirParty.RecId==dirPartyLoc.Party
&& electronicAddress.Type == LogisticsElectronicAddressMethodType::Email
{
remittanceEmailAddresses += electronicAddress.Locator;
}
return remittanceEmailAddresses;

}


Can I call a procedure stored in a computed column? I only return a value

$
0
0

Its Possible?


gives incorrect syntax error near the keyword 'DECLARE'.

Product Configurator error: "The value 'x' is not found in the map.

$
0
0

I've seen reference in other posts to an error with this text, but not in the context of the 'Product confuguration models' in the 'Product information management' section.

Basically, when I'm testing a model (in Product confuguration models) or using the model to calculate a price (in ./Sales and marketing/Common/Sales quotations/My quotations), it comes back with this error, in which 'x' is an attribute of the configuration model. I have a rather large model which is built of many Subcomponent configuration models, and the 'x'-attribute referenced is actually a couple levels down the tree.

Has anyone seen this error in this context? Any recommendations for hunting down the cause? We have been dealing with it for over a year and have yet to figure out how it's being caused.

Note: sometimes we are able to eliminate it by removing and re-adding the highest level Subcomponent that contains the attribute (i.e. if it's in a model 3 levels down, re-attaching the level 2 model that ultimately contains that level-3 model sometimes works). Eventually though... the error always comes back.

Help?

Importing an EP RoleCenter page to AOT

$
0
0

Hello Community,

I have a web part setup on my EP RoleCenter page. When I deploy the web definition from the AOT this web part gets wiped out.

I wanted to sync the EP page with the AOT page, so I went to the AOT > Web > Web Menue Items > URLs found my role center page, right click and import page.

When I do this I keep getting error Server was unable to process request. ---> This part is not exportable. To be exportable, a part must be personalizable and not have its ExportMode set to None.Parameter name: webPart

Any idea on how I can resolve this?

DMF Setup Error

$
0
0

We are trying to setup DMF in our test environment and we are getting the following error:

SQL error description:[Microsoft][SQL Server Native Client 11.0][SQL Server] Invalid object name 'AX2013R3_PROD_model.jdb..SYSMODELELEMENT' 

The server in the error is our production data server.  Is there something we need to change to get it work in our test environment?  Any help would be appreciated.

Cancelling purchase order invoice

$
0
0

Let's say a received purchased order have been invoiced by mistake.

Is there a way to reverse that invoice (so to reverse the invoice in the way that the purchase order is now back to "received but not invoiced" status)?

I know you can create a credit note from an invoiced purchase orders that will reverse everything (return the items, and reverse the invoices) but I am looking for a way to only reverse the "invoice" step. 

Object not initialized

$
0
0

ProjListProjTransDataContract object not initialized.

Stack trace

(C)\Classes\ProjListProjTransController\prePromptModifyContract - line 11
(C)\Classes\SrsReportRunController\startOperation - line 7
(C)\Classes\ProjListProjTransController\run - line 8
(C)\Classes\ProjListProjTransController\main - line 3
(C)\Classes\FormFunctionButtonControl\Clicked

I'm adding a button to a list page form that opens a ssrs report based on the selected value in the list page. There is an existing similar button on another list page so I basically copied all of the classes/menu items/tables and replaced certain info to work with the new button instead. I've went over it all many times and I can't seem to figure out why I am getting this error. 

If I need to provide more information I can. Thanks in advance.

AX2012 R2 CU2

$
0
0

Hi all,

Does everybody always install the latest CU's?

Currently, we're on AX2012 R2 (CU2). Apart from the bug fixes in those  CU's, will 'upgrading' improve performance?

The reason why we don't upgrade is because of some tailor-made customizations in some ax modules, is it worth to invest the time & effort to be on the latest CU? 

Thanks for your view and answer!

Dries


Cannot create a relation based on table id in a data entity.

$
0
0

I'm attempting to create a new data entity to import records into a new table. The table contains a refRecId and refTableId field as it can be related to multiple different records.

I've attempted to link to another record as read only in the data entity using this refTableId and refRecId as the relation but when I attempt to build and sync this I receive errors. 

This seems to be down to the fact that although most system fields are automatically pulled onto the data source in the data entity (and the "Dynamic fields" option is greyed out and uneditable), the table Id is not. 

I cannot past the full set of errors in, because as is the case with most sql errors like this, it actually produces 50 or so errors. However, it does state "Error Invalid column name 'TABLEID'."

I can't find a standard entity using the refRecId, refTableId combination. Is this just not compatible with data entities?

Error while running report from menuitem

$
0
0

Hi all,

I am facing this issue, I am doing select record from grid and pass to RDP class. I have controller class in controller class preRunModilfy method I get the hidden parameter and pass to DP class,kindly check the code below if any thing is wrong then please tell me how to write correct it.Thanks

CustInvoiceContract object not initialized.

Stack trace

(C)\Classes\CustInvoiceController\preRunModifyContract - line 12
(C)\Classes\SrsReportRunController\runReport - line 38
(C)\Classes\SrsReportRunController\run - line 29
(C)\Classes\SysOperationController\startOperation - line 10
(C)\Classes\SrsReportRunController\startOperation - line 12
(C)\Classes\CustInvoiceController\main - line 8
(C)\Classes\FormFunctionButtonControl\Clicked

class CustInvoiceController extends SrsReportRunController
{
}

protected void preRunModifyContract()
{
CustInvoiceJour custInvoicejour;

CustInvoiceContract contract ;

contract = this.parmReportContract().parmRdpContract() as CustInvoiceContract;

custInvoicejour = this.parmArgs().record();

contract.parminvoiceId(custInvoicejour.InvoiceId);
super();
}

public static client void main(Args args)
{
CustInvoiceController ssrsDemoController;
ssrsDemoController = new CustInvoiceController();
ssrsDemoController.parmArgs(args);
ssrsDemoController.parmReportName(ssrsReportStr(CustomerInvoiceReport,CustomerInvoiceDesign));
ssrsDemoController.parmShowDialog(false);
ssrsDemoController.startOperation();
}

[DataContractAttribute]
class CustInvoiceContract
{
InvoiceId invoiceId;
}

[DataMemberAttribute('InvoiceId')]
public InvoiceId parminvoiceId(InvoiceId _invoiceId = invoiceId)
{
invoiceId = _invoiceId;
return invoiceId;
}

Accounts Payable Management

$
0
0

Does the Microsoft Dynamics AX provide the same utility as the GP version to reconcile the AP sub-ledger detail to the GL account balance?

Also does the AX also have the ability to integrate third party  accounts payable software similar to GP and is it recommneded or is the AX good enough without it?

Automatic cancelling of overdue Open Sales Order and Open Purchase Order

$
0
0

Hi, 

Is there a way to automatically cancel or clean up all overdue open sales order and open purchase order in AX 2012? 

Showing Country Of Origin in Sales Invoice

$
0
0

Hi all,

We have one new request from users to show the country of origin in sales invoice. 

All the items were set to have 'NONE' as the Tracking Dimension Group. we have come out with a few ideas on how to do this but not feasible. Can anyone suggest how can we do this?

1. Set the Tracking dimension group as 'BATCH' and then indicate this information during GRN process.

Disadvantage: we have to duplicate all the items in AX.

2. Indicate the Country of origin in sales order line (under Foreign trade tab)

Disadvantage: User who posted the DA and invoice will not know whats the country of origin. 

how to add description of invoice in Sales order

$
0
0

Dear Experts,

my user are facing a problem that they can't see the description of invoice in customer accounts statement..will you please help me to find out the how they can add description of invoice during sales order to invoice process, through which they can see the description of invoice on customer account statement..

Thanks in advance

Best Regards

Getting the value of count(salesId) ?

$
0
0

I want to get the salesID of the count of sales order that uses the packing slip SDN001. 

Example:

Sales orders: SO001, SO002

Packing Slip Id: SDN001 

select count (salesId) from custPackingSlipTrans where custPackingSlipTrans.packingSlipId == 'SDN001'.

infolog(strFmt("%1", custPackingSlipTrans.salesId));

*This returns 2. 

Is it possible to get the sales Id value of the count(salesId), ?


Mandatory astriek mark is appearing after giving value in the form

$
0
0

hi,

 in the form ..a field is set as mandatory field ..when i give value to the field..the astriek mark is still appearing in the d365 form..help me to resolve this

account structure is error while the budget entry register is copied forecast to ledger

$
0
0

Hi all

The account structure I setup in budget control configuration is  'AAA'. But after I copy forecast to ledger into budget entry register, the account structure on line is 'BBB' but not 'AAA'. So is there any wrong about setup?

Thanks!

How to link the customer with multiple agencies?

$
0
0

Hi, I would like to know is there any options to link a customer with multiple agency? Example I have a customer(eg. in an area/town) handle few different agencies(eg. brands of item).

Appreciate your feedback.

Copy Azure SQL Database to a SQL Server environment - Error

$
0
0

Hello,

I'm trying to Export Azure SQL with the steps provided here.

I have copied the DB and when I execute the Prepare database script I'm getting this error message:

"Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '-'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '-'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '-'."

What can be a problem? I just copied the given script and changed only the name of my copied DB in "ALTER DATABASE' command.

Before I executed the script I validated that the copying of DB is really over with following scripts:

SELECT * FROM sys.dm_database_copies 
SELECT state_desc, * FROM sys.databases 

Import County , City and ZIP/Postal code in D365

$
0
0

Hello guys ,

I have setup new D365 environment and create a new company , Now need to import Address books ,  County , City and ZIP/Postal code . Address books entity is available but County , City and ZIP/Postal entities is not available in entity list for import data.

Please suggest how to import County , City and ZIP/Postal .

Thanks.

Viewing all 46681 articles
Browse latest View live


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