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

How to temporary turn off object compile in Dynamics AX?

$
0
0
Hi all.

How can I temporary turn off AOT compile dynamics AX in my dev environment?

I can add temporary code in order to jump the object compile.

I'm here to ask a trick like to jump Synch, dbSynchronize method, I want to jump the compile too.

Thanks


Query in AX Dynamics 2012 R3

$
0
0

Hi all. When form opens I get this error-Query does not contain 1 data source(s). I checked task no addition data source addings required. Mentioned one table. That's all.How to solve this.

Sincerely,

Zymantas

Add a computed field to entity

$
0
0

I have an entity with a field (LedgerDimension) that cannot be set to public, but need in my BYOD export. My idea is to clone it as a computed field.


According to the article below,


https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/data-entity-computed-columns-virtual-fields


"it's easier to come up with the SQL definition in Microsoft SQL Server Management Studio (SSMS) before using it in X++."

The example shows T-SQL code after X++ Code, is it supposed to be included there? Can't I just edit the view directly from SSMS and add the computed column there?

Multi-select multi-parameters SSRS Report in D365 Finance and Operations

$
0
0

Hi Everyone,

I am doing multiselect multiparameter SSRS Report in D365 Finance and Operation.
I have written my Logic with 4 classes which are Contract, Controller, UIBuilder and Data Provider.
Now one of my Parameter is Date Field.
And I have to display the Report Data Customer wise as shown in attached Screenshot.
To achieve this requirement, I have used below logic in "processReport" method of my Data Provider Class,

query = new Query(querystr(WSPLDailyReportQuery_14102019));
qbds = query.dataSourceTable(tableNum(WSPLInvTransTable_2307));
qbds.addRange(fieldNum(WSPLInvTransTable_2307, PhysicalDate)).value(queryRange(asOnDate, asOnDate));
qbds.addRange(fieldNum(WSPLInvTransTable_2307, SOBusinessChannelValue)).value(businessChannelStr);
qbds.addRange(fieldNum(WSPLInvTransTable_2307, SOCustomerAccount)).value(custAccountStr);
qbds.addRange(fieldNum(WSPLInvTransTable_2307, SiteId)).value(siteIdStr);
qbds.addRange(fieldNum(WSPLInvTransTable_2307, SOProductGroupValue)).value(productGroupStr);

queryRun = new QueryRun(query);
while (queryRun.next())
{
wsplInvTransTable = queryRun.get(tableNum(WSPLInvTransTable_2307));
this.insertDayData();
}

In above Logic businessChannelStr, custAccountStr, siteIdStr, productGroupStr are comma(,) separated strings.
As per the requirement the data has to be shown for a day, for a month and for a financial year.
Hence I want to change the date range of my query three times for each Customer selected in filter screen.
And also want to display the sum of those transactions in single row as shown in attached screenshot.
How can I achieve this with minimum execution time? Need help on this urgently.
Thank you in advance.

Amount in interim account is remains unmoved when making payment to vendor

$
0
0

An invoice received from a vendor for services obtained from the vendor. The amount of Tax was posted in an interim payable account. When the payment is done to vendor, the tax amount is still in interim account.

Facing build errors with disabling the proxy of FTP web request during SDP creation.

$
0
0

Hi every one,

I had a simple requirement to upload a csv file to the FTP server.

Below is my code,

void export()

{

ProjPlanVersion projPlanVersion;
ProjPlanVersionDetail projPlanVersionDetail;
CompanyInfo companyInfo = CompanyInfo::find();
String10 dataAreaId;

TextStreamIo commaIO = TextStreamIo::constructForWrite();
commaIO.outFieldDelimiter(#Semicolon);
System.Object webRequest,response,credential;
System.Net.FtpWebRequest ftpWebRequest;
System.Net.FtpWebResponse ftpWebResponse;
System.IO.Stream requestStream;
System.Byte[] bytes;
System.Text.Encoding getUTF8;
CLRObject sysException;

Hours hr;
Minutes minute;
str hrStr;
str minuteStr;
hr = DateTimeUtil::hour(DateTimeUtil::getSystemDateTime());
hrStr = hr > 9 ? any2str(hr) : ('0' + any2Str(hr));
minute = DateTimeUtil::minute(DateTimeUtil::getSystemDateTime());
minuteStr = minute > 9 ? any2str(minute) : ('0' + any2Str(minute));

//str ftpurl = "">ftp.current.no/testfile.csv";
str ftpurl = "">ftp.current.no/.../" + 'Project' + #Underscore + date2Str(DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()), 321, DateDay::Digits2, DateSeparator::None, DateMonth::Digits2, DateSeparator::None,DateYear::Digits4) + #Underscore + hrStr + minuteStr + #csv;

new InteropPermission(InteropKind::ClrInterop).assert();

str ftpfullpath = ftpurl;

}

// wirite content to file

commaIO.writeExp([dataAreaId,companyInfo.Name,ProjTable::find(projPlanVersionDetail.ProjId).Name,projPlanVersionDetail.ProjId,ProjTable::find(projPlanVersionDetail.ProjId).Name,projPlanVersionDetail.ProjId,projPlanVersion.TaskCategory]);

try
{

// read csv file
System.IO.Stream stream = commaIO.getStream();
stream.Position = 0;
System.IO.StreamReader reader = new System.IO.StreamReader(stream);
getUTF8 = System.Text.Encoding::get_UTF8();
bytes = getUTF8.GetBytes(reader.ReadToEnd());
reader.Close();
// write file in FTP
webRequest = System.Net.WebRequest::Create(ftpfullpath);
ftpWebRequest = webRequest;
credential = new System.Net.NetworkCredential('bakke', #Ftppassword);
ftpWebRequest.set_Credentials(credential);
ftpWebRequest.set_ContentLength(bytes.get_Length());
ftpWebRequest.set_Method('STOR');
ftpWebRequest.set_Proxy(NULL); //SIYE, commented only because to avoid Build errors from Build Automation while SDP.

requestStream = ftpWebRequest.GetRequestStream();
requestStream.Write(bytes,0,bytes.get_Length());
requestStream.Close();
response = ftpWebRequest.GetResponse();
ftpWebResponse = response;
}
Catch(Exception::CLRError)
{
sysException = CLRInterop::getLastException();
info(sysException.get_Message());
}
}

}

from the above code I am getting build error CLR type System.Net.IwebProxy  is not found in any reference assembly.

but I included all the assemblies. Does any one know how to solve this.

Run report in batch to CSV file

$
0
0

Hi. I want to run a standard sales report to a CSV file by batch.  How do I find where D365 stores the exported CSV file? Cheers. James

facing build errors with disabling the proxy of FTP web request

$
0
0
Hi every one,
I had a simple requirement to upload a csv file to the FTP server.
Below is my code,
void export()
{
ProjPlanVersion projPlanVersion;
ProjPlanVersionDetail projPlanVersionDetail;
CompanyInfo companyInfo = CompanyInfo::find();
String10 dataAreaId;

TextStreamIo commaIO = TextStreamIo::constructForWrite();
commaIO.outFieldDelimiter(#Semicolon);
System.Object webRequest,response,credential;
System.Net.FtpWebRequest ftpWebRequest;
System.Net.FtpWebResponse ftpWebResponse;
System.IO.Stream requestStream;
System.Byte[] bytes;
System.Text.Encoding getUTF8;
CLRObject sysException;
Hours hr;
Minutes minute;
str hrStr;
str minuteStr;
hr = DateTimeUtil::hour(DateTimeUtil::getSystemDateTime());
hrStr = hr > 9 ? any2str(hr) : ('0' + any2Str(hr));
minute = DateTimeUtil::minute(DateTimeUtil::getSystemDateTime());
minuteStr = minute > 9 ? any2str(minute) : ('0' + any2Str(minute));
//str ftpurl = "">ftp.current.no/testfile.csv";
str ftpurl = "">ftp.current.no/.../" + 'Project' + #Underscore + date2Str(DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()), 321, DateDay::Digits2, DateSeparator::None, DateMonth::Digits2, DateSeparator::None,DateYear::Digits4) + #Underscore + hrStr + minuteStr + #csv;
new InteropPermission(InteropKind::ClrInterop).assert();
str ftpfullpath = ftpurl;
}
// wirite content to file
commaIO.writeExp([dataAreaId,companyInfo.Name,ProjTable::find(projPlanVersionDetail.ProjId).Name,projPlanVersionDetail.ProjId,ProjTable::find(projPlanVersionDetail.ProjId).Name,projPlanVersionDetail.ProjId,projPlanVersion.TaskCategory]);
try
{
// read csv file
System.IO.Stream stream = commaIO.getStream();
stream.Position = 0;
System.IO.StreamReader reader = new System.IO.StreamReader(stream);
getUTF8 = System.Text.Encoding::get_UTF8();
bytes = getUTF8.GetBytes(reader.ReadToEnd());
reader.Close();
// write file in FTP
webRequest = System.Net.WebRequest::Create(ftpfullpath);
ftpWebRequest = webRequest;
credential = new System.Net.NetworkCredential('bakke', #Ftppassword);
ftpWebRequest.set_Credentials(credential);
ftpWebRequest.set_ContentLength(bytes.get_Length());
ftpWebRequest.set_Method('STOR');
ftpWebRequest.set_Proxy(NULL); //commented only because to avoid Build errors from Build Automation while SDP.
requestStream = ftpWebRequest.GetRequestStream();
requestStream.Write(bytes,0,bytes.get_Length());
requestStream.Close();
response = ftpWebRequest.GetResponse();
ftpWebResponse = response;
}
Catch(Exception::CLRError)
{
sysException = CLRInterop::getLastException();
info(sysException.get_Message());
}
}
from the above code I am getting build error CLR type System.Net.IwebProxy  is not found in any reference assembly.
but I included all the assemblies. Does any one know how to solve this.

WorkFlow Approval Report

$
0
0

Dear Experts

                 a report i need about the managers workflow approval in a day? means how many workflows approved by a person whether on 2nd level or 3rd level?

                Thanks in advance for your replies

Regards

 

x++ settle open transaction from 1-7-2019 till Auto settlement activated

$
0
0

Hello..

I activated the auto settlement option in 1-10-2019 but I have open transaction since July till the option is activated

How can I settle this transaction  automatically , the new transaction now is settled the old transaction 

Thanks 

Credit Limit Approval Workflow

$
0
0

Hi All,

I am implementing Dynamics 365 Finance & Operations and have requirement from client regarding Credit limit approval.

The scenario is as follows:-

Suppose the Customer is "ABC LLC" and we set as credit limit = $100 over the period the credit limit is exhausted and when creating the new transaction system prompt a message that credit limit is exceed. 

SO the requirement is when we get the error message of credit limit exceed then the workflow has to be trigger and then it has to be approve by the proper authority. But they are not going to change the credit limit immediately only they want workflow approval so that it can be tracked.

Is this requirement is possible without any customization or can be configurable?

Thankig you in anticipation

rgds

dhananjay

Terms of Payment

$
0
0

Hi All,

While implementing D365 F & O have one requirement to set up payment terms as  50 % at the time of delivery and remaining 50% will be after 20 days.

How this can be configure or any other way around for this method?

Thanking you in anticipation.

rgds

dhananjay

Help regarding Workflow in AX 2012

$
0
0

HI All,

Greetings

I have AX 2012 version. We have appraisal system developed. The workflow defined is 

Start->First Appraiser-->2nd Appraiser-->1st reviewer-->2nd reviewer(Hr setup-Hr workflows-The workflow is defined here)

The 1st, 2nd appraiser and reviewer are defined in workers form

The 2nd reviewer is HR in most of the cases-

the new requirement is that for 2nd reviewer(approve, reject, change request, delegate-options enabled in portal) want to push back to 2nd reviewer.

After pushing it to 2nd Reviewer it should come back the HR for final completion

Can anyone guide me how can I achieve this

Kindly help

AX client configuration utility

$
0
0

Hi Friends,

We have a terminal server for all users to remote in and run AX, how to setup default client configuration for all users?

I setup one, but that apparently only works for myself.

Many thanks.

How to attach a new file into resource node through x++ in D365

$
0
0

I have customization to load a audio file into resource node.

I was using the method 'SysResource::saveResource()' method in Ax 2012 which is not working D365 and its throwing a error "Save is not allowed from inside the client" from the method 'resourceNode::createResourceAndSaveContent()'
I have noticed, in AX 2012 the framework is using these methods(ResourceNode.AOTSetData() and ResourceNode.AOTSave()) which are deprecated in D365.
FYI, I am working in D365 FO version : 10.0.4 with update 28.
It would be great if anybody is having a idea about this. Thanks in advance!.

Reseting status of assembly production order de-link marking with sub assemblies?

$
0
0

D365 team,

When i Firm production orders from MRP i use Standard marking so sub assemblies production orders are marked to its upper level.

but because of BOM changes sometime i have to bring top assembly production order to created status(Copy BOM feature is only available on Created status.), when i do that all sub assembly production orders linked to this production order get unmarked .

i want marking to stay regardless the status change on production order, can someone suggest on this issue

enterprise portal access error - Access to the menu item 'TrvExpenseReportsWorkerListPage' has been denied. Contact your system administrator.

$
0
0

Hi Friends,

Some users are getting following error when accessing their expense report in EP, and they are in on separate company, other users in different company are fine.

Where can I start looking into?

Many thanks.

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

An unexpected error has occurred.


Access to the menu item 'TrvExpenseReportsWorkerListPage' has been denied. Contact your system administrator.

Microsoft.Dynamics.AX.Framework.Services.Client.InteractionServiceException
   at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)
   at Microsoft.Dynamics.AX.Framework.Services.Client.InteractionService.InteractionServiceClient.Initialize(IInteractionArguments interactionArguments, IInteractionObjectIdentifier interactionObjectIdentifier)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxListPageContentArea.InitializeListPageContentArea()
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxListPageContentArea.OnLoad(EventArgs e)

Access to the menu item 'TrvExpenseReportsWorkerListPage' has been denied. Contact your system administrator.

System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Dynamics.AX.Framework.Services.InteractionService.IInteractionService.Initialize(InteractionArguments interactionArguments, InteractionObjectIdentifier interactionObjectIdentifier)
   at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

Automatically generate quarantine order at the time of Purchase Order confirmation

$
0
0

Hi All,

The issue is in Dynamics 365 Production environment, the quarantine order generates automatically after purchase order confirmation.

In Test environment the Quarantine order generates after Product receipt. 

Could some one please help me know what can be the reason that in Production environment quarantine order generates after confirmation.It should generate after Product receipt.

Thanks!

cancel reservation in stock transaction reference Transaction

$
0
0

Hi experts

 I have PO  where part no line was created and register a certain amount of the stock to a project. I trying to unregister the stock but I can't as it is reserved to the transaction. Can anybody help how to cancel tris reservation? can anybody help

List of Vendors with no transactions

$
0
0

I have a requirement where I need to list out all the active vendors which have no transactions since some date(say 2018). How do I list out all those vendors in AX 2009?

Viewing all 46681 articles
Browse latest View live


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